hume 0.5.16 → 0.5.17
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/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -10
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/Client.js +10 -10
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
- package/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
- package/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
- package/api/resources/empathicVoice/types/Context.d.ts +10 -0
- package/api/resources/empathicVoice/types/Context.js +5 -0
- package/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
- package/api/resources/empathicVoice/types/ContextType.js +11 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
- package/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
- package/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
- package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
- package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
- package/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
- package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- package/api/resources/empathicVoice/types/index.d.ts +14 -7
- package/api/resources/empathicVoice/types/index.js +14 -7
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +3 -3
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +1 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +10 -10
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +10 -10
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/AssistantInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AudioInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/AudioOutput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/BuiltInTool.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/BuiltInTool.js +5 -0
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.d.ts +8 -0
- package/dist/api/resources/empathicVoice/types/BuiltinToolConfig.js +5 -0
- package/dist/api/resources/empathicVoice/types/Context.d.ts +10 -0
- package/dist/api/resources/empathicVoice/types/Context.js +5 -0
- package/dist/api/resources/empathicVoice/types/ContextType.d.ts +9 -0
- package/dist/api/resources/empathicVoice/types/ContextType.js +11 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.js +5 -0
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +4 -3
- package/dist/api/resources/empathicVoice/types/PostedVoiceName.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/PostedVoiceName.js +10 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +6 -6
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +5 -4
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +7 -6
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +7 -3
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +14 -7
- package/dist/api/resources/empathicVoice/types/index.js +14 -7
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
- package/dist/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
- package/dist/serialization/resources/empathicVoice/types/Context.js +35 -0
- package/dist/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ContextType.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
- package/dist/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
- package/dist/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/dist/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
- 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 -4
- package/dist/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
- package/dist/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +14 -7
- package/dist/serialization/resources/empathicVoice/types/index.js +14 -7
- package/package.json +1 -1
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.d.ts +3 -1
- package/serialization/resources/empathicVoice/resources/chat/types/PublishEvent.js +4 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
- package/serialization/resources/empathicVoice/types/AssistantEnd.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/AssistantEnd.js +1 -0
- package/serialization/resources/empathicVoice/types/BuiltInTool.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/BuiltInTool.js +31 -0
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/BuiltinToolConfig.js +35 -0
- package/serialization/resources/empathicVoice/types/Context.d.ts +14 -0
- package/serialization/resources/empathicVoice/types/Context.js +35 -0
- package/serialization/resources/empathicVoice/types/ContextType.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ContextType.js +31 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/PauseAssistantMessage.js +34 -0
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.d.ts +1 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelProvider.js +1 -1
- package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +3 -2
- package/serialization/resources/empathicVoice/types/PostedVoice.js +3 -2
- package/serialization/resources/empathicVoice/types/PostedVoiceName.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/PostedVoiceName.js +31 -0
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +13 -0
- package/serialization/resources/empathicVoice/types/ResumeAssistantMessage.js +34 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
- package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.d.ts → ReturnChatPagedEvents.d.ts} +2 -2
- package/serialization/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → ReturnChatPagedEvents.js} +2 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
- package/serialization/resources/empathicVoice/types/SessionSettings.d.ts +4 -2
- package/serialization/resources/empathicVoice/types/SessionSettings.js +4 -2
- 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 -4
- package/serialization/resources/empathicVoice/types/ToolErrorMessage.js +6 -4
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.d.ts +5 -2
- package/serialization/resources/empathicVoice/types/ToolResponseMessage.js +5 -2
- package/serialization/resources/empathicVoice/types/index.d.ts +14 -7
- package/serialization/resources/empathicVoice/types/index.js +14 -7
- /package/api/resources/empathicVoice/types/{ReturnChatWithPagedEvents.js → BuiltInTool.js} +0 -0
- /package/{dist/api/resources/empathicVoice/types/ReturnChatWithPagedEvents.js → api/resources/empathicVoice/types/BuiltinToolConfig.js} +0 -0
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ReturnConfig = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const ReturnPrompt_1 = require("./ReturnPrompt");
|
|
32
|
+
const ReturnVoice_1 = require("./ReturnVoice");
|
|
32
33
|
const ReturnLanguageModel_1 = require("./ReturnLanguageModel");
|
|
33
34
|
const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
|
|
34
35
|
const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
|
|
@@ -40,6 +41,7 @@ exports.ReturnConfig = core.serialization.object({
|
|
|
40
41
|
createdOn: core.serialization.property("created_on", core.serialization.number().optional()),
|
|
41
42
|
modifiedOn: core.serialization.property("modified_on", core.serialization.number().optional()),
|
|
42
43
|
prompt: ReturnPrompt_1.ReturnPrompt.optional(),
|
|
44
|
+
voice: ReturnVoice_1.ReturnVoice.optional(),
|
|
43
45
|
languageModel: core.serialization.property("language_model", ReturnLanguageModel_1.ReturnLanguageModel.optional()),
|
|
44
46
|
tools: core.serialization.list(ReturnUserDefinedTool_1.ReturnUserDefinedTool.optional()).optional(),
|
|
45
47
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
|
|
@@ -5,15 +5,17 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { AudioConfiguration } from "./AudioConfiguration";
|
|
8
|
+
import { BuiltinToolConfig } from "./BuiltinToolConfig";
|
|
8
9
|
import { Tool } from "./Tool";
|
|
9
10
|
export declare const SessionSettings: core.serialization.ObjectSchema<serializers.empathicVoice.SessionSettings.Raw, Hume.empathicVoice.SessionSettings>;
|
|
10
11
|
export declare namespace SessionSettings {
|
|
11
12
|
interface Raw {
|
|
12
|
-
custom_session_id?: string | null;
|
|
13
13
|
audio?: AudioConfiguration.Raw | null;
|
|
14
|
+
builtin_tools?: BuiltinToolConfig.Raw[] | null;
|
|
15
|
+
custom_session_id?: string | null;
|
|
14
16
|
language_model_api_key?: string | null;
|
|
15
17
|
system_prompt?: string | null;
|
|
16
|
-
type: "session_settings";
|
|
17
18
|
tools?: Tool.Raw[] | null;
|
|
19
|
+
type: "session_settings";
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -29,12 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.SessionSettings = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const AudioConfiguration_1 = require("./AudioConfiguration");
|
|
32
|
+
const BuiltinToolConfig_1 = require("./BuiltinToolConfig");
|
|
32
33
|
const Tool_1 = require("./Tool");
|
|
33
34
|
exports.SessionSettings = core.serialization.object({
|
|
34
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
35
35
|
audio: AudioConfiguration_1.AudioConfiguration.optional(),
|
|
36
|
+
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(BuiltinToolConfig_1.BuiltinToolConfig).optional()),
|
|
37
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
36
38
|
languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
|
|
37
39
|
systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
|
|
38
|
-
type: core.serialization.stringLiteral("session_settings"),
|
|
39
40
|
tools: core.serialization.list(Tool_1.Tool).optional(),
|
|
41
|
+
type: core.serialization.stringLiteral("session_settings"),
|
|
40
42
|
});
|
|
@@ -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
|
}
|
|
@@ -30,9 +30,9 @@ exports.Tool = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const ToolType_1 = require("./ToolType");
|
|
32
32
|
exports.Tool = core.serialization.object({
|
|
33
|
-
type: ToolType_1.ToolType,
|
|
34
|
-
name: core.serialization.string(),
|
|
35
|
-
parameters: core.serialization.string(),
|
|
36
33
|
description: core.serialization.string().optional(),
|
|
37
34
|
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
35
|
+
name: core.serialization.string(),
|
|
36
|
+
parameters: core.serialization.string(),
|
|
37
|
+
type: ToolType_1.ToolType,
|
|
38
38
|
});
|
|
@@ -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" | null;
|
|
15
|
-
custom_session_id?: string | null;
|
|
16
16
|
tool_type: ToolType.Raw;
|
|
17
|
-
|
|
17
|
+
type?: "tool_call" | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -30,11 +30,11 @@ exports.ToolCallMessage = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const ToolType_1 = require("./ToolType");
|
|
32
32
|
exports.ToolCallMessage = core.serialization.object({
|
|
33
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
33
34
|
name: core.serialization.string(),
|
|
34
35
|
parameters: core.serialization.string(),
|
|
36
|
+
responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
|
|
35
37
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
36
|
-
type: core.serialization.stringLiteral("tool_call").optional(),
|
|
37
|
-
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
38
38
|
toolType: core.serialization.property("tool_type", ToolType_1.ToolType),
|
|
39
|
-
|
|
39
|
+
type: core.serialization.stringLiteral("tool_call").optional(),
|
|
40
40
|
});
|
|
@@ -5,15 +5,17 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as Hume from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { ErrorLevel } from "./ErrorLevel";
|
|
8
|
+
import { ToolType } from "./ToolType";
|
|
8
9
|
export declare const ToolErrorMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolErrorMessage.Raw, Hume.empathicVoice.ToolErrorMessage>;
|
|
9
10
|
export declare namespace ToolErrorMessage {
|
|
10
11
|
interface Raw {
|
|
11
|
-
|
|
12
|
+
code?: string | null;
|
|
13
|
+
content?: string | null;
|
|
12
14
|
custom_session_id?: string | null;
|
|
13
|
-
tool_call_id: string;
|
|
14
|
-
content: string;
|
|
15
15
|
error: string;
|
|
16
|
-
code?: string | null;
|
|
17
16
|
level?: ErrorLevel.Raw | null;
|
|
17
|
+
tool_call_id: string;
|
|
18
|
+
tool_type?: ToolType.Raw | null;
|
|
19
|
+
type?: "tool_error" | null;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -29,12 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ToolErrorMessage = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const ErrorLevel_1 = require("./ErrorLevel");
|
|
32
|
+
const ToolType_1 = require("./ToolType");
|
|
32
33
|
exports.ToolErrorMessage = core.serialization.object({
|
|
33
|
-
|
|
34
|
+
code: core.serialization.string().optional(),
|
|
35
|
+
content: core.serialization.string().optional(),
|
|
34
36
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
35
|
-
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
36
|
-
content: core.serialization.string(),
|
|
37
37
|
error: core.serialization.string(),
|
|
38
|
-
code: core.serialization.string().optional(),
|
|
39
38
|
level: ErrorLevel_1.ErrorLevel.optional(),
|
|
39
|
+
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
40
|
+
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
41
|
+
type: core.serialization.stringLiteral("tool_error").optional(),
|
|
40
42
|
});
|
|
@@ -4,12 +4,15 @@
|
|
|
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";
|
|
7
8
|
export declare const ToolResponseMessage: core.serialization.ObjectSchema<serializers.empathicVoice.ToolResponseMessage.Raw, Hume.empathicVoice.ToolResponseMessage>;
|
|
8
9
|
export declare namespace ToolResponseMessage {
|
|
9
10
|
interface Raw {
|
|
10
|
-
|
|
11
|
+
content: string;
|
|
11
12
|
custom_session_id?: string | null;
|
|
12
13
|
tool_call_id: string;
|
|
13
|
-
|
|
14
|
+
tool_name?: string | null;
|
|
15
|
+
tool_type?: ToolType.Raw | null;
|
|
16
|
+
type?: "tool_response" | null;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -28,9 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ToolResponseMessage = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ToolType_1 = require("./ToolType");
|
|
31
32
|
exports.ToolResponseMessage = core.serialization.object({
|
|
32
|
-
|
|
33
|
+
content: core.serialization.string(),
|
|
33
34
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
34
35
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
35
|
-
|
|
36
|
+
toolName: core.serialization.property("tool_name", core.serialization.string().optional()),
|
|
37
|
+
toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
|
|
38
|
+
type: core.serialization.stringLiteral("tool_response").optional(),
|
|
36
39
|
});
|
|
@@ -5,6 +5,7 @@ export * from "./PostedLanguageModelModelProvider";
|
|
|
5
5
|
export * from "./PostedLanguageModel";
|
|
6
6
|
export * from "./PostedPromptSpec";
|
|
7
7
|
export * from "./PostedUserDefinedToolSpec";
|
|
8
|
+
export * from "./PostedVoiceName";
|
|
8
9
|
export * from "./PostedVoice";
|
|
9
10
|
export * from "./ReturnBuiltinTool";
|
|
10
11
|
export * from "./ReturnConfig";
|
|
@@ -17,7 +18,7 @@ export * from "./ReturnChat";
|
|
|
17
18
|
export * from "./ReturnConfigSpec";
|
|
18
19
|
export * from "./ReturnPagedChats";
|
|
19
20
|
export * from "./ReturnChatEvent";
|
|
20
|
-
export * from "./
|
|
21
|
+
export * from "./ReturnChatPagedEvents";
|
|
21
22
|
export * from "./ReturnActiveChatCount";
|
|
22
23
|
export * from "./ReturnActiveChatCountPerTag";
|
|
23
24
|
export * from "./AssistantEnd";
|
|
@@ -26,23 +27,29 @@ export * from "./AssistantMessage";
|
|
|
26
27
|
export * from "./AudioConfiguration";
|
|
27
28
|
export * from "./AudioInput";
|
|
28
29
|
export * from "./AudioOutput";
|
|
30
|
+
export * from "./BuiltInTool";
|
|
31
|
+
export * from "./BuiltinToolConfig";
|
|
29
32
|
export * from "./ChatMessageToolResult";
|
|
30
33
|
export * from "./ChatMessage";
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./ToolErrorMessage";
|
|
34
|
-
export * from "./ToolResponseMessage";
|
|
35
|
-
export * from "./ToolType";
|
|
34
|
+
export * from "./Context";
|
|
35
|
+
export * from "./ContextType";
|
|
36
36
|
export * from "./EmotionScores";
|
|
37
37
|
export * from "./Encoding";
|
|
38
38
|
export * from "./WebSocketError";
|
|
39
|
+
export * from "./ErrorLevel";
|
|
39
40
|
export * from "./Inference";
|
|
40
41
|
export * from "./MillisecondInterval";
|
|
42
|
+
export * from "./PauseAssistantMessage";
|
|
41
43
|
export * from "./ProsodyInference";
|
|
44
|
+
export * from "./ResumeAssistantMessage";
|
|
42
45
|
export * from "./Role";
|
|
43
46
|
export * from "./SessionSettings";
|
|
44
|
-
export * from "./
|
|
47
|
+
export * from "./Tool";
|
|
45
48
|
export * from "./ToolCallMessage";
|
|
49
|
+
export * from "./ToolErrorMessage";
|
|
50
|
+
export * from "./ToolResponseMessage";
|
|
51
|
+
export * from "./ToolType";
|
|
52
|
+
export * from "./UserInput";
|
|
46
53
|
export * from "./UserInterruption";
|
|
47
54
|
export * from "./UserMessage";
|
|
48
55
|
export * from "./TtsInput";
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./PostedLanguageModelModelProvider"), exports);
|
|
|
21
21
|
__exportStar(require("./PostedLanguageModel"), exports);
|
|
22
22
|
__exportStar(require("./PostedPromptSpec"), exports);
|
|
23
23
|
__exportStar(require("./PostedUserDefinedToolSpec"), exports);
|
|
24
|
+
__exportStar(require("./PostedVoiceName"), exports);
|
|
24
25
|
__exportStar(require("./PostedVoice"), exports);
|
|
25
26
|
__exportStar(require("./ReturnBuiltinTool"), exports);
|
|
26
27
|
__exportStar(require("./ReturnConfig"), exports);
|
|
@@ -33,7 +34,7 @@ __exportStar(require("./ReturnChat"), exports);
|
|
|
33
34
|
__exportStar(require("./ReturnConfigSpec"), exports);
|
|
34
35
|
__exportStar(require("./ReturnPagedChats"), exports);
|
|
35
36
|
__exportStar(require("./ReturnChatEvent"), exports);
|
|
36
|
-
__exportStar(require("./
|
|
37
|
+
__exportStar(require("./ReturnChatPagedEvents"), exports);
|
|
37
38
|
__exportStar(require("./ReturnActiveChatCount"), exports);
|
|
38
39
|
__exportStar(require("./ReturnActiveChatCountPerTag"), exports);
|
|
39
40
|
__exportStar(require("./AssistantEnd"), exports);
|
|
@@ -42,23 +43,29 @@ __exportStar(require("./AssistantMessage"), exports);
|
|
|
42
43
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
43
44
|
__exportStar(require("./AudioInput"), exports);
|
|
44
45
|
__exportStar(require("./AudioOutput"), exports);
|
|
46
|
+
__exportStar(require("./BuiltInTool"), exports);
|
|
47
|
+
__exportStar(require("./BuiltinToolConfig"), exports);
|
|
45
48
|
__exportStar(require("./ChatMessageToolResult"), exports);
|
|
46
49
|
__exportStar(require("./ChatMessage"), exports);
|
|
47
|
-
__exportStar(require("./
|
|
48
|
-
__exportStar(require("./
|
|
49
|
-
__exportStar(require("./ToolErrorMessage"), exports);
|
|
50
|
-
__exportStar(require("./ToolResponseMessage"), exports);
|
|
51
|
-
__exportStar(require("./ToolType"), exports);
|
|
50
|
+
__exportStar(require("./Context"), exports);
|
|
51
|
+
__exportStar(require("./ContextType"), exports);
|
|
52
52
|
__exportStar(require("./EmotionScores"), exports);
|
|
53
53
|
__exportStar(require("./Encoding"), exports);
|
|
54
54
|
__exportStar(require("./WebSocketError"), exports);
|
|
55
|
+
__exportStar(require("./ErrorLevel"), exports);
|
|
55
56
|
__exportStar(require("./Inference"), exports);
|
|
56
57
|
__exportStar(require("./MillisecondInterval"), exports);
|
|
58
|
+
__exportStar(require("./PauseAssistantMessage"), exports);
|
|
57
59
|
__exportStar(require("./ProsodyInference"), exports);
|
|
60
|
+
__exportStar(require("./ResumeAssistantMessage"), exports);
|
|
58
61
|
__exportStar(require("./Role"), exports);
|
|
59
62
|
__exportStar(require("./SessionSettings"), exports);
|
|
60
|
-
__exportStar(require("./
|
|
63
|
+
__exportStar(require("./Tool"), exports);
|
|
61
64
|
__exportStar(require("./ToolCallMessage"), exports);
|
|
65
|
+
__exportStar(require("./ToolErrorMessage"), exports);
|
|
66
|
+
__exportStar(require("./ToolResponseMessage"), exports);
|
|
67
|
+
__exportStar(require("./ToolType"), exports);
|
|
68
|
+
__exportStar(require("./UserInput"), exports);
|
|
62
69
|
__exportStar(require("./UserInterruption"), exports);
|
|
63
70
|
__exportStar(require("./UserMessage"), exports);
|
|
64
71
|
__exportStar(require("./TtsInput"), exports);
|
package/package.json
CHANGED
|
@@ -10,7 +10,9 @@ import { UserInput } from "../../../types/UserInput";
|
|
|
10
10
|
import { AssistantInput } from "../../../types/AssistantInput";
|
|
11
11
|
import { ToolResponseMessage } from "../../../types/ToolResponseMessage";
|
|
12
12
|
import { ToolErrorMessage } from "../../../types/ToolErrorMessage";
|
|
13
|
+
import { PauseAssistantMessage } from "../../../types/PauseAssistantMessage";
|
|
14
|
+
import { ResumeAssistantMessage } from "../../../types/ResumeAssistantMessage";
|
|
13
15
|
export declare const PublishEvent: core.serialization.Schema<serializers.empathicVoice.PublishEvent.Raw, Hume.empathicVoice.PublishEvent>;
|
|
14
16
|
export declare namespace PublishEvent {
|
|
15
|
-
type Raw = AudioInput.Raw | SessionSettings.Raw | UserInput.Raw | AssistantInput.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
17
|
+
type Raw = AudioInput.Raw | SessionSettings.Raw | UserInput.Raw | AssistantInput.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | PauseAssistantMessage.Raw | ResumeAssistantMessage.Raw;
|
|
16
18
|
}
|
|
@@ -34,6 +34,8 @@ const UserInput_1 = require("../../../types/UserInput");
|
|
|
34
34
|
const AssistantInput_1 = require("../../../types/AssistantInput");
|
|
35
35
|
const ToolResponseMessage_1 = require("../../../types/ToolResponseMessage");
|
|
36
36
|
const ToolErrorMessage_1 = require("../../../types/ToolErrorMessage");
|
|
37
|
+
const PauseAssistantMessage_1 = require("../../../types/PauseAssistantMessage");
|
|
38
|
+
const ResumeAssistantMessage_1 = require("../../../types/ResumeAssistantMessage");
|
|
37
39
|
exports.PublishEvent = core.serialization.undiscriminatedUnion([
|
|
38
40
|
AudioInput_1.AudioInput,
|
|
39
41
|
SessionSettings_1.SessionSettings,
|
|
@@ -41,4 +43,6 @@ exports.PublishEvent = core.serialization.undiscriminatedUnion([
|
|
|
41
43
|
AssistantInput_1.AssistantInput,
|
|
42
44
|
ToolResponseMessage_1.ToolResponseMessage,
|
|
43
45
|
ToolErrorMessage_1.ToolErrorMessage,
|
|
46
|
+
PauseAssistantMessage_1.PauseAssistantMessage,
|
|
47
|
+
ResumeAssistantMessage_1.ResumeAssistantMessage,
|
|
44
48
|
]);
|
package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../../index";
|
|
|
5
5
|
import * as Hume from "../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../core";
|
|
7
7
|
import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
|
|
8
|
+
import { PostedVoice } from "../../../../types/PostedVoice";
|
|
8
9
|
import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
|
|
9
10
|
import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec";
|
|
10
11
|
import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
|
|
@@ -14,6 +15,7 @@ export declare namespace PostedConfig {
|
|
|
14
15
|
name: string;
|
|
15
16
|
version_description?: string | null;
|
|
16
17
|
prompt?: PostedPromptSpec.Raw | null;
|
|
18
|
+
voice?: PostedVoice.Raw | null;
|
|
17
19
|
language_model?: PostedLanguageModel.Raw | null;
|
|
18
20
|
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
19
21
|
builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
|
package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js
CHANGED
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.PostedConfig = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../core"));
|
|
31
31
|
const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
|
|
32
|
+
const PostedVoice_1 = require("../../../../types/PostedVoice");
|
|
32
33
|
const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
|
|
33
34
|
const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefinedToolSpec");
|
|
34
35
|
const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
|
|
@@ -36,6 +37,7 @@ exports.PostedConfig = core.serialization.object({
|
|
|
36
37
|
name: core.serialization.string(),
|
|
37
38
|
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
38
39
|
prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
|
|
40
|
+
voice: PostedVoice_1.PostedVoice.optional(),
|
|
39
41
|
languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
|
|
40
42
|
tools: core.serialization.list(PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
41
43
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../../../../../../index";
|
|
|
5
5
|
import * as Hume from "../../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../../core";
|
|
7
7
|
import { PostedPromptSpec } from "../../../../types/PostedPromptSpec";
|
|
8
|
+
import { PostedVoice } from "../../../../types/PostedVoice";
|
|
8
9
|
import { PostedLanguageModel } from "../../../../types/PostedLanguageModel";
|
|
9
10
|
import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedToolSpec";
|
|
10
11
|
import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
|
|
@@ -13,6 +14,7 @@ export declare namespace PostedConfigVersion {
|
|
|
13
14
|
interface Raw {
|
|
14
15
|
version_description?: string | null;
|
|
15
16
|
prompt?: PostedPromptSpec.Raw | null;
|
|
17
|
+
voice?: PostedVoice.Raw | null;
|
|
16
18
|
language_model?: PostedLanguageModel.Raw | null;
|
|
17
19
|
tools?: (PostedUserDefinedToolSpec.Raw | null | undefined)[] | null;
|
|
18
20
|
builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
|
|
@@ -29,12 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.PostedConfigVersion = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../../core"));
|
|
31
31
|
const PostedPromptSpec_1 = require("../../../../types/PostedPromptSpec");
|
|
32
|
+
const PostedVoice_1 = require("../../../../types/PostedVoice");
|
|
32
33
|
const PostedLanguageModel_1 = require("../../../../types/PostedLanguageModel");
|
|
33
34
|
const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefinedToolSpec");
|
|
34
35
|
const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
|
|
35
36
|
exports.PostedConfigVersion = core.serialization.object({
|
|
36
37
|
versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
|
|
37
38
|
prompt: PostedPromptSpec_1.PostedPromptSpec.optional(),
|
|
39
|
+
voice: PostedVoice_1.PostedVoice.optional(),
|
|
38
40
|
languageModel: core.serialization.property("language_model", PostedLanguageModel_1.PostedLanguageModel.optional()),
|
|
39
41
|
tools: core.serialization.list(PostedUserDefinedToolSpec_1.PostedUserDefinedToolSpec.optional()).optional(),
|
|
40
42
|
builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
|
|
@@ -7,6 +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
|
+
custom_session_id?: string | null;
|
|
10
11
|
type: "assistant_end";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.AssistantEnd = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.AssistantEnd = core.serialization.object({
|
|
32
|
+
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
32
33
|
type: core.serialization.stringLiteral("assistant_end"),
|
|
33
34
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const BuiltInTool: core.serialization.Schema<serializers.empathicVoice.BuiltInTool.Raw, Hume.empathicVoice.BuiltInTool>;
|
|
8
|
+
export declare namespace BuiltInTool {
|
|
9
|
+
type Raw = "web_search";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BuiltInTool = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.BuiltInTool = core.serialization.stringLiteral("web_search");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BuiltInTool } from "./BuiltInTool";
|
|
8
|
+
export declare const BuiltinToolConfig: core.serialization.ObjectSchema<serializers.empathicVoice.BuiltinToolConfig.Raw, Hume.empathicVoice.BuiltinToolConfig>;
|
|
9
|
+
export declare namespace BuiltinToolConfig {
|
|
10
|
+
interface Raw {
|
|
11
|
+
fallback_content?: string | null;
|
|
12
|
+
name: BuiltInTool.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BuiltinToolConfig = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const BuiltInTool_1 = require("./BuiltInTool");
|
|
32
|
+
exports.BuiltinToolConfig = core.serialization.object({
|
|
33
|
+
fallbackContent: core.serialization.property("fallback_content", core.serialization.string().optional()),
|
|
34
|
+
name: BuiltInTool_1.BuiltInTool,
|
|
35
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { ContextType } from "./ContextType";
|
|
8
|
+
export declare const Context: core.serialization.ObjectSchema<serializers.empathicVoice.Context.Raw, Hume.empathicVoice.Context>;
|
|
9
|
+
export declare namespace Context {
|
|
10
|
+
interface Raw {
|
|
11
|
+
text: string;
|
|
12
|
+
type?: ContextType.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Context = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const ContextType_1 = require("./ContextType");
|
|
32
|
+
exports.Context = core.serialization.object({
|
|
33
|
+
text: core.serialization.string(),
|
|
34
|
+
type: ContextType_1.ContextType.optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ContextType: core.serialization.Schema<serializers.empathicVoice.ContextType.Raw, Hume.empathicVoice.ContextType>;
|
|
8
|
+
export declare namespace ContextType {
|
|
9
|
+
type Raw = "editable" | "persistent" | "temporary";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ContextType = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ContextType = core.serialization.enum_(["editable", "persistent", "temporary"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Hume from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const PauseAssistantMessage: core.serialization.ObjectSchema<serializers.empathicVoice.PauseAssistantMessage.Raw, Hume.empathicVoice.PauseAssistantMessage>;
|
|
8
|
+
export declare namespace PauseAssistantMessage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
custom_session_id?: string | null;
|
|
11
|
+
type?: "pause_assistant_message" | null;
|
|
12
|
+
}
|
|
13
|
+
}
|