hume 0.13.6 → 0.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/empathic-voice/__package__.yml +669 -657
- package/.mock/definition/empathic-voice/chat.yml +27 -27
- package/.mock/definition/empathic-voice/chatWebhooks.yml +2 -2
- package/.mock/definition/tts/__package__.yml +93 -88
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
- package/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
- package/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
- package/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
- package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
- package/api/resources/empathicVoice/types/Context.d.ts +6 -6
- package/api/resources/empathicVoice/types/LanguageModelType.d.ts +7 -1
- package/api/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -2
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +27 -27
- package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
- package/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
- package/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
- package/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
- package/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
- package/api/resources/empathicVoice/types/index.d.ts +16 -16
- package/api/resources/empathicVoice/types/index.js +16 -16
- package/api/resources/tts/client/Client.d.ts +6 -6
- package/api/resources/tts/client/Client.js +35 -35
- package/api/resources/tts/types/OctaveVersion.d.ts +4 -0
- package/api/resources/tts/types/OctaveVersion.js +5 -0
- package/api/resources/tts/types/PostedTts.d.ts +9 -8
- package/api/resources/tts/types/PostedUtterance.d.ts +6 -6
- package/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
- package/api/resources/tts/types/ReturnTts.d.ts +1 -1
- package/api/resources/tts/types/Snippet.d.ts +6 -6
- package/api/resources/tts/types/SnippetAudioChunk.d.ts +12 -11
- package/api/resources/tts/types/index.d.ts +1 -0
- package/api/resources/tts/types/index.js +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/AssistantProsody.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/AudioConfiguration.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ChatMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/Context.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/LanguageModelType.d.ts +7 -1
- package/dist/api/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +27 -27
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +16 -16
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +4 -4
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +12 -12
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +10 -10
- package/dist/api/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +8 -8
- package/dist/api/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/index.d.ts +16 -16
- package/dist/api/resources/empathicVoice/types/index.js +16 -16
- package/dist/api/resources/tts/client/Client.d.ts +6 -6
- package/dist/api/resources/tts/client/Client.js +35 -35
- package/dist/api/resources/tts/types/OctaveVersion.d.ts +4 -0
- package/dist/api/resources/tts/types/OctaveVersion.js +5 -0
- package/dist/api/resources/tts/types/PostedTts.d.ts +9 -8
- package/dist/api/resources/tts/types/PostedUtterance.d.ts +6 -6
- package/dist/api/resources/tts/types/ReturnGeneration.d.ts +5 -5
- package/dist/api/resources/tts/types/ReturnTts.d.ts +1 -1
- package/dist/api/resources/tts/types/Snippet.d.ts +6 -6
- package/dist/api/resources/tts/types/SnippetAudioChunk.d.ts +12 -11
- package/dist/api/resources/tts/types/index.d.ts +1 -0
- package/dist/api/resources/tts/types/index.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/Context.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
- package/dist/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInput.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
- package/dist/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +16 -16
- package/dist/serialization/resources/empathicVoice/types/index.js +16 -16
- package/dist/serialization/resources/tts/types/OctaveVersion.d.ts +10 -0
- package/dist/serialization/resources/tts/types/OctaveVersion.js +41 -0
- package/dist/serialization/resources/tts/types/PostedTts.d.ts +5 -3
- package/dist/serialization/resources/tts/types/PostedTts.js +5 -3
- package/dist/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
- package/dist/serialization/resources/tts/types/PostedUtterance.js +2 -2
- package/dist/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
- package/dist/serialization/resources/tts/types/ReturnGeneration.js +3 -3
- package/dist/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
- package/dist/serialization/resources/tts/types/ReturnTts.js +1 -1
- package/dist/serialization/resources/tts/types/Snippet.d.ts +3 -3
- package/dist/serialization/resources/tts/types/Snippet.js +3 -3
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.d.ts +7 -6
- package/dist/serialization/resources/tts/types/SnippetAudioChunk.js +7 -6
- package/dist/serialization/resources/tts/types/index.d.ts +1 -0
- package/dist/serialization/resources/tts/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +9 -9
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -1
- package/serialization/resources/empathicVoice/types/AssistantInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AssistantInput.js +1 -1
- package/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AssistantMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/AssistantProsody.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AssistantProsody.js +2 -2
- package/serialization/resources/empathicVoice/types/AudioConfiguration.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AudioConfiguration.js +1 -1
- package/serialization/resources/empathicVoice/types/AudioInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/AudioInput.js +1 -1
- package/serialization/resources/empathicVoice/types/AudioOutput.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/AudioOutput.js +2 -2
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +1 -1
- package/serialization/resources/empathicVoice/types/ChatMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ChatMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ChatMetadata.js +2 -2
- package/serialization/resources/empathicVoice/types/Context.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/Context.js +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/LanguageModelType.js +6 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +1 -1
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +1 -1
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +8 -8
- package/serialization/resources/empathicVoice/types/SessionSettings.js +8 -8
- package/serialization/resources/empathicVoice/types/Tool.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/Tool.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/ToolCallMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.d.ts +6 -6
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -6
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +2 -2
- package/serialization/resources/empathicVoice/types/UserInput.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserInput.js +1 -1
- package/serialization/resources/empathicVoice/types/UserInterruption.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/UserInterruption.js +1 -1
- package/serialization/resources/empathicVoice/types/UserMessage.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/UserMessage.js +3 -3
- package/serialization/resources/empathicVoice/types/WebSocketError.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/WebSocketError.js +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.d.ts +4 -4
- package/serialization/resources/empathicVoice/types/WebhookEventChatEnded.js +4 -4
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.d.ts +3 -3
- package/serialization/resources/empathicVoice/types/WebhookEventChatStarted.js +3 -3
- package/serialization/resources/empathicVoice/types/index.d.ts +16 -16
- package/serialization/resources/empathicVoice/types/index.js +16 -16
- package/serialization/resources/tts/types/OctaveVersion.d.ts +10 -0
- package/serialization/resources/tts/types/OctaveVersion.js +41 -0
- package/serialization/resources/tts/types/PostedTts.d.ts +5 -3
- package/serialization/resources/tts/types/PostedTts.js +5 -3
- package/serialization/resources/tts/types/PostedUtterance.d.ts +2 -2
- package/serialization/resources/tts/types/PostedUtterance.js +2 -2
- package/serialization/resources/tts/types/ReturnGeneration.d.ts +3 -3
- package/serialization/resources/tts/types/ReturnGeneration.js +3 -3
- package/serialization/resources/tts/types/ReturnTts.d.ts +1 -1
- package/serialization/resources/tts/types/ReturnTts.js +1 -1
- package/serialization/resources/tts/types/Snippet.d.ts +3 -3
- package/serialization/resources/tts/types/Snippet.js +3 -3
- package/serialization/resources/tts/types/SnippetAudioChunk.d.ts +7 -6
- package/serialization/resources/tts/types/SnippetAudioChunk.js +7 -6
- package/serialization/resources/tts/types/index.d.ts +1 -0
- package/serialization/resources/tts/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type LanguageModelType = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-sonnet-4-20250514" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gpt-oss-120b" | "qwen-3-235b-a22b" | "qwen-3-235b-a22b-instruct-2507" | "qwen-3-235b-a22b-thinking-2507" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-04-17" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "moonshotai/kimi-k2-instruct" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "sonar" | "sonar-pro" | "sambanova" | "DeepSeek-R1-Distill-Llama-70B" | "Llama-4-Maverick-17B-128E-Instruct" | "Qwen3-32B" | "ellm" | "custom-language-model" | "hume-evi-3-web-search";
|
|
4
|
+
export type LanguageModelType = "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-sonnet-4-20250514" | "us.anthropic.claude-3-5-haiku-20241022-v1:0" | "us.anthropic.claude-3-5-sonnet-20240620-v1:0" | "us.anthropic.claude-3-haiku-20240307-v1:0" | "gpt-oss-120b" | "qwen-3-235b-a22b" | "qwen-3-235b-a22b-instruct-2507" | "qwen-3-235b-a22b-thinking-2507" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-04-17" | "gpt-4-turbo" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4o-priority" | "gpt-4o-mini-priority" | "gpt-4.1-priority" | "gpt-5-priority" | "gpt-5-mini-priority" | "gpt-5-nano-priority" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.3-70b-versatile" | "llama-3.1-8b-instant" | "moonshotai/kimi-k2-instruct" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "sonar" | "sonar-pro" | "sambanova" | "DeepSeek-R1-Distill-Llama-70B" | "Llama-4-Maverick-17B-128E-Instruct" | "Qwen3-32B" | "ellm" | "custom-language-model" | "hume-evi-3-web-search";
|
|
5
5
|
export declare const LanguageModelType: {
|
|
6
6
|
readonly Claude37SonnetLatest: "claude-3-7-sonnet-latest";
|
|
7
7
|
readonly Claude35SonnetLatest: "claude-3-5-sonnet-latest";
|
|
@@ -35,6 +35,12 @@ export declare const LanguageModelType: {
|
|
|
35
35
|
readonly Gpt5: "gpt-5";
|
|
36
36
|
readonly Gpt5Mini: "gpt-5-mini";
|
|
37
37
|
readonly Gpt5Nano: "gpt-5-nano";
|
|
38
|
+
readonly Gpt4OPriority: "gpt-4o-priority";
|
|
39
|
+
readonly Gpt4OMiniPriority: "gpt-4o-mini-priority";
|
|
40
|
+
readonly Gpt41Priority: "gpt-4.1-priority";
|
|
41
|
+
readonly Gpt5Priority: "gpt-5-priority";
|
|
42
|
+
readonly Gpt5MiniPriority: "gpt-5-mini-priority";
|
|
43
|
+
readonly Gpt5NanoPriority: "gpt-5-nano-priority";
|
|
38
44
|
readonly Gemma7BIt: "gemma-7b-it";
|
|
39
45
|
readonly Llama38B8192: "llama3-8b-8192";
|
|
40
46
|
readonly Llama370B8192: "llama3-70b-8192";
|
|
@@ -37,6 +37,12 @@ exports.LanguageModelType = {
|
|
|
37
37
|
Gpt5: "gpt-5",
|
|
38
38
|
Gpt5Mini: "gpt-5-mini",
|
|
39
39
|
Gpt5Nano: "gpt-5-nano",
|
|
40
|
+
Gpt4OPriority: "gpt-4o-priority",
|
|
41
|
+
Gpt4OMiniPriority: "gpt-4o-mini-priority",
|
|
42
|
+
Gpt41Priority: "gpt-4.1-priority",
|
|
43
|
+
Gpt5Priority: "gpt-5-priority",
|
|
44
|
+
Gpt5MiniPriority: "gpt-5-mini-priority",
|
|
45
|
+
Gpt5NanoPriority: "gpt-5-nano-priority",
|
|
40
46
|
Gemma7BIt: "gemma-7b-it",
|
|
41
47
|
Llama38B8192: "llama3-8b-8192",
|
|
42
48
|
Llama370B8192: "llama3-70b-8192",
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Pause responses from EVI. Chat history is still saved and sent after resuming.
|
|
6
6
|
*/
|
|
7
7
|
export interface PauseAssistantMessage {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
9
|
+
customSessionId?: string;
|
|
8
10
|
/**
|
|
9
11
|
* The type of message sent through the socket; must be `pause_assistant_message` for our server to correctly identify and process it as a Pause Assistant message.
|
|
10
12
|
*
|
|
11
13
|
* Once this message is sent, EVI will not respond until a [Resume Assistant message](/reference/speech-to-speech-evi/chat#send.ResumeAssistantMessage) is sent. When paused, EVI won't respond, but transcriptions of your audio inputs will still be recorded.
|
|
12
14
|
*/
|
|
13
15
|
type: "pause_assistant_message";
|
|
14
|
-
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
15
|
-
customSessionId?: string;
|
|
16
16
|
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Resume responses from EVI. Chat history sent while paused will now be sent.
|
|
6
6
|
*/
|
|
7
7
|
export interface ResumeAssistantMessage {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
9
|
+
customSessionId?: string;
|
|
8
10
|
/**
|
|
9
11
|
* The type of message sent through the socket; must be `resume_assistant_message` for our server to correctly identify and process it as a Resume Assistant message.
|
|
10
12
|
*
|
|
11
13
|
* Upon resuming, if any audio input was sent during the pause, EVI will retain context from all messages sent but only respond to the last user message. (e.g., If you ask EVI two questions while paused and then send a `resume_assistant_message`, EVI will respond to the second question and have added the first question to its conversation context.)
|
|
12
14
|
*/
|
|
13
15
|
type: "resume_assistant_message";
|
|
14
|
-
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
15
|
-
customSessionId?: string;
|
|
16
16
|
}
|
|
@@ -18,10 +18,10 @@ export interface ReturnConfig {
|
|
|
18
18
|
* Version numbers are integer values representing different iterations of the Config. Each update to the Config increments its version number.
|
|
19
19
|
*/
|
|
20
20
|
version?: number;
|
|
21
|
-
/** An optional description of the Config version. */
|
|
22
|
-
versionDescription?: string;
|
|
23
21
|
/** List of user-defined tools associated with this Config. */
|
|
24
22
|
tools?: (Hume.empathicVoice.ReturnUserDefinedTool | undefined)[];
|
|
23
|
+
/** An optional description of the Config version. */
|
|
24
|
+
versionDescription?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The supplemental language model associated with this Config.
|
|
27
27
|
*
|
|
@@ -7,31 +7,19 @@ import * as Hume from "../../../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface SessionSettings {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Session settings are temporary and apply only to the current Chat session. These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience.
|
|
13
|
-
*
|
|
14
|
-
* For more information, please refer to the [Session Settings guide](/docs/speech-to-speech-evi/configuration/session-settings).
|
|
15
|
-
*/
|
|
16
|
-
type: "session_settings";
|
|
17
|
-
/**
|
|
18
|
-
* Unique identifier for the session. Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions.
|
|
19
|
-
*
|
|
20
|
-
* If included, the response sent from Hume to your backend will include this ID. This allows you to correlate frontend users with their incoming messages.
|
|
10
|
+
* Configuration details for the audio input used during the session. Ensures the audio is being correctly set up for processing.
|
|
21
11
|
*
|
|
22
|
-
*
|
|
12
|
+
* This optional field is only required when the audio input is encoded in PCM Linear 16 (16-bit, little-endian, signed PCM WAV data). For detailed instructions on how to configure session settings for PCM Linear 16 audio, please refer to the [Session Settings guide](/docs/speech-to-speech-evi/configuration/session-settings).
|
|
23
13
|
*/
|
|
24
|
-
|
|
14
|
+
audio?: Hume.empathicVoice.AudioConfiguration;
|
|
25
15
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* When included in a Session Settings message, the provided Prompt overrides the existing one specified in the EVI configuration. If no Prompt was defined in the configuration, this Prompt will be the one used for the session.
|
|
16
|
+
* List of built-in tools to enable for the session.
|
|
29
17
|
*
|
|
30
|
-
*
|
|
18
|
+
* Tools are resources used by EVI to perform various tasks, such as searching the web or calling external APIs. Built-in tools, like web search, are natively integrated, while user-defined tools are created and invoked by the user. To learn more, see our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use).
|
|
31
19
|
*
|
|
32
|
-
*
|
|
20
|
+
* Currently, the only built-in tool Hume provides is **Web Search**. When enabled, Web Search equips EVI with the ability to search the web for up-to-date information.
|
|
33
21
|
*/
|
|
34
|
-
|
|
22
|
+
builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
|
|
35
23
|
/**
|
|
36
24
|
* Field for injecting additional context into the conversation, which is appended to the end of user messages for the session.
|
|
37
25
|
*
|
|
@@ -41,17 +29,30 @@ export interface SessionSettings {
|
|
|
41
29
|
*/
|
|
42
30
|
context?: Hume.empathicVoice.Context;
|
|
43
31
|
/**
|
|
44
|
-
*
|
|
32
|
+
* Unique identifier for the session. Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions.
|
|
45
33
|
*
|
|
46
|
-
*
|
|
34
|
+
* If included, the response sent from Hume to your backend will include this ID. This allows you to correlate frontend users with their incoming messages.
|
|
35
|
+
*
|
|
36
|
+
* It is recommended to pass a `custom_session_id` if you are using a Custom Language Model. Please see our guide to [using a custom language model](/docs/speech-to-speech-evi/guides/custom-language-model) with EVI to learn more.
|
|
47
37
|
*/
|
|
48
|
-
|
|
38
|
+
customSessionId?: string;
|
|
49
39
|
/**
|
|
50
40
|
* Third party API key for the supplemental language model.
|
|
51
41
|
*
|
|
52
42
|
* When provided, EVI will use this key instead of Hume's API key for the supplemental LLM. This allows you to bypass rate limits and utilize your own API key as needed.
|
|
53
43
|
*/
|
|
54
44
|
languageModelApiKey?: string;
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
46
|
+
/**
|
|
47
|
+
* Instructions used to shape EVI's behavior, responses, and style for the session.
|
|
48
|
+
*
|
|
49
|
+
* When included in a Session Settings message, the provided Prompt overrides the existing one specified in the EVI configuration. If no Prompt was defined in the configuration, this Prompt will be the one used for the session.
|
|
50
|
+
*
|
|
51
|
+
* You can use the Prompt to define a specific goal or role for EVI, specifying how it should act or what it should focus on during the conversation. For example, EVI can be instructed to act as a customer support representative, a fitness coach, or a travel advisor, each with its own set of behaviors and response styles.
|
|
52
|
+
*
|
|
53
|
+
* For help writing a system prompt, see our [Prompting Guide](/docs/speech-to-speech-evi/guides/prompting).
|
|
54
|
+
*/
|
|
55
|
+
systemPrompt?: string;
|
|
55
56
|
/**
|
|
56
57
|
* List of user-defined tools to enable for the session.
|
|
57
58
|
*
|
|
@@ -59,14 +60,13 @@ export interface SessionSettings {
|
|
|
59
60
|
*/
|
|
60
61
|
tools?: Hume.empathicVoice.Tool[];
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* The type of message sent through the socket; must be `session_settings` for our server to correctly identify and process it as a Session Settings message.
|
|
63
64
|
*
|
|
64
|
-
*
|
|
65
|
+
* Session settings are temporary and apply only to the current Chat session. These settings can be adjusted dynamically based on the requirements of each session to ensure optimal performance and user experience.
|
|
65
66
|
*
|
|
66
|
-
*
|
|
67
|
+
* For more information, please refer to the [Session Settings guide](/docs/speech-to-speech-evi/configuration/session-settings).
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
-
metadata?: Record<string, unknown>;
|
|
69
|
+
type: "session_settings";
|
|
70
70
|
/**
|
|
71
71
|
* This field allows you to assign values to dynamic variables referenced in your system prompt.
|
|
72
72
|
*
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface Tool {
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/** An optional description of what the tool does, used by the supplemental LLM to choose when and how to call the function. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Optional text passed to the supplemental LLM if the tool call fails. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation. */
|
|
9
|
+
fallbackContent?: string;
|
|
8
10
|
/** Name of the user-defined tool to be enabled. */
|
|
9
11
|
name: string;
|
|
10
12
|
/**
|
|
@@ -13,8 +15,6 @@ export interface Tool {
|
|
|
13
15
|
* These parameters define the inputs needed for the tool's execution, including the expected data type and description for each input field. Structured as a JSON schema, this format ensures the tool receives data in the expected format.
|
|
14
16
|
*/
|
|
15
17
|
parameters: string;
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/** Optional text passed to the supplemental LLM if the tool call fails. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation. */
|
|
19
|
-
fallbackContent?: string;
|
|
18
|
+
/** Type of tool. Set to `function` for user-defined tools. */
|
|
19
|
+
type: Hume.empathicVoice.ToolType;
|
|
20
20
|
}
|
|
@@ -6,6 +6,8 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a tool call.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolCallMessage {
|
|
9
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
10
|
+
customSessionId?: string;
|
|
9
11
|
/** Name of the tool called. */
|
|
10
12
|
name: string;
|
|
11
13
|
/**
|
|
@@ -14,22 +16,20 @@ export interface ToolCallMessage {
|
|
|
14
16
|
* These parameters define the inputs needed for the tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
|
|
15
17
|
*/
|
|
16
18
|
parameters: string;
|
|
19
|
+
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage) or a [Tool Error message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage). */
|
|
20
|
+
responseRequired: boolean;
|
|
17
21
|
/**
|
|
18
22
|
* The unique identifier for a specific tool call instance.
|
|
19
23
|
*
|
|
20
24
|
* This ID is used to track the request and response of a particular tool invocation, ensuring that the correct response is linked to the appropriate request.
|
|
21
25
|
*/
|
|
22
26
|
toolCallId: string;
|
|
27
|
+
/** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
|
|
28
|
+
toolType?: Hume.empathicVoice.ToolType;
|
|
23
29
|
/**
|
|
24
30
|
* The type of message sent through the socket; for a Tool Call message, this must be `tool_call`.
|
|
25
31
|
*
|
|
26
32
|
* This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
|
|
27
33
|
*/
|
|
28
34
|
type: "tool_call";
|
|
29
|
-
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
30
|
-
customSessionId?: string;
|
|
31
|
-
/** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
|
|
32
|
-
toolType?: Hume.empathicVoice.ToolType;
|
|
33
|
-
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage) or a [Tool Error message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage). */
|
|
34
|
-
responseRequired: boolean;
|
|
35
35
|
}
|
|
@@ -6,28 +6,28 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a function call error.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolErrorMessage {
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
type: "tool_error";
|
|
9
|
+
/** Error code. Identifies the type of error encountered. */
|
|
10
|
+
code?: string;
|
|
11
|
+
/** Optional text passed to the supplemental LLM in place of the tool call result. The LLM then uses this text to generate a response back to the user, ensuring continuity in the conversation if the tool errors. */
|
|
12
|
+
content?: string;
|
|
15
13
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
16
14
|
customSessionId?: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
15
|
+
/** Error message from the tool call, not exposed to the LLM or user. */
|
|
16
|
+
error: string;
|
|
17
|
+
/** Indicates the severity of an error; for a Tool Error message, this must be `warn` to signal an unexpected event. */
|
|
18
|
+
level?: Hume.empathicVoice.ErrorLevel;
|
|
19
19
|
/**
|
|
20
20
|
* The unique identifier for a specific tool call instance.
|
|
21
21
|
*
|
|
22
22
|
* This ID is used to track the request and response of a particular tool invocation, ensuring that the Tool Error message is linked to the appropriate tool call request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage).
|
|
23
23
|
*/
|
|
24
24
|
toolCallId: string;
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
/** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
|
|
26
|
+
toolType?: Hume.empathicVoice.ToolType;
|
|
27
|
+
/**
|
|
28
|
+
* The type of message sent through the socket; for a Tool Error message, this must be `tool_error`.
|
|
29
|
+
*
|
|
30
|
+
* Upon receiving a [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage) and failing to invoke the function, this message is sent to notify EVI of the tool's failure.
|
|
31
|
+
*/
|
|
32
|
+
type: "tool_error";
|
|
33
33
|
}
|
|
@@ -6,12 +6,8 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a function call response.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolResponseMessage {
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
* Upon receiving a [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage) and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
|
|
13
|
-
*/
|
|
14
|
-
type: "tool_response";
|
|
9
|
+
/** Return value of the tool call. Contains the output generated by the tool to pass back to EVI. */
|
|
10
|
+
content: string;
|
|
15
11
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
16
12
|
customSessionId?: string;
|
|
17
13
|
/**
|
|
@@ -20,8 +16,6 @@ export interface ToolResponseMessage {
|
|
|
20
16
|
* This ID is used to track the request and response of a particular tool invocation, ensuring that the correct response is linked to the appropriate request. The specified `tool_call_id` must match the one received in the [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage.tool_call_id).
|
|
21
17
|
*/
|
|
22
18
|
toolCallId: string;
|
|
23
|
-
/** Return value of the tool call. Contains the output generated by the tool to pass back to EVI. */
|
|
24
|
-
content: string;
|
|
25
19
|
/**
|
|
26
20
|
* Name of the tool.
|
|
27
21
|
*
|
|
@@ -30,4 +24,10 @@ export interface ToolResponseMessage {
|
|
|
30
24
|
toolName?: string;
|
|
31
25
|
/** Type of tool called. Either `builtin` for natively implemented tools, like web search, or `function` for user-defined tools. */
|
|
32
26
|
toolType?: Hume.empathicVoice.ToolType;
|
|
27
|
+
/**
|
|
28
|
+
* The type of message sent through the socket; for a Tool Response message, this must be `tool_response`.
|
|
29
|
+
*
|
|
30
|
+
* Upon receiving a [Tool Call message](/reference/speech-to-speech-evi/chat#receive.ToolCallMessage) and successfully invoking the function, this message is sent to convey the result of the function call back to EVI.
|
|
31
|
+
*/
|
|
32
|
+
type: "tool_response";
|
|
33
33
|
}
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
* Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
|
|
8
8
|
*/
|
|
9
9
|
export interface UserInput {
|
|
10
|
-
/** The type of message sent through the socket; must be `user_input` for our server to correctly identify and process it as a User Input message. */
|
|
11
|
-
type: "user_input";
|
|
12
10
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
13
11
|
customSessionId?: string;
|
|
14
12
|
/**
|
|
@@ -17,4 +15,6 @@ export interface UserInput {
|
|
|
17
15
|
* Expression measurement results are not available for User Input messages, as the prosody model relies on audio input and cannot process text alone.
|
|
18
16
|
*/
|
|
19
17
|
text: string;
|
|
18
|
+
/** The type of message sent through the socket; must be `user_input` for our server to correctly identify and process it as a User Input message. */
|
|
19
|
+
type: "user_input";
|
|
20
20
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* When provided, the output is an interruption.
|
|
6
6
|
*/
|
|
7
7
|
export interface UserInterruption {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
9
|
+
customSessionId?: string;
|
|
10
|
+
/** Unix timestamp of the detected user interruption. */
|
|
11
|
+
time: number;
|
|
8
12
|
/**
|
|
9
13
|
* The type of message sent through the socket; for a User Interruption message, this must be `user_interruption`.
|
|
10
14
|
*
|
|
11
15
|
* This message indicates the user has interrupted the assistant's response. EVI detects the interruption in real-time and sends this message to signal the interruption event. This message allows the system to stop the current audio playback, clear the audio queue, and prepare to handle new user input.
|
|
12
16
|
*/
|
|
13
17
|
type: "user_interruption";
|
|
14
|
-
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
15
|
-
customSessionId?: string;
|
|
16
|
-
/** Unix timestamp of the detected user interruption. */
|
|
17
|
-
time: number;
|
|
18
18
|
}
|
|
@@ -6,20 +6,8 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a user message.
|
|
7
7
|
*/
|
|
8
8
|
export interface UserMessage {
|
|
9
|
-
/**
|
|
10
|
-
* The type of message sent through the socket; for a User Message, this must be `user_message`.
|
|
11
|
-
*
|
|
12
|
-
* This message contains both a transcript of the user's input and the expression measurement predictions if the input was sent as an [Audio Input message](/reference/speech-to-speech-evi/chat#send.AudioInput). Expression measurement predictions are not provided for a [User Input message](/reference/speech-to-speech-evi/chat#send.UserInput), as the prosody model relies on audio input and cannot process text alone.
|
|
13
|
-
*/
|
|
14
|
-
type: "user_message";
|
|
15
9
|
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
16
10
|
customSessionId?: string;
|
|
17
|
-
/** Transcript of the message. */
|
|
18
|
-
message: Hume.empathicVoice.ChatMessage;
|
|
19
|
-
/** Inference model results. */
|
|
20
|
-
models: Hume.empathicVoice.Inference;
|
|
21
|
-
/** Start and End time of user message. */
|
|
22
|
-
time: Hume.empathicVoice.MillisecondInterval;
|
|
23
11
|
/** Indicates if this message was inserted into the conversation as text from a [User Input](/reference/speech-to-speech-evi/chat#send.UserInput.text) message. */
|
|
24
12
|
fromText: boolean;
|
|
25
13
|
/**
|
|
@@ -31,4 +19,16 @@ export interface UserMessage {
|
|
|
31
19
|
* Interim transcripts are only sent when the [`verbose_transcription`](/reference/speech-to-speech-evi/chat#request.query.verbose_transcription) query parameter is set to `true` in the initial handshake.
|
|
32
20
|
*/
|
|
33
21
|
interim: boolean;
|
|
22
|
+
/** Transcript of the message. */
|
|
23
|
+
message: Hume.empathicVoice.ChatMessage;
|
|
24
|
+
/** Inference model results. */
|
|
25
|
+
models: Hume.empathicVoice.Inference;
|
|
26
|
+
/** Start and End time of user message. */
|
|
27
|
+
time: Hume.empathicVoice.MillisecondInterval;
|
|
28
|
+
/**
|
|
29
|
+
* The type of message sent through the socket; for a User Message, this must be `user_message`.
|
|
30
|
+
*
|
|
31
|
+
* This message contains both a transcript of the user's input and the expression measurement predictions if the input was sent as an [Audio Input message](/reference/speech-to-speech-evi/chat#send.AudioInput). Expression measurement predictions are not provided for a [User Input message](/reference/speech-to-speech-evi/chat#send.UserInput), as the prosody model relies on audio input and cannot process text alone.
|
|
32
|
+
*/
|
|
33
|
+
type: "user_message";
|
|
34
34
|
}
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
* When provided, the output is an error message.
|
|
6
6
|
*/
|
|
7
7
|
export interface WebSocketError {
|
|
8
|
-
/**
|
|
9
|
-
* The type of message sent through the socket; for a Web Socket Error message, this must be `error`.
|
|
10
|
-
*
|
|
11
|
-
* This message indicates a disruption in the WebSocket connection, such as an unexpected disconnection, protocol error, or data transmission issue.
|
|
12
|
-
*/
|
|
13
|
-
type: "error";
|
|
14
|
-
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
15
|
-
customSessionId?: string;
|
|
16
8
|
/** Error code. Identifies the type of error encountered. */
|
|
17
9
|
code: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
10
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
11
|
+
customSessionId?: string;
|
|
20
12
|
/** Detailed description of the error. */
|
|
21
13
|
message: string;
|
|
22
14
|
/** ID of the initiating request. */
|
|
23
15
|
requestId?: string;
|
|
16
|
+
/** Short, human-readable identifier and description for the error. See a complete list of error slugs on the [Errors page](/docs/resources/errors). */
|
|
17
|
+
slug: string;
|
|
18
|
+
/**
|
|
19
|
+
* The type of message sent through the socket; for a Web Socket Error message, this must be `error`.
|
|
20
|
+
*
|
|
21
|
+
* This message indicates a disruption in the WebSocket connection, such as an unexpected disconnection, protocol error, or data transmission issue.
|
|
22
|
+
*/
|
|
23
|
+
type: "error";
|
|
24
24
|
}
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface WebhookEventChatEnded extends Hume.empathicVoice.WebhookEventBase {
|
|
6
|
-
/** Always `chat_ended`. */
|
|
7
|
-
eventName?: "chat_ended";
|
|
8
|
-
/** Unix timestamp (in milliseconds) indicating when the session ended. */
|
|
9
|
-
endTime: number;
|
|
10
|
-
/** Total duration of the session in seconds. */
|
|
11
|
-
durationSeconds: number;
|
|
12
|
-
/** Reason for the session's termination. */
|
|
13
|
-
endReason: Hume.empathicVoice.WebhookEventChatStatus;
|
|
14
6
|
/** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
|
|
15
7
|
callerNumber?: string;
|
|
16
8
|
/** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
|
|
17
9
|
customSessionId?: string;
|
|
10
|
+
/** Total duration of the session in seconds. */
|
|
11
|
+
durationSeconds: number;
|
|
12
|
+
/** Reason for the session's termination. */
|
|
13
|
+
endReason: Hume.empathicVoice.WebhookEventChatStatus;
|
|
14
|
+
/** Unix timestamp (in milliseconds) indicating when the session ended. */
|
|
15
|
+
endTime: number;
|
|
16
|
+
/** Always `chat_ended`. */
|
|
17
|
+
eventName?: "chat_ended";
|
|
18
18
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface WebhookEventChatStarted extends Hume.empathicVoice.WebhookEventBase {
|
|
6
|
-
/** Always `chat_started`. */
|
|
7
|
-
eventName?: "chat_started";
|
|
8
|
-
/** Unix timestamp (in milliseconds) indicating when the session started. */
|
|
9
|
-
startTime: number;
|
|
10
|
-
/** Indicates whether the chat is the first in a new Chat Group (`new_chat_group`) or the continuation of an existing chat group (`resumed_chat_group`). */
|
|
11
|
-
chatStartType: Hume.empathicVoice.WebhookEventChatStartType;
|
|
12
6
|
/** Phone number of the caller in E.164 format (e.g., `+12223333333`). This field is included only if the Chat was created via the [Twilio phone calling](/docs/empathic-voice-interface-evi/phone-calling) integration. */
|
|
13
7
|
callerNumber?: string;
|
|
8
|
+
/** Indicates whether the chat is the first in a new Chat Group (`new_chat_group`) or the continuation of an existing chat group (`resumed_chat_group`). */
|
|
9
|
+
chatStartType: Hume.empathicVoice.WebhookEventChatStartType;
|
|
14
10
|
/** User-defined session ID. Relevant only when employing a [custom language model](/docs/empathic-voice-interface-evi/custom-language-model) in the EVI Config. */
|
|
15
11
|
customSessionId?: string;
|
|
12
|
+
/** Always `chat_started`. */
|
|
13
|
+
eventName?: "chat_started";
|
|
14
|
+
/** Unix timestamp (in milliseconds) indicating when the session started. */
|
|
15
|
+
startTime: number;
|
|
16
16
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
+
export * from "./AssistantEnd";
|
|
1
2
|
export * from "./AssistantInput";
|
|
3
|
+
export * from "./AssistantMessage";
|
|
4
|
+
export * from "./AssistantProsody";
|
|
2
5
|
export * from "./AudioConfiguration";
|
|
3
6
|
export * from "./AudioInput";
|
|
7
|
+
export * from "./AudioOutput";
|
|
4
8
|
export * from "./BuiltInTool";
|
|
5
9
|
export * from "./BuiltinToolConfig";
|
|
10
|
+
export * from "./ChatMessageToolResult";
|
|
11
|
+
export * from "./ChatMessage";
|
|
12
|
+
export * from "./ChatMetadata";
|
|
6
13
|
export * from "./Context";
|
|
7
14
|
export * from "./ContextType";
|
|
15
|
+
export * from "./EmotionScores";
|
|
8
16
|
export * from "./Encoding";
|
|
17
|
+
export * from "./WebSocketError";
|
|
9
18
|
export * from "./ErrorLevel";
|
|
19
|
+
export * from "./Inference";
|
|
20
|
+
export * from "./MillisecondInterval";
|
|
10
21
|
export * from "./PauseAssistantMessage";
|
|
22
|
+
export * from "./ProsodyInference";
|
|
11
23
|
export * from "./ResumeAssistantMessage";
|
|
24
|
+
export * from "./Role";
|
|
12
25
|
export * from "./SessionSettingsVariablesValue";
|
|
13
26
|
export * from "./SessionSettings";
|
|
14
27
|
export * from "./Tool";
|
|
28
|
+
export * from "./ToolCallMessage";
|
|
15
29
|
export * from "./ToolErrorMessage";
|
|
16
30
|
export * from "./ToolResponseMessage";
|
|
17
31
|
export * from "./ToolType";
|
|
18
32
|
export * from "./UserInput";
|
|
19
|
-
export * from "./AssistantEnd";
|
|
20
|
-
export * from "./AssistantMessage";
|
|
21
|
-
export * from "./AssistantProsody";
|
|
22
|
-
export * from "./AudioOutput";
|
|
23
|
-
export * from "./ChatMessageToolResult";
|
|
24
|
-
export * from "./ChatMessage";
|
|
25
|
-
export * from "./ChatMetadata";
|
|
26
|
-
export * from "./EmotionScores";
|
|
27
|
-
export * from "./WebSocketError";
|
|
28
|
-
export * from "./Inference";
|
|
29
|
-
export * from "./MillisecondInterval";
|
|
30
|
-
export * from "./ProsodyInference";
|
|
31
|
-
export * from "./Role";
|
|
32
|
-
export * from "./ToolCallMessage";
|
|
33
33
|
export * from "./UserInterruption";
|
|
34
34
|
export * from "./UserMessage";
|
|
35
35
|
export * from "./JsonMessage";
|
|
@@ -40,12 +40,12 @@ export * from "./ValidationErrorLocItem";
|
|
|
40
40
|
export * from "./ValidationError";
|
|
41
41
|
export * from "./VoiceId";
|
|
42
42
|
export * from "./VoiceName";
|
|
43
|
+
export * from "./WebhookEventBase";
|
|
44
|
+
export * from "./WebhookEvent";
|
|
43
45
|
export * from "./WebhookEventChatEnded";
|
|
44
46
|
export * from "./WebhookEventChatStartType";
|
|
45
47
|
export * from "./WebhookEventChatStarted";
|
|
46
48
|
export * from "./WebhookEventChatStatus";
|
|
47
|
-
export * from "./WebhookEvent";
|
|
48
|
-
export * from "./WebhookEventBase";
|
|
49
49
|
export * from "./ErrorResponse";
|
|
50
50
|
export * from "./ReturnPagedUserDefinedTools";
|
|
51
51
|
export * from "./ReturnUserDefinedToolToolType";
|
|
@@ -14,38 +14,38 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AssistantEnd"), exports);
|
|
17
18
|
__exportStar(require("./AssistantInput"), exports);
|
|
19
|
+
__exportStar(require("./AssistantMessage"), exports);
|
|
20
|
+
__exportStar(require("./AssistantProsody"), exports);
|
|
18
21
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
19
22
|
__exportStar(require("./AudioInput"), exports);
|
|
23
|
+
__exportStar(require("./AudioOutput"), exports);
|
|
20
24
|
__exportStar(require("./BuiltInTool"), exports);
|
|
21
25
|
__exportStar(require("./BuiltinToolConfig"), exports);
|
|
26
|
+
__exportStar(require("./ChatMessageToolResult"), exports);
|
|
27
|
+
__exportStar(require("./ChatMessage"), exports);
|
|
28
|
+
__exportStar(require("./ChatMetadata"), exports);
|
|
22
29
|
__exportStar(require("./Context"), exports);
|
|
23
30
|
__exportStar(require("./ContextType"), exports);
|
|
31
|
+
__exportStar(require("./EmotionScores"), exports);
|
|
24
32
|
__exportStar(require("./Encoding"), exports);
|
|
33
|
+
__exportStar(require("./WebSocketError"), exports);
|
|
25
34
|
__exportStar(require("./ErrorLevel"), exports);
|
|
35
|
+
__exportStar(require("./Inference"), exports);
|
|
36
|
+
__exportStar(require("./MillisecondInterval"), exports);
|
|
26
37
|
__exportStar(require("./PauseAssistantMessage"), exports);
|
|
38
|
+
__exportStar(require("./ProsodyInference"), exports);
|
|
27
39
|
__exportStar(require("./ResumeAssistantMessage"), exports);
|
|
40
|
+
__exportStar(require("./Role"), exports);
|
|
28
41
|
__exportStar(require("./SessionSettingsVariablesValue"), exports);
|
|
29
42
|
__exportStar(require("./SessionSettings"), exports);
|
|
30
43
|
__exportStar(require("./Tool"), exports);
|
|
44
|
+
__exportStar(require("./ToolCallMessage"), exports);
|
|
31
45
|
__exportStar(require("./ToolErrorMessage"), exports);
|
|
32
46
|
__exportStar(require("./ToolResponseMessage"), exports);
|
|
33
47
|
__exportStar(require("./ToolType"), exports);
|
|
34
48
|
__exportStar(require("./UserInput"), exports);
|
|
35
|
-
__exportStar(require("./AssistantEnd"), exports);
|
|
36
|
-
__exportStar(require("./AssistantMessage"), exports);
|
|
37
|
-
__exportStar(require("./AssistantProsody"), exports);
|
|
38
|
-
__exportStar(require("./AudioOutput"), exports);
|
|
39
|
-
__exportStar(require("./ChatMessageToolResult"), exports);
|
|
40
|
-
__exportStar(require("./ChatMessage"), exports);
|
|
41
|
-
__exportStar(require("./ChatMetadata"), exports);
|
|
42
|
-
__exportStar(require("./EmotionScores"), exports);
|
|
43
|
-
__exportStar(require("./WebSocketError"), exports);
|
|
44
|
-
__exportStar(require("./Inference"), exports);
|
|
45
|
-
__exportStar(require("./MillisecondInterval"), exports);
|
|
46
|
-
__exportStar(require("./ProsodyInference"), exports);
|
|
47
|
-
__exportStar(require("./Role"), exports);
|
|
48
|
-
__exportStar(require("./ToolCallMessage"), exports);
|
|
49
49
|
__exportStar(require("./UserInterruption"), exports);
|
|
50
50
|
__exportStar(require("./UserMessage"), exports);
|
|
51
51
|
__exportStar(require("./JsonMessage"), exports);
|
|
@@ -56,12 +56,12 @@ __exportStar(require("./ValidationErrorLocItem"), exports);
|
|
|
56
56
|
__exportStar(require("./ValidationError"), exports);
|
|
57
57
|
__exportStar(require("./VoiceId"), exports);
|
|
58
58
|
__exportStar(require("./VoiceName"), exports);
|
|
59
|
+
__exportStar(require("./WebhookEventBase"), exports);
|
|
60
|
+
__exportStar(require("./WebhookEvent"), exports);
|
|
59
61
|
__exportStar(require("./WebhookEventChatEnded"), exports);
|
|
60
62
|
__exportStar(require("./WebhookEventChatStartType"), exports);
|
|
61
63
|
__exportStar(require("./WebhookEventChatStarted"), exports);
|
|
62
64
|
__exportStar(require("./WebhookEventChatStatus"), exports);
|
|
63
|
-
__exportStar(require("./WebhookEvent"), exports);
|
|
64
|
-
__exportStar(require("./WebhookEventBase"), exports);
|
|
65
65
|
__exportStar(require("./ErrorResponse"), exports);
|
|
66
66
|
__exportStar(require("./ReturnPagedUserDefinedTools"), exports);
|
|
67
67
|
__exportStar(require("./ReturnUserDefinedToolToolType"), exports);
|