Skip to content

Commit aefc9b4

Browse files
SDK regeneration (#482)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: ivaaan <diykarelia@gmail.com>
1 parent 30d5355 commit aefc9b4

17 files changed

Lines changed: 534 additions & 211 deletions

.fern/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "3.91.2",
2+
"cliVersion": "4.62.5",
33
"generatorName": "fernapi/fern-python-sdk",
44
"generatorVersion": "4.61.0",
55
"generatorConfig": {
@@ -64,5 +64,6 @@
6464
}
6565
]
6666
},
67-
"sdkVersion": "0.13.10"
67+
"originGitCommit": "a07a0deaa640e8b286f9c8e4e47426b37a083a67",
68+
"sdkVersion": "0.13.11"
6869
}

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "hume"
7-
version = "0.13.10"
7+
version = "0.13.11"
88
description = "A Python SDK for Hume AI"
99
readme = "README.md"
1010
authors = []

src/hume/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2828
import platform
2929

3030
headers: typing.Dict[str, str] = {
31-
"User-Agent": "hume/0.13.10",
31+
"User-Agent": "hume/0.13.11",
3232
"X-Fern-Language": "Python",
3333
"X-Fern-Runtime": f"python/{platform.python_version()}",
3434
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3535
"X-Fern-SDK-Name": "hume",
36-
"X-Fern-SDK-Version": "0.13.10",
36+
"X-Fern-SDK-Version": "0.13.11",
3737
**(self.get_custom_headers() or {}),
3838
}
3939
if self.api_key is not None:

src/hume/empathic_voice/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
ErrorResponse,
3333
HttpValidationError,
3434
Inference,
35+
InterruptionSpec,
3536
JsonMessage,
3637
LanguageModelType,
3738
MillisecondInterval,
@@ -43,12 +44,14 @@
4344
PostedEllmModel,
4445
PostedEventMessageSpec,
4546
PostedEventMessageSpecs,
47+
PostedInterruptionSpec,
4648
PostedLanguageModel,
4749
PostedNudgeSpec,
4850
PostedTimeoutSpec,
4951
PostedTimeoutSpecs,
5052
PostedTimeoutSpecsInactivity,
5153
PostedTimeoutSpecsMaxDuration,
54+
PostedTurnDetectionSpec,
5255
PostedUserDefinedToolSpec,
5356
PostedWebhookEventType,
5457
PostedWebhookSpec,
@@ -79,6 +82,7 @@
7982
ReturnEllmModel,
8083
ReturnEventMessageSpec,
8184
ReturnEventMessageSpecs,
85+
ReturnInterruptionSpec,
8286
ReturnLanguageModel,
8387
ReturnNudgeSpec,
8488
ReturnPagedChatGroups,
@@ -92,6 +96,7 @@
9296
ReturnPromptVersionType,
9397
ReturnTimeoutSpec,
9498
ReturnTimeoutSpecs,
99+
ReturnTurnDetectionSpec,
95100
ReturnUserDefinedTool,
96101
ReturnUserDefinedToolToolType,
97102
ReturnUserDefinedToolVersionType,
@@ -107,6 +112,7 @@
107112
ToolErrorMessage,
108113
ToolResponseMessage,
109114
ToolType,
115+
TurnDetectionSpec,
110116
UserInput,
111117
UserInterruption,
112118
UserMessage,
@@ -155,6 +161,7 @@
155161
"ErrorResponse": ".types",
156162
"HttpValidationError": ".types",
157163
"Inference": ".types",
164+
"InterruptionSpec": ".types",
158165
"JsonMessage": ".types",
159166
"LanguageModelType": ".types",
160167
"MillisecondInterval": ".types",
@@ -166,12 +173,14 @@
166173
"PostedEllmModel": ".types",
167174
"PostedEventMessageSpec": ".types",
168175
"PostedEventMessageSpecs": ".types",
176+
"PostedInterruptionSpec": ".types",
169177
"PostedLanguageModel": ".types",
170178
"PostedNudgeSpec": ".types",
171179
"PostedTimeoutSpec": ".types",
172180
"PostedTimeoutSpecs": ".types",
173181
"PostedTimeoutSpecsInactivity": ".types",
174182
"PostedTimeoutSpecsMaxDuration": ".types",
183+
"PostedTurnDetectionSpec": ".types",
175184
"PostedUserDefinedToolSpec": ".types",
176185
"PostedWebhookEventType": ".types",
177186
"PostedWebhookSpec": ".types",
@@ -203,6 +212,7 @@
203212
"ReturnEllmModel": ".types",
204213
"ReturnEventMessageSpec": ".types",
205214
"ReturnEventMessageSpecs": ".types",
215+
"ReturnInterruptionSpec": ".types",
206216
"ReturnLanguageModel": ".types",
207217
"ReturnNudgeSpec": ".types",
208218
"ReturnPagedChatGroups": ".types",
@@ -216,6 +226,7 @@
216226
"ReturnPromptVersionType": ".types",
217227
"ReturnTimeoutSpec": ".types",
218228
"ReturnTimeoutSpecs": ".types",
229+
"ReturnTurnDetectionSpec": ".types",
219230
"ReturnUserDefinedTool": ".types",
220231
"ReturnUserDefinedToolToolType": ".types",
221232
"ReturnUserDefinedToolVersionType": ".types",
@@ -231,6 +242,7 @@
231242
"ToolErrorMessage": ".types",
232243
"ToolResponseMessage": ".types",
233244
"ToolType": ".types",
245+
"TurnDetectionSpec": ".types",
234246
"UnprocessableEntityError": ".errors",
235247
"UserInput": ".types",
236248
"UserInterruption": ".types",
@@ -307,6 +319,7 @@ def __dir__():
307319
"ErrorResponse",
308320
"HttpValidationError",
309321
"Inference",
322+
"InterruptionSpec",
310323
"JsonMessage",
311324
"LanguageModelType",
312325
"MillisecondInterval",
@@ -318,12 +331,14 @@ def __dir__():
318331
"PostedEllmModel",
319332
"PostedEventMessageSpec",
320333
"PostedEventMessageSpecs",
334+
"PostedInterruptionSpec",
321335
"PostedLanguageModel",
322336
"PostedNudgeSpec",
323337
"PostedTimeoutSpec",
324338
"PostedTimeoutSpecs",
325339
"PostedTimeoutSpecsInactivity",
326340
"PostedTimeoutSpecsMaxDuration",
341+
"PostedTurnDetectionSpec",
327342
"PostedUserDefinedToolSpec",
328343
"PostedWebhookEventType",
329344
"PostedWebhookSpec",
@@ -355,6 +370,7 @@ def __dir__():
355370
"ReturnEllmModel",
356371
"ReturnEventMessageSpec",
357372
"ReturnEventMessageSpecs",
373+
"ReturnInterruptionSpec",
358374
"ReturnLanguageModel",
359375
"ReturnNudgeSpec",
360376
"ReturnPagedChatGroups",
@@ -368,6 +384,7 @@ def __dir__():
368384
"ReturnPromptVersionType",
369385
"ReturnTimeoutSpec",
370386
"ReturnTimeoutSpecs",
387+
"ReturnTurnDetectionSpec",
371388
"ReturnUserDefinedTool",
372389
"ReturnUserDefinedToolToolType",
373390
"ReturnUserDefinedToolVersionType",
@@ -383,6 +400,7 @@ def __dir__():
383400
"ToolErrorMessage",
384401
"ToolResponseMessage",
385402
"ToolType",
403+
"TurnDetectionSpec",
386404
"UnprocessableEntityError",
387405
"UserInput",
388406
"UserInterruption",

