Skip to content

Commit 5369577

Browse files
🌿 Fern Regeneration -- August 5, 2025 (#337)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 63c2b39 commit 5369577

15 files changed

Lines changed: 388 additions & 110 deletions

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

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,63 @@ client.tts.voices.delete(
867867
</dl>
868868

869869

870+
</dd>
871+
</dl>
872+
</details>
873+
874+
## EmpathicVoice
875+
<details><summary><code>client.empathic_voice.<a href="src/hume/empathic_voice/client.py">custom_language_model_supports_tool_use_v_0_evi_custom_language_model_supports_tool_use_post</a>(...)</code></summary>
876+
<dl>
877+
<dd>
878+
879+
#### 🔌 Usage
880+
881+
<dl>
882+
<dd>
883+
884+
<dl>
885+
<dd>
886+
887+
```python
888+
from hume import HumeClient
889+
890+
client = HumeClient(
891+
api_key="YOUR_API_KEY",
892+
)
893+
client.empathic_voice.custom_language_model_supports_tool_use_v_0_evi_custom_language_model_supports_tool_use_post(
894+
model_resource="model_resource",
895+
)
896+
897+
```
898+
</dd>
899+
</dl>
900+
</dd>
901+
</dl>
902+
903+
#### ⚙️ Parameters
904+
905+
<dl>
906+
<dd>
907+
908+
<dl>
909+
<dd>
910+
911+
**model_resource:** `str`
912+
913+
</dd>
914+
</dl>
915+
916+
<dl>
917+
<dd>
918+
919+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
920+
921+
</dd>
922+
</dl>
923+
</dd>
924+
</dl>
925+
926+
870927
</dd>
871928
</dl>
872929
</details>

src/hume/empathic_voice/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
Role,
9191
SessionSettings,
9292
SessionSettingsVariablesValue,
93+
SupportsToolUse,
9394
Tool,
9495
ToolCallMessage,
9596
ToolErrorMessage,
@@ -112,7 +113,7 @@
112113
WebhookEventChatStarted,
113114
WebhookEventChatStatus,
114115
)
115-
from .errors import BadRequestError
116+
from .errors import BadRequestError, UnprocessableEntityError
116117
from . import chat, chat_groups, chats, configs, prompts, tools
117118
from .chat import PublishEvent, SubscribeEvent
118119

@@ -207,11 +208,13 @@
207208
"SessionSettings",
208209
"SessionSettingsVariablesValue",
209210
"SubscribeEvent",
211+
"SupportsToolUse",
210212
"Tool",
211213
"ToolCallMessage",
212214
"ToolErrorMessage",
213215
"ToolResponseMessage",
214216
"ToolType",
217+
"UnprocessableEntityError",
215218
"UserInput",
216219
"UserInterruption",
217220
"UserMessage",

0 commit comments

Comments
 (0)