Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "3.91.2",
"cliVersion": "4.62.5",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.61.0",
"generatorConfig": {
Expand Down Expand Up @@ -64,5 +64,6 @@
}
]
},
"sdkVersion": "0.13.10"
"originGitCommit": "a07a0deaa640e8b286f9c8e4e47426b37a083a67",
"sdkVersion": "0.13.11"
}
426 changes: 220 additions & 206 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "hume"
version = "0.13.10"
version = "0.13.11"
description = "A Python SDK for Hume AI"
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/hume/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "hume/0.13.10",
"User-Agent": "hume/0.13.11",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "hume",
"X-Fern-SDK-Version": "0.13.10",
"X-Fern-SDK-Version": "0.13.11",
**(self.get_custom_headers() or {}),
}
if self.api_key is not None:
Expand Down
18 changes: 18 additions & 0 deletions src/hume/empathic_voice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
ErrorResponse,
HttpValidationError,
Inference,
InterruptionSpec,
JsonMessage,
LanguageModelType,
MillisecondInterval,
Expand All @@ -43,12 +44,14 @@
PostedEllmModel,
PostedEventMessageSpec,
PostedEventMessageSpecs,
PostedInterruptionSpec,
PostedLanguageModel,
PostedNudgeSpec,
PostedTimeoutSpec,
PostedTimeoutSpecs,
PostedTimeoutSpecsInactivity,
PostedTimeoutSpecsMaxDuration,
PostedTurnDetectionSpec,
PostedUserDefinedToolSpec,
PostedWebhookEventType,
PostedWebhookSpec,
Expand Down Expand Up @@ -79,6 +82,7 @@
ReturnEllmModel,
ReturnEventMessageSpec,
ReturnEventMessageSpecs,
ReturnInterruptionSpec,
ReturnLanguageModel,
ReturnNudgeSpec,
ReturnPagedChatGroups,
Expand All @@ -92,6 +96,7 @@
ReturnPromptVersionType,
ReturnTimeoutSpec,
ReturnTimeoutSpecs,
ReturnTurnDetectionSpec,
ReturnUserDefinedTool,
ReturnUserDefinedToolToolType,
ReturnUserDefinedToolVersionType,
Expand All @@ -107,6 +112,7 @@
ToolErrorMessage,
ToolResponseMessage,
ToolType,
TurnDetectionSpec,
UserInput,
UserInterruption,
UserMessage,
Expand Down Expand Up @@ -155,6 +161,7 @@
"ErrorResponse": ".types",
"HttpValidationError": ".types",
"Inference": ".types",
"InterruptionSpec": ".types",
"JsonMessage": ".types",
"LanguageModelType": ".types",
"MillisecondInterval": ".types",
Expand All @@ -166,12 +173,14 @@
"PostedEllmModel": ".types",
"PostedEventMessageSpec": ".types",
"PostedEventMessageSpecs": ".types",
"PostedInterruptionSpec": ".types",
"PostedLanguageModel": ".types",
"PostedNudgeSpec": ".types",
"PostedTimeoutSpec": ".types",
"PostedTimeoutSpecs": ".types",
"PostedTimeoutSpecsInactivity": ".types",
"PostedTimeoutSpecsMaxDuration": ".types",
"PostedTurnDetectionSpec": ".types",
"PostedUserDefinedToolSpec": ".types",
"PostedWebhookEventType": ".types",
"PostedWebhookSpec": ".types",
Expand Down Expand Up @@ -203,6 +212,7 @@
"ReturnEllmModel": ".types",
"ReturnEventMessageSpec": ".types",
"ReturnEventMessageSpecs": ".types",
"ReturnInterruptionSpec": ".types",
"ReturnLanguageModel": ".types",
"ReturnNudgeSpec": ".types",
"ReturnPagedChatGroups": ".types",
Expand All @@ -216,6 +226,7 @@
"ReturnPromptVersionType": ".types",
"ReturnTimeoutSpec": ".types",
"ReturnTimeoutSpecs": ".types",
"ReturnTurnDetectionSpec": ".types",
"ReturnUserDefinedTool": ".types",
"ReturnUserDefinedToolToolType": ".types",
"ReturnUserDefinedToolVersionType": ".types",
Expand All @@ -231,6 +242,7 @@
"ToolErrorMessage": ".types",
"ToolResponseMessage": ".types",
"ToolType": ".types",
"TurnDetectionSpec": ".types",
"UnprocessableEntityError": ".errors",
"UserInput": ".types",
"UserInterruption": ".types",
Expand Down Expand Up @@ -307,6 +319,7 @@ def __dir__():
"ErrorResponse",
"HttpValidationError",
"Inference",
"InterruptionSpec",
"JsonMessage",
"LanguageModelType",
"MillisecondInterval",
Expand All @@ -318,12 +331,14 @@ def __dir__():
"PostedEllmModel",
"PostedEventMessageSpec",
"PostedEventMessageSpecs",
"PostedInterruptionSpec",
"PostedLanguageModel",
"PostedNudgeSpec",
"PostedTimeoutSpec",
"PostedTimeoutSpecs",
"PostedTimeoutSpecsInactivity",
"PostedTimeoutSpecsMaxDuration",
"PostedTurnDetectionSpec",
"PostedUserDefinedToolSpec",
"PostedWebhookEventType",
"PostedWebhookSpec",
Expand Down Expand Up @@ -355,6 +370,7 @@ def __dir__():
"ReturnEllmModel",
"ReturnEventMessageSpec",
"ReturnEventMessageSpecs",
"ReturnInterruptionSpec",
"ReturnLanguageModel",
"ReturnNudgeSpec",
"ReturnPagedChatGroups",
Expand All @@ -368,6 +384,7 @@ def __dir__():
"ReturnPromptVersionType",
"ReturnTimeoutSpec",
"ReturnTimeoutSpecs",
"ReturnTurnDetectionSpec",
"ReturnUserDefinedTool",
"ReturnUserDefinedToolToolType",
"ReturnUserDefinedToolVersionType",
Expand All @@ -383,6 +400,7 @@ def __dir__():
"ToolErrorMessage",
"ToolResponseMessage",
"ToolType",
"TurnDetectionSpec",
"UnprocessableEntityError",
"UserInput",
"UserInterruption",
Expand Down
34 changes: 34 additions & 0 deletions src/hume/empathic_voice/configs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
from ..types.posted_config_prompt_spec import PostedConfigPromptSpec
from ..types.posted_ellm_model import PostedEllmModel
from ..types.posted_event_message_specs import PostedEventMessageSpecs
from ..types.posted_interruption_spec import PostedInterruptionSpec
from ..types.posted_language_model import PostedLanguageModel
from ..types.posted_nudge_spec import PostedNudgeSpec
from ..types.posted_timeout_specs import PostedTimeoutSpecs
from ..types.posted_turn_detection_spec import PostedTurnDetectionSpec
from ..types.posted_user_defined_tool_spec import PostedUserDefinedToolSpec
from ..types.posted_webhook_spec import PostedWebhookSpec
from ..types.return_config import ReturnConfig
Expand Down Expand Up @@ -111,11 +113,13 @@ def create_config(
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
language_model: typing.Optional[PostedLanguageModel] = OMIT,
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
version_description: typing.Optional[str] = OMIT,
voice: typing.Optional[VoiceRef] = OMIT,
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
Expand All @@ -141,6 +145,8 @@ def create_config(

event_messages : typing.Optional[PostedEventMessageSpecs]

interruption : typing.Optional[PostedInterruptionSpec]

language_model : typing.Optional[PostedLanguageModel]

nudges : typing.Optional[PostedNudgeSpec]
Expand All @@ -152,6 +158,8 @@ def create_config(
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
Tool specification for a Config.

turn_detection : typing.Optional[PostedTurnDetectionSpec]

version_description : typing.Optional[str]
An optional description of the Config version.

Expand Down Expand Up @@ -221,11 +229,13 @@ def create_config(
builtin_tools=builtin_tools,
ellm_model=ellm_model,
event_messages=event_messages,
interruption=interruption,
language_model=language_model,
nudges=nudges,
prompt=prompt,
timeouts=timeouts,
tools=tools,
turn_detection=turn_detection,
version_description=version_description,
voice=voice,
webhooks=webhooks,
Expand Down Expand Up @@ -305,11 +315,13 @@ def create_config_version(
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
language_model: typing.Optional[PostedLanguageModel] = OMIT,
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
version_description: typing.Optional[str] = OMIT,
voice: typing.Optional[VoiceRef] = OMIT,
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
Expand All @@ -335,6 +347,8 @@ def create_config_version(

event_messages : typing.Optional[PostedEventMessageSpecs]

interruption : typing.Optional[PostedInterruptionSpec]

language_model : typing.Optional[PostedLanguageModel]

nudges : typing.Optional[PostedNudgeSpec]
Expand All @@ -346,6 +360,8 @@ def create_config_version(
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
Tool specification for a Config.

turn_detection : typing.Optional[PostedTurnDetectionSpec]

version_description : typing.Optional[str]
An optional description of the Config version.

Expand Down Expand Up @@ -419,11 +435,13 @@ def create_config_version(
builtin_tools=builtin_tools,
ellm_model=ellm_model,
event_messages=event_messages,
interruption=interruption,
language_model=language_model,
nudges=nudges,
prompt=prompt,
timeouts=timeouts,
tools=tools,
turn_detection=turn_detection,
version_description=version_description,
voice=voice,
webhooks=webhooks,
Expand Down Expand Up @@ -737,11 +755,13 @@ async def create_config(
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
language_model: typing.Optional[PostedLanguageModel] = OMIT,
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
version_description: typing.Optional[str] = OMIT,
voice: typing.Optional[VoiceRef] = OMIT,
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
Expand All @@ -767,6 +787,8 @@ async def create_config(

event_messages : typing.Optional[PostedEventMessageSpecs]

interruption : typing.Optional[PostedInterruptionSpec]

language_model : typing.Optional[PostedLanguageModel]

nudges : typing.Optional[PostedNudgeSpec]
Expand All @@ -778,6 +800,8 @@ async def create_config(
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
Tool specification for a Config.

turn_detection : typing.Optional[PostedTurnDetectionSpec]

version_description : typing.Optional[str]
An optional description of the Config version.

Expand Down Expand Up @@ -855,11 +879,13 @@ async def main() -> None:
builtin_tools=builtin_tools,
ellm_model=ellm_model,
event_messages=event_messages,
interruption=interruption,
language_model=language_model,
nudges=nudges,
prompt=prompt,
timeouts=timeouts,
tools=tools,
turn_detection=turn_detection,
version_description=version_description,
voice=voice,
webhooks=webhooks,
Expand Down Expand Up @@ -948,11 +974,13 @@ async def create_config_version(
builtin_tools: typing.Optional[typing.Sequence[typing.Optional[PostedBuiltinTool]]] = OMIT,
ellm_model: typing.Optional[PostedEllmModel] = OMIT,
event_messages: typing.Optional[PostedEventMessageSpecs] = OMIT,
interruption: typing.Optional[PostedInterruptionSpec] = OMIT,
language_model: typing.Optional[PostedLanguageModel] = OMIT,
nudges: typing.Optional[PostedNudgeSpec] = OMIT,
prompt: typing.Optional[PostedConfigPromptSpec] = OMIT,
timeouts: typing.Optional[PostedTimeoutSpecs] = OMIT,
tools: typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]] = OMIT,
turn_detection: typing.Optional[PostedTurnDetectionSpec] = OMIT,
version_description: typing.Optional[str] = OMIT,
voice: typing.Optional[VoiceRef] = OMIT,
webhooks: typing.Optional[typing.Sequence[typing.Optional[PostedWebhookSpec]]] = OMIT,
Expand All @@ -978,6 +1006,8 @@ async def create_config_version(

event_messages : typing.Optional[PostedEventMessageSpecs]

interruption : typing.Optional[PostedInterruptionSpec]

language_model : typing.Optional[PostedLanguageModel]

nudges : typing.Optional[PostedNudgeSpec]
Expand All @@ -989,6 +1019,8 @@ async def create_config_version(
tools : typing.Optional[typing.Sequence[typing.Optional[PostedUserDefinedToolSpec]]]
Tool specification for a Config.

turn_detection : typing.Optional[PostedTurnDetectionSpec]

version_description : typing.Optional[str]
An optional description of the Config version.

Expand Down Expand Up @@ -1070,11 +1102,13 @@ async def main() -> None:
builtin_tools=builtin_tools,
ellm_model=ellm_model,
event_messages=event_messages,
interruption=interruption,
language_model=language_model,
nudges=nudges,
prompt=prompt,
timeouts=timeouts,
tools=tools,
turn_detection=turn_detection,
version_description=version_description,
voice=voice,
webhooks=webhooks,
Expand Down
Loading
Loading