src/hume/empathic_voice/configs/client.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
from ..types.posted_config_prompt_spec import PostedConfigPromptSpec
1010
from ..types.posted_ellm_model import PostedEllmModel
1111
from ..types.posted_event_message_specs import PostedEventMessageSpecs
12+
from ..types.posted_interruption_spec import PostedInterruptionSpec
1213
from ..types.posted_language_model import PostedLanguageModel
1314
from ..types.posted_nudge_spec import PostedNudgeSpec
1415
from ..types.posted_timeout_specs import PostedTimeoutSpecs
16+
from ..types.posted_turn_detection_spec import PostedTurnDetectionSpec
1517
from ..types.posted_user_defined_tool_spec import PostedUserDefinedToolSpec
1618
from ..types.posted_webhook_spec import PostedWebhookSpec
1719
from ..types.return_config import ReturnConfig
@@ -111,11 +113,13 @@ def create_config(
111113
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
112114
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
113115
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
116+
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
114117
language_model: typing.Optional[PostedLanguageModel] = OMIT,
115118
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
116119
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
117120
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
118121
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
122+
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
119123
version_description: typing.Optional[str] = OMIT,
120124
voice: typing.Optional[VoiceRef] = OMIT,
121125
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
@@ -141,6 +145,8 @@ def create_config(
141145
142146
event_messages : typing.Optional[PostedEventMessageSpecs]
143147
148+
interruption : typing.Optional[PostedInterruptionSpec]
149+
144150
language_model : typing.Optional[PostedLanguageModel]
145151
146152
nudges : typing.Optional[PostedNudgeSpec]
@@ -152,6 +158,8 @@ def create_config(
152158
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
153159
Tool specification for a Config.
154160
161+
turn_detection : typing.Optional[PostedTurnDetectionSpec]
162+
155163
version_description : typing.Optional[str]
156164
An optional description of the Config version.
157165
@@ -221,11 +229,13 @@ def create_config(
221229
builtin_tools=builtin_tools,
222230
ellm_model=ellm_model,
223231
event_messages=event_messages,
232+
interruption=interruption,
224233
language_model=language_model,
225234
nudges=nudges,
226235
prompt=prompt,
227236
timeouts=timeouts,
228237
tools=tools,
238+
turn_detection=turn_detection,
229239
version_description=version_description,
230240
voice=voice,
231241
webhooks=webhooks,
@@ -305,11 +315,13 @@ def create_config_version(
305315
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
306316
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
307317
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
318+
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
308319
language_model: typing.Optional[PostedLanguageModel] = OMIT,
309320
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
310321
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
311322
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
312323
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
324+
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
313325
version_description: typing.Optional[str] = OMIT,
314326
voice: typing.Optional[VoiceRef] = OMIT,
315327
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
@@ -335,6 +347,8 @@ def create_config_version(
335347
336348
event_messages : typing.Optional[PostedEventMessageSpecs]
337349
350+
interruption : typing.Optional[PostedInterruptionSpec]
351+
338352
language_model : typing.Optional[PostedLanguageModel]
339353
340354
nudges : typing.Optional[PostedNudgeSpec]
@@ -346,6 +360,8 @@ def create_config_version(
346360
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
347361
Tool specification for a Config.
348362
363+
turn_detection : typing.Optional[PostedTurnDetectionSpec]
364+
349365
version_description : typing.Optional[str]
350366
An optional description of the Config version.
351367
@@ -419,11 +435,13 @@ def create_config_version(
419435
builtin_tools=builtin_tools,
420436
ellm_model=ellm_model,
421437
event_messages=event_messages,
438+
interruption=interruption,
422439
language_model=language_model,
423440
nudges=nudges,
424441
prompt=prompt,
425442
timeouts=timeouts,
426443
tools=tools,
444+
turn_detection=turn_detection,
427445
version_description=version_description,
428446
voice=voice,
429447
webhooks=webhooks,
@@ -737,11 +755,13 @@ async def create_config(
737755
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
738756
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
739757
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
758+
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
740759
language_model: typing.Optional[PostedLanguageModel] = OMIT,
741760
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
742761
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
743762
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
744763
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
764+
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
745765
version_description: typing.Optional[str] = OMIT,
746766
voice: typing.Optional[VoiceRef] = OMIT,
747767
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
@@ -767,6 +787,8 @@ async def create_config(
767787
768788
event_messages : typing.Optional[PostedEventMessageSpecs]
769789
790+
interruption : typing.Optional[PostedInterruptionSpec]
791+
770792
language_model : typing.Optional[PostedLanguageModel]
771793
772794
nudges : typing.Optional[PostedNudgeSpec]
@@ -778,6 +800,8 @@ async def create_config(
778800
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
779801
Tool specification for a Config.
780802
803+
turn_detection : typing.Optional[PostedTurnDetectionSpec]
804+
781805
version_description : typing.Optional[str]
782806
An optional description of the Config version.
783807
@@ -855,11 +879,13 @@ async def main() -> None:
855879
builtin_tools=builtin_tools,
856880
ellm_model=ellm_model,
857881
event_messages=event_messages,
882+
interruption=interruption,
858883
language_model=language_model,
859884
nudges=nudges,
860885
prompt=prompt,
861886
timeouts=timeouts,
862887
tools=tools,
888+
turn_detection=turn_detection,
863889
version_description=version_description,
864890
voice=voice,
865891
webhooks=webhooks,
@@ -948,11 +974,13 @@ async def create_config_version(
948974
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
949975
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
950976
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
977+
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
951978
language_model: typing.Optional[PostedLanguageModel] = OMIT,
952979
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
953980
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
954981
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
955982
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
983+
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
956984
version_description: typing.Optional[str] = OMIT,
957985
voice: typing.Optional[VoiceRef] = OMIT,
958986
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
@@ -978,6 +1006,8 @@ async def create_config_version(
9781006
9791007
event_messages : typing.Optional[PostedEventMessageSpecs]
9801008
1009+
interruption : typing.Optional[PostedInterruptionSpec]
1010+
9811011
language_model : typing.Optional[PostedLanguageModel]
9821012
9831013
nudges : typing.Optional[PostedNudgeSpec]
@@ -989,6 +1019,8 @@ async def create_config_version(
9891019
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
9901020
Tool specification for a Config.
9911021
1022+
turn_detection : typing.Optional[PostedTurnDetectionSpec]
1023+
9921024
version_description : typing.Optional[str]
9931025
An optional description of the Config version.
9941026
@@ -1070,11 +1102,13 @@ async def main() -> None:
10701102
builtin_tools=builtin_tools,
10711103
ellm_model=ellm_model,
10721104
event_messages=event_messages,
1105+
interruption=interruption,
10731106
language_model=language_model,
10741107
nudges=nudges,
10751108
prompt=prompt,
10761109
timeouts=timeouts,
10771110
tools=tools,
1111+
turn_detection=turn_detection,
10781112
version_description=version_description,
10791113
voice=voice,
10801114
webhooks=webhooks,

0 commit comments

Comments
 (0)