Skip to content

Commit 5eefa1a

Browse files
🌿 Fern Regeneration -- August 5, 2025 (#474)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: twitchard <[email protected]>
1 parent fcabdf2 commit 5eefa1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1402
-519
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
- name: Run tests
4747
run: yarn test
4848

49+
- name: Run browser tests
50+
run: yarn test:browser
51+
4952
publish:
5053
needs: [compile, test]
5154
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

.mock/definition/empathic-voice/__package__.yml

Lines changed: 110 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -952,20 +952,20 @@ types:
952952
interim:
953953
type: boolean
954954
docs: >-
955-
Indicates if this message contains an immediate and unfinalized
956-
transcript of the user’s audio input. If it does, words may be
957-
repeated across successive `UserMessage` messages as our transcription
958-
model becomes more confident about what was said with additional
959-
context. Interim messages are useful to detect if the user is
960-
interrupting during audio playback on the client. Even without a
961-
finalized transcription, along with
962-
[UserInterrupt](/reference/empathic-voice-interface-evi/chat/chat#receive.UserInterruption.type)
963-
messages, interim `UserMessages` are useful for detecting if the user
964-
is interrupting during audio playback on the client, signaling to stop
965-
playback in your application. Interim `UserMessages` will only be
966-
received if the
967-
[verbose_transcription](/reference/empathic-voice-interface-evi/chat/chat#request.query.verbose_transcription)
968-
query parameter is set to `true` in the handshake request.
955+
Indicates whether this `UserMessage` contains an interim (unfinalized)
956+
transcript.
957+
958+
959+
- `true`: the transcript is provisional; words may be repeated or
960+
refined in subsequent `UserMessage` responses as additional audio is
961+
processed.
962+
963+
- `false`: the transcript is final and complete.
964+
965+
966+
Interim transcripts are only sent when the
967+
[`verbose_transcription`](/reference/empathic-voice-interface-evi/chat/chat#request.query.verbose_transcription)
968+
query parameter is set to `true` in the initial handshake.
969969
message:
970970
type: ChatMessage
971971
docs: Transcript of the message.
@@ -1029,12 +1029,16 @@ types:
10291029
name: Claude3Sonnet20240229
10301030
- value: claude-3-haiku-20240307
10311031
name: Claude3Haiku20240307
1032+
- value: claude-sonnet-4-20250514
1033+
name: ClaudeSonnet420250514
10321034
- value: us.anthropic.claude-3-5-haiku-20241022-v1:0
10331035
name: UsAnthropicClaude35Haiku20241022V10
10341036
- value: us.anthropic.claude-3-5-sonnet-20240620-v1:0
10351037
name: UsAnthropicClaude35Sonnet20240620V10
10361038
- value: us.anthropic.claude-3-haiku-20240307-v1:0
10371039
name: UsAnthropicClaude3Haiku20240307V10
1040+
- value: qwen-3-235b-a22b
1041+
name: Qwen3235BA22B
10381042
- value: gemini-1.5-pro
10391043
name: Gemini15Pro
10401044
- value: gemini-1.5-flash
@@ -1045,6 +1049,10 @@ types:
10451049
name: Gemini15Flash002
10461050
- value: gemini-2.0-flash
10471051
name: Gemini20Flash
1052+
- value: gemini-2.5-flash
1053+
name: Gemini25Flash
1054+
- value: gemini-2.5-flash-preview-04-17
1055+
name: Gemini25FlashPreview0417
10481056
- value: gpt-4-turbo
10491057
name: Gpt4Turbo
10501058
- value: gpt-4-turbo-preview
@@ -1069,6 +1077,8 @@ types:
10691077
name: Llama3370BVersatile
10701078
- value: llama-3.1-8b-instant
10711079
name: Llama318BInstant
1080+
- value: moonshotai/kimi-k2-instruct
1081+
name: MoonshotaiKimiK2Instruct
10721082
- value: accounts/fireworks/models/mixtral-8x7b-instruct
10731083
name: AccountsFireworksModelsMixtral8X7BInstruct
10741084
- value: accounts/fireworks/models/llama-v3p1-405b-instruct
@@ -1077,9 +1087,21 @@ types:
10771087
name: AccountsFireworksModelsLlamaV3P170BInstruct
10781088
- value: accounts/fireworks/models/llama-v3p1-8b-instruct
10791089
name: AccountsFireworksModelsLlamaV3P18BInstruct
1090+
- sonar
1091+
- value: sonar-pro
1092+
name: SonarPro
1093+
- sambanova
1094+
- value: DeepSeek-R1-Distill-Llama-70B
1095+
name: DeepSeekR1DistillLlama70B
1096+
- value: Llama-4-Maverick-17B-128E-Instruct
1097+
name: Llama4Maverick17B128EInstruct
1098+
- value: Qwen3-32B
1099+
name: Qwen332B
10801100
- ellm
10811101
- value: custom-language-model
10821102
name: CustomLanguageModel
1103+
- value: hume-evi-3-web-search
1104+
name: HumeEvi3WebSearch
10831105
source:
10841106
openapi: evi-openapi.json
10851107
ModelProviderEnum:
@@ -1092,6 +1114,9 @@ types:
10921114
- GOOGLE
10931115
- HUME_AI
10941116
- AMAZON_BEDROCK
1117+
- PERPLEXITY
1118+
- SAMBANOVA
1119+
- CEREBRAS
10951120
source:
10961121
openapi: evi-openapi.json
10971122
ValidationErrorLocItem:
@@ -1405,6 +1430,9 @@ types:
14051430
Version numbers are integer values representing different iterations
14061431
of the Prompt. Each update to the Prompt increments its version
14071432
number.
1433+
version_description:
1434+
type: optional<string>
1435+
docs: An optional description of the Prompt version.
14081436
version_type:
14091437
type: ReturnPromptVersionType
14101438
docs: >-
@@ -1420,9 +1448,6 @@ types:
14201448
docs: >-
14211449
Time at which the Prompt was last modified. Measured in seconds since
14221450
the Unix epoch.
1423-
version_description:
1424-
type: optional<string>
1425-
docs: An optional description of the Prompt version.
14261451
source:
14271452
openapi: evi-openapi.json
14281453
ReturnPagedConfigs:
@@ -1478,13 +1503,34 @@ types:
14781503
Version numbers are integer values representing different iterations
14791504
of the Config. Each update to the Config increments its version
14801505
number.
1506+
version_description:
1507+
type: optional<string>
1508+
docs: An optional description of the Config version.
1509+
language_model:
1510+
type: optional<ReturnLanguageModel>
1511+
docs: >-
1512+
The supplemental language model associated with this Config.
1513+
1514+
1515+
This model is used to generate longer, more detailed responses from
1516+
EVI. Choosing an appropriate supplemental language model for your use
1517+
case is crucial for generating fast, high-quality responses from EVI.
1518+
builtin_tools:
1519+
type: optional<list<optional<ReturnBuiltinTool>>>
1520+
docs: List of built-in tools associated with this Config.
1521+
event_messages: optional<ReturnEventMessageSpecs>
14811522
evi_version:
14821523
type: optional<string>
14831524
docs: >-
1484-
Specifies the EVI version to use. Use `"1"` for version 1, or `"2"`
1485-
for the latest enhanced version. For a detailed comparison of the two
1486-
versions, refer to our
1487-
[guide](/docs/speech-to-speech-evi/configuration/evi-version).
1525+
Specifies the EVI version to use. See our [EVI Version
1526+
Guide](/docs/speech-to-speech-evi/configuration/evi-version) for
1527+
differences between versions.
1528+
1529+
1530+
**We're officially sunsetting EVI versions 1 and 2 on August 30,
1531+
2025**. To keep things running smoothly, be sure to [migrate to EVI
1532+
3](/docs/speech-to-speech-evi/configuration/evi-version#migrating-to-evi-3)
1533+
before then.
14881534
timeouts: optional<ReturnTimeoutSpecs>
14891535
nudges: optional<ReturnNudgeSpec>
14901536
ellm_model:
@@ -1515,22 +1561,6 @@ types:
15151561
docs: >-
15161562
Time at which the Config was last modified. Measured in seconds since
15171563
the Unix epoch.
1518-
language_model:
1519-
type: optional<ReturnLanguageModel>
1520-
docs: >-
1521-
The supplemental language model associated with this Config.
1522-
1523-
1524-
This model is used to generate longer, more detailed responses from
1525-
EVI. Choosing an appropriate supplemental language model for your use
1526-
case is crucial for generating fast, high-quality responses from EVI.
1527-
builtin_tools:
1528-
type: optional<list<optional<ReturnBuiltinTool>>>
1529-
docs: List of built-in tools associated with this Config.
1530-
event_messages: optional<ReturnEventMessageSpecs>
1531-
version_description:
1532-
type: optional<string>
1533-
docs: An optional description of the Config version.
15341564
source:
15351565
openapi: evi-openapi.json
15361566
ReturnPagedChatsPaginationDirection:
@@ -2632,50 +2662,58 @@ types:
26322662
The role of the entity which generated the Chat Event. There are four
26332663
possible values:
26342664
2635-
26362665
- `USER`: The user, capable of sending user messages and interruptions.
26372666
2638-
26392667
- `AGENT`: The assistant, capable of sending agent messages.
26402668
2641-
26422669
- `SYSTEM`: The backend server, capable of transmitting errors.
26432670
2644-
26452671
- `TOOL`: The function calling mechanism.
26462672
inline: true
26472673
source:
26482674
openapi: evi-openapi.json
26492675
ReturnChatEventType:
26502676
enum:
2651-
- SYSTEM_PROMPT
2652-
- USER_MESSAGE
2653-
- USER_INTERRUPTION
2654-
- AGENT_MESSAGE
26552677
- FUNCTION_CALL
26562678
- FUNCTION_CALL_RESPONSE
2679+
- CHAT_END_MESSAGE
2680+
- AGENT_MESSAGE
2681+
- SYSTEM_PROMPT
2682+
- USER_RECORDING_START_MESSAGE
2683+
- RESUME_ONSET
2684+
- USER_INTERRUPTION
2685+
- CHAT_START_MESSAGE
2686+
- PAUSE_ONSET
2687+
- USER_MESSAGE
26572688
docs: >-
2658-
Type of Chat Event. There are six possible values:
2659-
2689+
Type of Chat Event. There are eleven Chat Event types:
26602690
2661-
- `SYSTEM_PROMPT`: Contains the system prompt for use in the session.
2691+
- `SYSTEM_PROMPT`: The system prompt used to initialize the session.
26622692
2693+
- `CHAT_START_MESSAGE`: Marks the beginning of the chat session.
26632694
2664-
- `USER_MESSAGE`: Contains the message sent by the user.
2695+
- `USER_RECORDING_START_MESSAGE`: Marks when the client began streaming
2696+
audio and the start of audio processing.
26652697
2698+
- `USER_MESSAGE`: A message sent by the user.
26662699
2667-
- `USER_INTERRUPTION`: Contains an interruption made by the user while the
2668-
agent is speaking.
2700+
- `USER_INTERRUPTION`: A user-initiated interruption while the assistant
2701+
is speaking.
26692702
2703+
- `AGENT_MESSAGE`: A response generated by the assistant.
26702704
2671-
- `AGENT_MESSAGE`: Contains the assistant’s message, generated by Hume’s
2672-
eLLM and supplemental LLM.
2705+
- `FUNCTION_CALL`: A record of a tool invocation by the assistant.
26732706
2707+
- `FUNCTION_CALL_RESPONSE`: The result of a previously invoked function or
2708+
tool.
26742709
2675-
- `FUNCTION_CALL`: Contains the invocation of a tool.
2710+
- `PAUSE_ONSET`: Marks when the client sent a `pause_assistant_message` to
2711+
pause the assistant.
26762712
2713+
- `RESUME_ONSET`: Marks when the client sent a `resume_assistant_message`
2714+
to resume the assistant.
26772715
2678-
- `FUNCTION_CALL_RESPONSE`: Contains the tool response.
2716+
- `CHAT_END_MESSAGE`: Indicates the end of the chat session.
26792717
inline: true
26802718
source:
26812719
openapi: evi-openapi.json
@@ -2699,42 +2737,45 @@ types:
26992737
The role of the entity which generated the Chat Event. There are four
27002738
possible values:
27012739
2702-
27032740
- `USER`: The user, capable of sending user messages and
27042741
interruptions.
27052742
2706-
27072743
- `AGENT`: The assistant, capable of sending agent messages.
27082744
2709-
27102745
- `SYSTEM`: The backend server, capable of transmitting errors.
27112746
2712-
27132747
- `TOOL`: The function calling mechanism.
27142748
type:
27152749
type: ReturnChatEventType
27162750
docs: >-
2717-
Type of Chat Event. There are six possible values:
2718-
2751+
Type of Chat Event. There are eleven Chat Event types:
27192752
2720-
- `SYSTEM_PROMPT`: Contains the system prompt for use in the session.
2753+
- `SYSTEM_PROMPT`: The system prompt used to initialize the session.
27212754
2755+
- `CHAT_START_MESSAGE`: Marks the beginning of the chat session.
27222756
2723-
- `USER_MESSAGE`: Contains the message sent by the user.
2757+
- `USER_RECORDING_START_MESSAGE`: Marks when the client began
2758+
streaming audio and the start of audio processing.
27242759
2760+
- `USER_MESSAGE`: A message sent by the user.
27252761
2726-
- `USER_INTERRUPTION`: Contains an interruption made by the user while
2727-
the agent is speaking.
2762+
- `USER_INTERRUPTION`: A user-initiated interruption while the
2763+
assistant is speaking.
27282764
2765+
- `AGENT_MESSAGE`: A response generated by the assistant.
27292766
2730-
- `AGENT_MESSAGE`: Contains the assistant’s message, generated by
2731-
Hume’s eLLM and supplemental LLM.
2767+
- `FUNCTION_CALL`: A record of a tool invocation by the assistant.
27322768
2769+
- `FUNCTION_CALL_RESPONSE`: The result of a previously invoked
2770+
function or tool.
27332771
2734-
- `FUNCTION_CALL`: Contains the invocation of a tool.
2772+
- `PAUSE_ONSET`: Marks when the client sent a
2773+
`pause_assistant_message` to pause the assistant.
27352774
2775+
- `RESUME_ONSET`: Marks when the client sent a
2776+
`resume_assistant_message` to resume the assistant.
27362777
2737-
- `FUNCTION_CALL_RESPONSE`: Contains the tool response.
2778+
- `CHAT_END_MESSAGE`: Indicates the end of the chat session.
27382779
message_text:
27392780
type: optional<string>
27402781
docs: >-

.mock/definition/empathic-voice/configs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,16 @@ service:
141141
evi_version:
142142
type: string
143143
docs: >-
144-
Specifies the EVI version to use. Use `"1"` for version 1, or
145-
`"2"` for the latest enhanced version. For a detailed comparison
146-
of the two versions, refer to our
147-
[guide](/docs/speech-to-speech-evi/configuration/evi-version).
144+
Specifies the EVI version to use. See our [EVI Version
145+
Guide](/docs/speech-to-speech-evi/configuration/evi-version) for
146+
differences between versions.
147+
148+
149+
**We're officially sunsetting EVI versions 1 and 2 on August 30,
150+
2025**. To keep things running smoothly, be sure to [migrate to
151+
EVI
152+
3](/docs/speech-to-speech-evi/configuration/evi-version#migrating-to-evi-3)
153+
before then.
148154
name:
149155
type: string
150156
docs: Name applied to all versions of a particular Config.

.mock/definition/tts/__package__.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,13 @@ types:
514514
maxLength: 1000
515515
speed:
516516
type: optional<double>
517-
docs: Speed multiplier for the synthesized speech.
517+
docs: >-
518+
Speed multiplier for the synthesized speech. Extreme values below 0.75
519+
and above 1.5 may sometimes cause instability to the generated output.
518520
default: 1
519521
validation:
520-
min: 0.25
521-
max: 3
522+
min: 0.5
523+
max: 2
522524
text:
523525
type: string
524526
docs: The input text to be synthesized into speech.
@@ -527,7 +529,7 @@ types:
527529
trailing_silence:
528530
type: optional<double>
529531
docs: Duration of trailing silence (in seconds) to add to this utterance
530-
default: 0.35
532+
default: 0
531533
validation:
532534
min: 0
533535
max: 5

jest.browser.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('jest').Config} */
2+
export default {
3+
preset: "ts-jest",
4+
testEnvironment: "<rootDir>/tests/BrowserTestEnvironment.ts",
5+
testMatch: ["**/tests/**/*.browser.test.ts"],
6+
moduleNameMapper: {
7+
"^(\\.{1,2}/.*)\\.js$": "$1",
8+
},
9+
passWithNoTests: true,
10+
};

jest.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
export default {
33
preset: "ts-jest",
44
testEnvironment: "node",
5+
testPathIgnorePatterns: [".*\\.browser\\.test\\.ts$"],
56
moduleNameMapper: {
67
"(.+)\.js$": "$1",
78
},

0 commit comments

Comments
 (0)