Skip to content

Commit dcb8a99

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

29 files changed

+296
-116
lines changed

.fernignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ src/core/index.ts
3030
# Tests
3131
tests/empathicVoice
3232
tests/expressionMeasurement
33+
34+
# Needed because node 18 doesn't actually have a global.File
35+
tests/BrowserTestEnvironment.ts

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

Lines changed: 66 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
11
errors:
2+
UnprocessableEntityError:
3+
status-code: 422
4+
type: HTTPValidationError
5+
docs: Validation Error
6+
examples:
7+
- value: {}
28
BadRequestError:
39
status-code: 400
410
type: ErrorResponse
511
docs: Bad Request
612
examples:
713
- value: {}
14+
service:
15+
auth: false
16+
base-path: ''
17+
endpoints:
18+
custom_language_model_supports_tool_use_v0_evi_custom_language_model_supports_tool_use_post:
19+
path: /v0/evi/custom_language_model_supports_tool_use
20+
method: POST
21+
auth: true
22+
source:
23+
openapi: evi-openapi.json
24+
display-name: Custom Language Model Supports Tool Use
25+
request:
26+
name: >-
27+
BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost
28+
body:
29+
properties:
30+
model_resource: string
31+
content-type: application/json
32+
response:
33+
docs: Successful Response
34+
type: SupportsToolUse
35+
status-code: 200
36+
errors:
37+
- UnprocessableEntityError
38+
examples:
39+
- request:
40+
model_resource: model_resource
41+
response:
42+
body:
43+
model_resource: model_resource
44+
supports_tool_use: true
45+
source:
46+
openapi: evi-openapi.json
847
types:
948
AssistantEnd:
1049
docs: When provided, the output is an assistant end message.
@@ -1037,8 +1076,14 @@ types:
10371076
name: UsAnthropicClaude35Sonnet20240620V10
10381077
- value: us.anthropic.claude-3-haiku-20240307-v1:0
10391078
name: UsAnthropicClaude3Haiku20240307V10
1079+
- value: gpt-oss-120b
1080+
name: GptOss120B
10401081
- value: qwen-3-235b-a22b
10411082
name: Qwen3235BA22B
1083+
- value: qwen-3-235b-a22b-instruct-2507
1084+
name: Qwen3235BA22BInstruct2507
1085+
- value: qwen-3-235b-a22b-thinking-2507
1086+
name: Qwen3235BA22BThinking2507
10421087
- value: gemini-1.5-pro
10431088
name: Gemini15Pro
10441089
- value: gemini-1.5-flash
@@ -1065,6 +1110,8 @@ types:
10651110
name: Gpt4O
10661111
- value: gpt-4o-mini
10671112
name: Gpt4OMini
1113+
- value: gpt-4.1
1114+
name: Gpt41
10681115
- value: gemma-7b-it
10691116
name: Gemma7BIt
10701117
- value: llama3-8b-8192
@@ -1119,6 +1166,12 @@ types:
11191166
- CEREBRAS
11201167
source:
11211168
openapi: evi-openapi.json
1169+
SupportsToolUse:
1170+
properties:
1171+
model_resource: string
1172+
supports_tool_use: boolean
1173+
source:
1174+
openapi: evi-openapi.json
11221175
ValidationErrorLocItem:
11231176
discriminated: false
11241177
union:
@@ -1430,14 +1483,14 @@ types:
14301483
Version numbers are integer values representing different iterations
14311484
of the Prompt. Each update to the Prompt increments its version
14321485
number.
1433-
version_description:
1434-
type: optional<string>
1435-
docs: An optional description of the Prompt version.
14361486
version_type:
14371487
type: ReturnPromptVersionType
14381488
docs: >-
14391489
Versioning method for a Prompt. Either `FIXED` for using a fixed
14401490
version number or `LATEST` for auto-updating to the latest version.
1491+
version_description:
1492+
type: optional<string>
1493+
docs: An optional description of the Prompt version.
14411494
created_on:
14421495
type: long
14431496
docs: >-
@@ -1503,9 +1556,6 @@ types:
15031556
Version numbers are integer values representing different iterations
15041557
of the Config. Each update to the Config increments its version
15051558
number.
1506-
version_description:
1507-
type: optional<string>
1508-
docs: An optional description of the Config version.
15091559
language_model:
15101560
type: optional<ReturnLanguageModel>
15111561
docs: >-
@@ -1518,7 +1568,6 @@ types:
15181568
builtin_tools:
15191569
type: optional<list<optional<ReturnBuiltinTool>>>
15201570
docs: List of built-in tools associated with this Config.
1521-
event_messages: optional<ReturnEventMessageSpecs>
15221571
evi_version:
15231572
type: optional<string>
15241573
docs: >-
@@ -1532,7 +1581,7 @@ types:
15321581
3](/docs/speech-to-speech-evi/configuration/evi-version#migrating-to-evi-3)
15331582
before then.
15341583
timeouts: optional<ReturnTimeoutSpecs>
1535-
nudges: optional<ReturnNudgeSpec>
1584+
event_messages: optional<ReturnEventMessageSpecs>
15361585
ellm_model:
15371586
type: optional<ReturnEllmModel>
15381587
docs: >-
@@ -1543,14 +1592,12 @@ types:
15431592
model that takes into account both expression measures and language.
15441593
The eLLM generates short, empathic language responses and guides
15451594
text-to-speech (TTS) prosody.
1546-
voice: optional<unknown>
1547-
prompt: optional<ReturnPrompt>
1548-
tools:
1549-
type: optional<list<optional<ReturnUserDefinedTool>>>
1550-
docs: List of user-defined tools associated with this Config.
15511595
webhooks:
15521596
type: optional<list<optional<ReturnWebhookSpec>>>
15531597
docs: Map of webhooks associated with this config.
1598+
version_description:
1599+
type: optional<string>
1600+
docs: An optional description of the Config version.
15541601
created_on:
15551602
type: optional<long>
15561603
docs: >-
@@ -1561,6 +1608,12 @@ types:
15611608
docs: >-
15621609
Time at which the Config was last modified. Measured in seconds since
15631610
the Unix epoch.
1611+
nudges: optional<ReturnNudgeSpec>
1612+
voice: optional<unknown>
1613+
prompt: optional<ReturnPrompt>
1614+
tools:
1615+
type: optional<list<optional<ReturnUserDefinedTool>>>
1616+
docs: List of user-defined tools associated with this Config.
15641617
source:
15651618
openapi: evi-openapi.json
15661619
ReturnPagedChatsPaginationDirection:

.mock/definition/tts/__package__.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -453,40 +453,7 @@ types:
453453
source:
454454
openapi: tts-openapi.yml
455455
SnippetAudioChunk:
456-
properties:
457-
audio:
458-
type: string
459-
docs: The generated audio output chunk in the requested format.
460-
chunk_index:
461-
type: integer
462-
docs: The index of the audio chunk in the snippet.
463-
generation_id:
464-
type: string
465-
docs: >-
466-
The generation ID of the parent snippet that this chunk corresponds
467-
to.
468-
is_last_chunk:
469-
type: boolean
470-
docs: >-
471-
Whether or not this is the last chunk streamed back from the decoder
472-
for one input snippet.
473-
snippet_id:
474-
type: string
475-
docs: The ID of the parent snippet that this chunk corresponds to.
476-
text:
477-
type: string
478-
docs: The text of the parent snippet that this chunk corresponds to.
479-
transcribed_text:
480-
type: optional<string>
481-
docs: >-
482-
The transcribed text of the generated audio of the parent snippet that
483-
this chunk corresponds to. It is only present if `instant_mode` is set
484-
to `false`.
485-
utterance_index:
486-
type: optional<integer>
487-
docs: >-
488-
The index of the utterance in the request that the parent snippet of
489-
this chunk corresponds to.
456+
properties: {}
490457
source:
491458
openapi: tts-openapi.yml
492459
PostedUtterance:

reference.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,58 @@ await client.tts.voices.delete({
532532
</dl>
533533
</details>
534534

535+
## EmpathicVoice
536+
537+
<details><summary><code>client.empathicVoice.<a href="/src/api/resources/empathicVoice/client/Client.ts">customLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost</a>({ ...params }) -> Hume.SupportsToolUse</code></summary>
538+
<dl>
539+
<dd>
540+
541+
#### 🔌 Usage
542+
543+
<dl>
544+
<dd>
545+
546+
<dl>
547+
<dd>
548+
549+
```typescript
550+
await client.empathicVoice.customLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost({
551+
modelResource: "model_resource",
552+
});
553+
```
554+
555+
</dd>
556+
</dl>
557+
</dd>
558+
</dl>
559+
560+
#### ⚙️ Parameters
561+
562+
<dl>
563+
<dd>
564+
565+
<dl>
566+
<dd>
567+
568+
**request:** `Hume.empathicVoice.BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost`
569+
570+
</dd>
571+
</dl>
572+
573+
<dl>
574+
<dd>
575+
576+
**requestOptions:** `EmpathicVoice.RequestOptions`
577+
578+
</dd>
579+
</dl>
580+
</dd>
581+
</dl>
582+
583+
</dd>
584+
</dl>
585+
</details>
586+
535587
## EmpathicVoice Tools
536588

537589
<details><summary><code>client.empathicVoice.tools.<a href="/src/api/resources/empathicVoice/resources/tools/client/Client.ts">listTools</a>({ ...params }) -> core.Page<Hume.ReturnUserDefinedTool | undefined></code></summary>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export {};
2+
export * from "./requests";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* @example
7+
* {
8+
* modelResource: "model_resource"
9+
* }
10+
*/
11+
export interface BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost {
12+
modelResource: string;
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { type BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost } from "./BodyCustomLanguageModelSupportsToolUseV0EviCustomLanguageModelSupportsToolUsePost";
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as errors from "../../../../errors/index";
6+
import * as Hume from "../../../index";
7+
import * as core from "../../../../core";
8+
9+
export class UnprocessableEntityError extends errors.HumeError {
10+
constructor(body: Hume.empathicVoice.HttpValidationError, rawResponse?: core.RawResponse) {
11+
super({
12+
message: "UnprocessableEntityError",
13+
statusCode: 422,
14+
body: body,
15+
rawResponse: rawResponse,
16+
});
17+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
18+
}
19+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export * from "./UnprocessableEntityError";
12
export * from "./BadRequestError";

src/api/resources/empathicVoice/types/LanguageModelType.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export type LanguageModelType =
1414
| "us.anthropic.claude-3-5-haiku-20241022-v1:0"
1515
| "us.anthropic.claude-3-5-sonnet-20240620-v1:0"
1616
| "us.anthropic.claude-3-haiku-20240307-v1:0"
17+
| "gpt-oss-120b"
1718
| "qwen-3-235b-a22b"
19+
| "qwen-3-235b-a22b-instruct-2507"
20+
| "qwen-3-235b-a22b-thinking-2507"
1821
| "gemini-1.5-pro"
1922
| "gemini-1.5-flash"
2023
| "gemini-1.5-pro-002"
@@ -28,6 +31,7 @@ export type LanguageModelType =
2831
| "gpt-3.5-turbo"
2932
| "gpt-4o"
3033
| "gpt-4o-mini"
34+
| "gpt-4.1"
3135
| "gemma-7b-it"
3236
| "llama3-8b-8192"
3337
| "llama3-70b-8192"
@@ -60,7 +64,10 @@ export const LanguageModelType = {
6064
UsAnthropicClaude35Haiku20241022V10: "us.anthropic.claude-3-5-haiku-20241022-v1:0",
6165
UsAnthropicClaude35Sonnet20240620V10: "us.anthropic.claude-3-5-sonnet-20240620-v1:0",
6266
UsAnthropicClaude3Haiku20240307V10: "us.anthropic.claude-3-haiku-20240307-v1:0",
67+
GptOss120B: "gpt-oss-120b",
6368
Qwen3235Ba22B: "qwen-3-235b-a22b",
69+
Qwen3235Ba22BInstruct2507: "qwen-3-235b-a22b-instruct-2507",
70+
Qwen3235Ba22BThinking2507: "qwen-3-235b-a22b-thinking-2507",
6471
Gemini15Pro: "gemini-1.5-pro",
6572
Gemini15Flash: "gemini-1.5-flash",
6673
Gemini15Pro002: "gemini-1.5-pro-002",
@@ -74,6 +81,7 @@ export const LanguageModelType = {
7481
Gpt35Turbo: "gpt-3.5-turbo",
7582
Gpt4O: "gpt-4o",
7683
Gpt4OMini: "gpt-4o-mini",
84+
Gpt41: "gpt-4.1",
7785
Gemma7BIt: "gemma-7b-it",
7886
Llama38B8192: "llama3-8b-8192",
7987
Llama370B8192: "llama3-70b-8192",

0 commit comments

Comments
 (0)