hume 0.13.6 → 0.13.8
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/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- 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/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- 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/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- 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/dist/wrapper/index.d.ts +1 -1
- package/dist/wrapper/index.js +53 -3
- package/package.json +1 -1
- package/reference.md +706 -706
- 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/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- 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
- package/wrapper/index.d.ts +1 -1
- package/wrapper/index.js +53 -3
|
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AssistantEnd: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantEnd.Raw, Hume.empathicVoice.AssistantEnd>;
|
|
8
8
|
export declare namespace AssistantEnd {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "assistant_end";
|
|
11
10
|
custom_session_id?: string | null;
|
|
11
|
+
type: "assistant_end";
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AssistantEnd = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AssistantEnd = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("assistant_end"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
|
+
type: core.serialization.stringLiteral("assistant_end"),
|
|
44
44
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AssistantInput: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantInput.Raw, Hume.empathicVoice.AssistantInput>;
|
|
8
8
|
export declare namespace AssistantInput {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "assistant_input";
|
|
11
10
|
custom_session_id?: string | null;
|
|
12
11
|
text: string;
|
|
12
|
+
type: "assistant_input";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AssistantInput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AssistantInput = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("assistant_input"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
43
|
text: core.serialization.string(),
|
|
44
|
+
type: core.serialization.stringLiteral("assistant_input"),
|
|
45
45
|
});
|
|
@@ -9,11 +9,11 @@ import { Inference } from "./Inference";
|
|
|
9
9
|
export declare const AssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantMessage.Raw, Hume.empathicVoice.AssistantMessage>;
|
|
10
10
|
export declare namespace AssistantMessage {
|
|
11
11
|
interface Raw {
|
|
12
|
-
type: "assistant_message";
|
|
13
12
|
custom_session_id?: string | null;
|
|
13
|
+
from_text: boolean;
|
|
14
14
|
id?: string | null;
|
|
15
15
|
message: ChatMessage.Raw;
|
|
16
16
|
models: Inference.Raw;
|
|
17
|
-
|
|
17
|
+
type: "assistant_message";
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -41,10 +41,10 @@ const core = __importStar(require("../../../../core"));
|
|
|
41
41
|
const ChatMessage_1 = require("./ChatMessage");
|
|
42
42
|
const Inference_1 = require("./Inference");
|
|
43
43
|
exports.AssistantMessage = core.serialization.object({
|
|
44
|
-
type: core.serialization.stringLiteral("assistant_message"),
|
|
45
44
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
45
|
+
fromText: core.serialization.property("from_text", core.serialization.boolean()),
|
|
46
46
|
id: core.serialization.string().optional(),
|
|
47
47
|
message: ChatMessage_1.ChatMessage,
|
|
48
48
|
models: Inference_1.Inference,
|
|
49
|
-
|
|
49
|
+
type: core.serialization.stringLiteral("assistant_message"),
|
|
50
50
|
});
|
|
@@ -8,9 +8,9 @@ import { Inference } from "./Inference";
|
|
|
8
8
|
export declare const AssistantProsody: core.serialization.ObjectSchema<serializers.empathicVoice.AssistantProsody.Raw, Hume.empathicVoice.AssistantProsody>;
|
|
9
9
|
export declare namespace AssistantProsody {
|
|
10
10
|
interface Raw {
|
|
11
|
-
type: "assistant_prosody";
|
|
12
11
|
custom_session_id?: string | null;
|
|
13
|
-
models: Inference.Raw;
|
|
14
12
|
id?: string | null;
|
|
13
|
+
models: Inference.Raw;
|
|
14
|
+
type: "assistant_prosody";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -40,8 +40,8 @@ exports.AssistantProsody = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Inference_1 = require("./Inference");
|
|
42
42
|
exports.AssistantProsody = core.serialization.object({
|
|
43
|
-
type: core.serialization.stringLiteral("assistant_prosody"),
|
|
44
43
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
45
|
-
models: Inference_1.Inference,
|
|
46
44
|
id: core.serialization.string().optional(),
|
|
45
|
+
models: Inference_1.Inference,
|
|
46
|
+
type: core.serialization.stringLiteral("assistant_prosody"),
|
|
47
47
|
});
|
|
@@ -8,8 +8,8 @@ import { Encoding } from "./Encoding";
|
|
|
8
8
|
export declare const AudioConfiguration: core.serialization.ObjectSchema<serializers.empathicVoice.AudioConfiguration.Raw, Hume.empathicVoice.AudioConfiguration>;
|
|
9
9
|
export declare namespace AudioConfiguration {
|
|
10
10
|
interface Raw {
|
|
11
|
-
encoding: Encoding.Raw;
|
|
12
11
|
channels: number;
|
|
12
|
+
encoding: Encoding.Raw;
|
|
13
13
|
sample_rate: number;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -40,7 +40,7 @@ exports.AudioConfiguration = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const Encoding_1 = require("./Encoding");
|
|
42
42
|
exports.AudioConfiguration = core.serialization.object({
|
|
43
|
-
encoding: Encoding_1.Encoding,
|
|
44
43
|
channels: core.serialization.number(),
|
|
44
|
+
encoding: Encoding_1.Encoding,
|
|
45
45
|
sampleRate: core.serialization.property("sample_rate", core.serialization.number()),
|
|
46
46
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AudioInput: core.serialization.ObjectSchema<serializers.empathicVoice.AudioInput.Raw, Hume.empathicVoice.AudioInput>;
|
|
8
8
|
export declare namespace AudioInput {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "audio_input";
|
|
11
10
|
custom_session_id?: string | null;
|
|
12
11
|
data: string;
|
|
12
|
+
type: "audio_input";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AudioInput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AudioInput = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("audio_input"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
43
|
data: core.serialization.string(),
|
|
44
|
+
type: core.serialization.stringLiteral("audio_input"),
|
|
45
45
|
});
|
|
@@ -7,10 +7,10 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const AudioOutput: core.serialization.ObjectSchema<serializers.empathicVoice.AudioOutput.Raw, Hume.empathicVoice.AudioOutput>;
|
|
8
8
|
export declare namespace AudioOutput {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "audio_output";
|
|
11
10
|
custom_session_id?: string | null;
|
|
11
|
+
data: string;
|
|
12
12
|
id: string;
|
|
13
13
|
index: number;
|
|
14
|
-
|
|
14
|
+
type: "audio_output";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.AudioOutput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.AudioOutput = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("audio_output"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
|
+
data: core.serialization.string(),
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
index: core.serialization.number(),
|
|
46
|
-
|
|
46
|
+
type: core.serialization.stringLiteral("audio_output"),
|
|
47
47
|
});
|
|
@@ -8,7 +8,7 @@ import { BuiltInTool } from "./BuiltInTool";
|
|
|
8
8
|
export declare const BuiltinToolConfig: core.serialization.ObjectSchema<serializers.empathicVoice.BuiltinToolConfig.Raw, Hume.empathicVoice.BuiltinToolConfig>;
|
|
9
9
|
export declare namespace BuiltinToolConfig {
|
|
10
10
|
interface Raw {
|
|
11
|
-
name: BuiltInTool.Raw;
|
|
12
11
|
fallback_content?: string | null;
|
|
12
|
+
name: BuiltInTool.Raw;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,6 +40,6 @@ exports.BuiltinToolConfig = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const BuiltInTool_1 = require("./BuiltInTool");
|
|
42
42
|
exports.BuiltinToolConfig = core.serialization.object({
|
|
43
|
-
name: BuiltInTool_1.BuiltInTool,
|
|
44
43
|
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
44
|
+
name: BuiltInTool_1.BuiltInTool,
|
|
45
45
|
});
|
|
@@ -10,8 +10,8 @@ import { ChatMessageToolResult } from "./ChatMessageToolResult";
|
|
|
10
10
|
export declare const ChatMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ChatMessage.Raw, Hume.empathicVoice.ChatMessage>;
|
|
11
11
|
export declare namespace ChatMessage {
|
|
12
12
|
interface Raw {
|
|
13
|
-
role: Role.Raw;
|
|
14
13
|
content?: string | null;
|
|
14
|
+
role: Role.Raw;
|
|
15
15
|
tool_call?: ToolCallMessage.Raw | null;
|
|
16
16
|
tool_result?: ChatMessageToolResult.Raw | null;
|
|
17
17
|
}
|
|
@@ -42,8 +42,8 @@ const Role_1 = require("./Role");
|
|
|
42
42
|
const ToolCallMessage_1 = require("./ToolCallMessage");
|
|
43
43
|
const ChatMessageToolResult_1 = require("./ChatMessageToolResult");
|
|
44
44
|
exports.ChatMessage = core.serialization.object({
|
|
45
|
-
role: Role_1.Role,
|
|
46
45
|
content: core.serialization.string().optional(),
|
|
46
|
+
role: Role_1.Role,
|
|
47
47
|
toolCall: core.serialization.property("tool_call", ToolCallMessage_1.ToolCallMessage.optional()),
|
|
48
48
|
toolResult: core.serialization.property("tool_result", ChatMessageToolResult_1.ChatMessageToolResult.optional()),
|
|
49
49
|
});
|
|
@@ -7,10 +7,10 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const ChatMetadata: core.serialization.ObjectSchema<serializers.empathicVoice.ChatMetadata.Raw, Hume.empathicVoice.ChatMetadata>;
|
|
8
8
|
export declare namespace ChatMetadata {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "chat_metadata";
|
|
11
|
-
custom_session_id?: string | null;
|
|
12
10
|
chat_group_id: string;
|
|
13
11
|
chat_id: string;
|
|
12
|
+
custom_session_id?: string | null;
|
|
14
13
|
request_id?: string | null;
|
|
14
|
+
type: "chat_metadata";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ChatMetadata = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.ChatMetadata = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("chat_metadata"),
|
|
43
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
42
|
chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
|
|
45
43
|
chatId: core.serialization.property("chat_id", core.serialization.string()),
|
|
44
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
46
45
|
requestId: core.serialization.property("request_id", core.serialization.string().optional()),
|
|
46
|
+
type: core.serialization.stringLiteral("chat_metadata"),
|
|
47
47
|
});
|
|
@@ -8,7 +8,7 @@ import { ContextType } from "./ContextType";
|
|
|
8
8
|
export declare const Context: core.serialization.ObjectSchema<serializers.empathicVoice.Context.Raw, Hume.empathicVoice.Context>;
|
|
9
9
|
export declare namespace Context {
|
|
10
10
|
interface Raw {
|
|
11
|
-
type?: ContextType.Raw | null;
|
|
12
11
|
text: string;
|
|
12
|
+
type?: ContextType.Raw | null;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -40,6 +40,6 @@ exports.Context = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ContextType_1 = require("./ContextType");
|
|
42
42
|
exports.Context = core.serialization.object({
|
|
43
|
-
type: ContextType_1.ContextType.optional(),
|
|
44
43
|
text: core.serialization.string(),
|
|
44
|
+
type: ContextType_1.ContextType.optional(),
|
|
45
45
|
});
|
|
@@ -6,5 +6,5 @@ import * as Hume from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const LanguageModelType: core.serialization.Schema<serializers.empathicVoice.LanguageModelType.Raw, Hume.empathicVoice.LanguageModelType>;
|
|
8
8
|
export declare namespace LanguageModelType {
|
|
9
|
-
type Raw = "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";
|
|
9
|
+
type Raw = "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";
|
|
10
10
|
}
|
|
@@ -71,6 +71,12 @@ exports.LanguageModelType = core.serialization.enum_([
|
|
|
71
71
|
"gpt-5",
|
|
72
72
|
"gpt-5-mini",
|
|
73
73
|
"gpt-5-nano",
|
|
74
|
+
"gpt-4o-priority",
|
|
75
|
+
"gpt-4o-mini-priority",
|
|
76
|
+
"gpt-4.1-priority",
|
|
77
|
+
"gpt-5-priority",
|
|
78
|
+
"gpt-5-mini-priority",
|
|
79
|
+
"gpt-5-nano-priority",
|
|
74
80
|
"gemma-7b-it",
|
|
75
81
|
"llama3-8b-8192",
|
|
76
82
|
"llama3-70b-8192",
|
|
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const PauseAssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.PauseAssistantMessage.Raw, Hume.empathicVoice.PauseAssistantMessage>;
|
|
8
8
|
export declare namespace PauseAssistantMessage {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "pause_assistant_message";
|
|
11
10
|
custom_session_id?: string | null;
|
|
11
|
+
type: "pause_assistant_message";
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.PauseAssistantMessage = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.PauseAssistantMessage = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("pause_assistant_message"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
|
+
type: core.serialization.stringLiteral("pause_assistant_message"),
|
|
44
44
|
});
|
|
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const ResumeAssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ResumeAssistantMessage.Raw, Hume.empathicVoice.ResumeAssistantMessage>;
|
|
8
8
|
export declare namespace ResumeAssistantMessage {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "resume_assistant_message";
|
|
11
10
|
custom_session_id?: string | null;
|
|
11
|
+
type: "resume_assistant_message";
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ResumeAssistantMessage = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.ResumeAssistantMessage = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("resume_assistant_message"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
|
+
type: core.serialization.stringLiteral("resume_assistant_message"),
|
|
44
44
|
});
|
|
@@ -20,8 +20,8 @@ export declare namespace ReturnConfig {
|
|
|
20
20
|
name?: string | null;
|
|
21
21
|
id?: string | null;
|
|
22
22
|
version?: number | null;
|
|
23
|
-
version_description?: string | null;
|
|
24
23
|
tools?: (ReturnUserDefinedTool.Raw | null | undefined)[] | null;
|
|
24
|
+
version_description?: string | null;
|
|
25
25
|
language_model?: ReturnLanguageModel.Raw | null;
|
|
26
26
|
builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
|
|
27
27
|
evi_version?: string | null;
|
|
@@ -52,8 +52,8 @@ exports.ReturnConfig = core.serialization.object({
|
|
|
52
52
|
name: core.serialization.string().optional(),
|
|
53
53
|
id: core.serialization.string().optional(),
|
|
54
54
|
version: core.serialization.number().optional(),
|
|
55
|
-
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
56
55
|
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
56
|
+
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
57
57
|
languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
|
|
58
58
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
|
|
59
59
|
eviVersion: core.serialization.property("evi_version", core.serialization.string().optional()),
|
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { Context } from "./Context";
|
|
8
7
|
import { AudioConfiguration } from "./AudioConfiguration";
|
|
9
|
-
import { Tool } from "./Tool";
|
|
10
8
|
import { BuiltinToolConfig } from "./BuiltinToolConfig";
|
|
9
|
+
import { Context } from "./Context";
|
|
10
|
+
import { Tool } from "./Tool";
|
|
11
11
|
import { SessionSettingsVariablesValue } from "./SessionSettingsVariablesValue";
|
|
12
12
|
export declare const SessionSettings: core.serialization.ObjectSchema<serializers.empathicVoice.SessionSettings.Raw, Hume.empathicVoice.SessionSettings>;
|
|
13
13
|
export declare namespace SessionSettings {
|
|
14
14
|
interface Raw {
|
|
15
|
-
type: "session_settings";
|
|
16
|
-
custom_session_id?: string | null;
|
|
17
|
-
system_prompt?: string | null;
|
|
18
|
-
context?: Context.Raw | null;
|
|
19
15
|
audio?: AudioConfiguration.Raw | null;
|
|
20
|
-
language_model_api_key?: string | null;
|
|
21
|
-
tools?: Tool.Raw[] | null;
|
|
22
16
|
builtin_tools?: BuiltinToolConfig.Raw[] | null;
|
|
17
|
+
context?: Context.Raw | null;
|
|
18
|
+
custom_session_id?: string | null;
|
|
19
|
+
language_model_api_key?: string | null;
|
|
23
20
|
metadata?: Record<string, unknown> | null;
|
|
21
|
+
system_prompt?: string | null;
|
|
22
|
+
tools?: Tool.Raw[] | null;
|
|
23
|
+
type: "session_settings";
|
|
24
24
|
variables?: Record<string, SessionSettingsVariablesValue.Raw> | null;
|
|
25
25
|
voice_id?: string | null;
|
|
26
26
|
}
|
|
@@ -38,21 +38,21 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.SessionSettings = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const Context_1 = require("./Context");
|
|
42
41
|
const AudioConfiguration_1 = require("./AudioConfiguration");
|
|
43
|
-
const Tool_1 = require("./Tool");
|
|
44
42
|
const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
|
|
43
|
+
const Context_1 = require("./Context");
|
|
44
|
+
const Tool_1 = require("./Tool");
|
|
45
45
|
const SessionSettingsVariablesValue_1 = require("./SessionSettingsVariablesValue");
|
|
46
46
|
exports.SessionSettings = core.serialization.object({
|
|
47
|
-
type: core.serialization.stringLiteral("session_settings"),
|
|
48
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
49
|
-
systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
|
|
50
|
-
context: Context_1.Context.optional(),
|
|
51
47
|
audio: AudioConfiguration_1.AudioConfiguration.optional(),
|
|
52
|
-
languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
|
|
53
|
-
tools: core.serialization.list(Tool_1.Tool).optional(),
|
|
54
48
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
|
|
49
|
+
context: Context_1.Context.optional(),
|
|
50
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
51
|
+
languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
|
|
55
52
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
53
|
+
systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
|
|
54
|
+
tools: core.serialization.list(Tool_1.Tool).optional(),
|
|
55
|
+
type: core.serialization.stringLiteral("session_settings"),
|
|
56
56
|
variables: core.serialization.record(core.serialization.string(), SessionSettingsVariablesValue_1.SessionSettingsVariablesValue).optional(),
|
|
57
57
|
voiceId: core.serialization.property("voice_id", core.serialization.string().optional()),
|
|
58
58
|
});
|
|
@@ -8,10 +8,10 @@ import { ToolType } from "./ToolType";
|
|
|
8
8
|
export declare const Tool: core.serialization.ObjectSchema<serializers.empathicVoice.Tool.Raw, Hume.empathicVoice.Tool>;
|
|
9
9
|
export declare namespace Tool {
|
|
10
10
|
interface Raw {
|
|
11
|
-
type: ToolType.Raw;
|
|
12
|
-
name: string;
|
|
13
|
-
parameters: string;
|
|
14
11
|
description?: string | null;
|
|
15
12
|
fallback_content?: string | null;
|
|
13
|
+
name: string;
|
|
14
|
+
parameters: string;
|
|
15
|
+
type: ToolType.Raw;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -40,9 +40,9 @@ exports.Tool = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ToolType_1 = require("./ToolType");
|
|
42
42
|
exports.Tool = core.serialization.object({
|
|
43
|
-
type: ToolType_1.ToolType,
|
|
44
|
-
name: core.serialization.string(),
|
|
45
|
-
parameters: core.serialization.string(),
|
|
46
43
|
description: core.serialization.string().optional(),
|
|
47
44
|
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
45
|
+
name: core.serialization.string(),
|
|
46
|
+
parameters: core.serialization.string(),
|
|
47
|
+
type: ToolType_1.ToolType,
|
|
48
48
|
});
|
|
@@ -8,12 +8,12 @@ import { ToolType } from "./ToolType";
|
|
|
8
8
|
export declare const ToolCallMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolCallMessage.Raw, Hume.empathicVoice.ToolCallMessage>;
|
|
9
9
|
export declare namespace ToolCallMessage {
|
|
10
10
|
interface Raw {
|
|
11
|
+
custom_session_id?: string | null;
|
|
11
12
|
name: string;
|
|
12
13
|
parameters: string;
|
|
14
|
+
response_required: boolean;
|
|
13
15
|
tool_call_id: string;
|
|
14
|
-
type: "tool_call";
|
|
15
|
-
custom_session_id?: string | null;
|
|
16
16
|
tool_type?: ToolType.Raw | null;
|
|
17
|
-
|
|
17
|
+
type: "tool_call";
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -40,11 +40,11 @@ exports.ToolCallMessage = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ToolType_1 = require("./ToolType");
|
|
42
42
|
exports.ToolCallMessage = core.serialization.object({
|
|
43
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
43
44
|
name: core.serialization.string(),
|
|
44
45
|
parameters: core.serialization.string(),
|
|
46
|
+
responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
|
|
45
47
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
46
|
-
type: core.serialization.stringLiteral("tool_call"),
|
|
47
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
48
48
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
49
|
-
|
|
49
|
+
type: core.serialization.stringLiteral("tool_call"),
|
|
50
50
|
});
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { ToolType } from "./ToolType";
|
|
8
7
|
import { ErrorLevel } from "./ErrorLevel";
|
|
8
|
+
import { ToolType } from "./ToolType";
|
|
9
9
|
export declare const ToolErrorMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolErrorMessage.Raw, Hume.empathicVoice.ToolErrorMessage>;
|
|
10
10
|
export declare namespace ToolErrorMessage {
|
|
11
11
|
interface Raw {
|
|
12
|
-
|
|
13
|
-
custom_session_id?: string | null;
|
|
14
|
-
tool_type?: ToolType.Raw | null;
|
|
15
|
-
tool_call_id: string;
|
|
12
|
+
code?: string | null;
|
|
16
13
|
content?: string | null;
|
|
14
|
+
custom_session_id?: string | null;
|
|
17
15
|
error: string;
|
|
18
|
-
code?: string | null;
|
|
19
16
|
level?: ErrorLevel.Raw | null;
|
|
17
|
+
tool_call_id: string;
|
|
18
|
+
tool_type?: ToolType.Raw | null;
|
|
19
|
+
type: "tool_error";
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -38,15 +38,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ToolErrorMessage = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const ToolType_1 = require("./ToolType");
|
|
42
41
|
const ErrorLevel_1 = require("./ErrorLevel");
|
|
42
|
+
const ToolType_1 = require("./ToolType");
|
|
43
43
|
exports.ToolErrorMessage = core.serialization.object({
|
|
44
|
-
|
|
45
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
46
|
-
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
47
|
-
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
44
|
+
code: core.serialization.string().optional(),
|
|
48
45
|
content: core.serialization.string().optional(),
|
|
46
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
49
47
|
error: core.serialization.string(),
|
|
50
|
-
code: core.serialization.string().optional(),
|
|
51
48
|
level: ErrorLevel_1.ErrorLevel.optional(),
|
|
49
|
+
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
50
|
+
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
51
|
+
type: core.serialization.stringLiteral("tool_error"),
|
|
52
52
|
});
|
|
@@ -8,11 +8,11 @@ import { ToolType } from "./ToolType";
|
|
|
8
8
|
export declare const ToolResponseMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolResponseMessage.Raw, Hume.empathicVoice.ToolResponseMessage>;
|
|
9
9
|
export declare namespace ToolResponseMessage {
|
|
10
10
|
interface Raw {
|
|
11
|
-
|
|
11
|
+
content: string;
|
|
12
12
|
custom_session_id?: string | null;
|
|
13
13
|
tool_call_id: string;
|
|
14
|
-
content: string;
|
|
15
14
|
tool_name?: string | null;
|
|
16
15
|
tool_type?: ToolType.Raw | null;
|
|
16
|
+
type: "tool_response";
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -40,10 +40,10 @@ exports.ToolResponseMessage = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
const ToolType_1 = require("./ToolType");
|
|
42
42
|
exports.ToolResponseMessage = core.serialization.object({
|
|
43
|
-
|
|
43
|
+
content: core.serialization.string(),
|
|
44
44
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
45
45
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
46
|
-
content: core.serialization.string(),
|
|
47
46
|
toolName: core.serialization.property("tool_name", core.serialization.string().optional()),
|
|
48
47
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
48
|
+
type: core.serialization.stringLiteral("tool_response"),
|
|
49
49
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const UserInput: core.serialization.ObjectSchema<serializers.empathicVoice.UserInput.Raw, Hume.empathicVoice.UserInput>;
|
|
8
8
|
export declare namespace UserInput {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "user_input";
|
|
11
10
|
custom_session_id?: string | null;
|
|
12
11
|
text: string;
|
|
12
|
+
type: "user_input";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.UserInput = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.UserInput = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("user_input"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
43
|
text: core.serialization.string(),
|
|
44
|
+
type: core.serialization.stringLiteral("user_input"),
|
|
45
45
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const UserInterruption: core.serialization.ObjectSchema<serializers.empathicVoice.UserInterruption.Raw, Hume.empathicVoice.UserInterruption>;
|
|
8
8
|
export declare namespace UserInterruption {
|
|
9
9
|
interface Raw {
|
|
10
|
-
type: "user_interruption";
|
|
11
10
|
custom_session_id?: string | null;
|
|
12
11
|
time: number;
|
|
12
|
+
type: "user_interruption";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.UserInterruption = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.UserInterruption = core.serialization.object({
|
|
42
|
-
type: core.serialization.stringLiteral("user_interruption"),
|
|
43
42
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
44
43
|
time: core.serialization.number(),
|
|
44
|
+
type: core.serialization.stringLiteral("user_interruption"),
|
|
45
45
|
});
|
|
@@ -10,12 +10,12 @@ import { MillisecondInterval } from "./MillisecondInterval";
|
|
|
10
10
|
export declare const UserMessage: core.serialization.ObjectSchema<serializers.empathicVoice.UserMessage.Raw, Hume.empathicVoice.UserMessage>;
|
|
11
11
|
export declare namespace UserMessage {
|
|
12
12
|
interface Raw {
|
|
13
|
-
type: "user_message";
|
|
14
13
|
custom_session_id?: string | null;
|
|
14
|
+
from_text: boolean;
|
|
15
|
+
interim: boolean;
|
|
15
16
|
message: ChatMessage.Raw;
|
|
16
17
|
models: Inference.Raw;
|
|
17
18
|
time: MillisecondInterval.Raw;
|
|
18
|
-
|
|
19
|
-
interim: boolean;
|
|
19
|
+
type: "user_message";
|
|
20
20
|
}
|
|
21
21
|
}
|