hume 0.6.2 → 0.6.4
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 +130 -38
- package/.mock/definition/empathic-voice/chat.yml +1 -1
- package/.mock/definition/empathic-voice/chatGroups.yml +2 -2
- package/.mock/definition/empathic-voice/chats.yml +5 -2
- package/.mock/definition/empathic-voice/configs.yml +93 -77
- package/.mock/definition/empathic-voice/prompts.yml +9 -9
- package/.mock/definition/empathic-voice/tools.yml +9 -9
- package/.mock/definition/expression-measurement/batch.yml +0 -15
- package/.mock/fern.config.json +1 -1
- 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/chatGroups/client/Client.js +2 -2
- package/api/resources/empathicVoice/resources/chats/client/Client.js +6 -3
- package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -4
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -4
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -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/ChatMessage.d.ts +2 -0
- package/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -0
- package/api/resources/empathicVoice/types/Inference.d.ts +1 -0
- package/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -4
- package/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +1 -1
- package/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -0
- package/api/resources/empathicVoice/types/Tool.d.ts +2 -0
- package/api/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +5 -0
- package/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
- package/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- 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/chatGroups/client/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +6 -3
- package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -4
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -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/ChatMessage.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/Inference.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -4
- package/dist/api/resources/empathicVoice/types/ReturnPrompt.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnUserDefinedTool.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/SessionSettings.d.ts +6 -0
- package/dist/api/resources/empathicVoice/types/Tool.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +5 -0
- package/dist/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserInput.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserInterruption.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/dist/api/resources/empathicVoice/types/WebSocketError.d.ts +1 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -2
- package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -2
- package/package.json +1 -1
- package/reference.md +4893 -0
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -2
- package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -2
|
@@ -72,7 +72,7 @@ class Configs {
|
|
|
72
72
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
73
73
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
74
74
|
method: "GET",
|
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
queryParameters: _queryParams,
|
|
78
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -124,7 +124,7 @@ class Configs {
|
|
|
124
124
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
125
125
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/configs"),
|
|
126
126
|
method: "POST",
|
|
127
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
127
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
|
|
130
130
|
unrecognizedObjectKeys: "strip",
|
|
@@ -188,7 +188,7 @@ class Configs {
|
|
|
188
188
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
189
189
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
190
190
|
method: "GET",
|
|
191
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
191
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
192
192
|
contentType: "application/json",
|
|
193
193
|
queryParameters: _queryParams,
|
|
194
194
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -239,7 +239,7 @@ class Configs {
|
|
|
239
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
240
240
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
241
241
|
method: "POST",
|
|
242
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
242
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
243
243
|
contentType: "application/json",
|
|
244
244
|
body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
245
245
|
unrecognizedObjectKeys: "strip",
|
|
@@ -291,7 +291,7 @@ class Configs {
|
|
|
291
291
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
292
292
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
293
293
|
method: "DELETE",
|
|
294
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
294
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
295
295
|
contentType: "application/json",
|
|
296
296
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
297
297
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -337,7 +337,7 @@ class Configs {
|
|
|
337
337
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
338
338
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}`),
|
|
339
339
|
method: "PATCH",
|
|
340
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
340
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
341
341
|
contentType: "application/json",
|
|
342
342
|
body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
|
|
343
343
|
unrecognizedObjectKeys: "strip",
|
|
@@ -385,7 +385,7 @@ class Configs {
|
|
|
385
385
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
386
386
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
387
387
|
method: "GET",
|
|
388
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
388
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
389
389
|
contentType: "application/json",
|
|
390
390
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
391
391
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -435,7 +435,7 @@ class Configs {
|
|
|
435
435
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
436
436
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
437
437
|
method: "DELETE",
|
|
438
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
438
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
439
439
|
contentType: "application/json",
|
|
440
440
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
441
441
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -480,7 +480,7 @@ class Configs {
|
|
|
480
480
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
481
481
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/configs/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
482
482
|
method: "PATCH",
|
|
483
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
483
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
484
484
|
contentType: "application/json",
|
|
485
485
|
body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
|
|
486
486
|
unrecognizedObjectKeys: "strip",
|
|
@@ -16,8 +16,6 @@ export interface PostedConfig {
|
|
|
16
16
|
prompt?: Hume.empathicVoice.PostedPromptSpec;
|
|
17
17
|
voice?: Hume.empathicVoice.PostedVoice;
|
|
18
18
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/** Built-in tool specification for a Config. */
|
|
22
|
-
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
19
|
+
tools?: Hume.empathicVoice.PostedUserDefinedToolSpec;
|
|
20
|
+
builtinTools?: Hume.empathicVoice.PostedBuiltinTool;
|
|
23
21
|
}
|
package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export interface PostedConfigVersion {
|
|
|
12
12
|
prompt?: Hume.empathicVoice.PostedPromptSpec;
|
|
13
13
|
voice?: Hume.empathicVoice.PostedVoice;
|
|
14
14
|
languageModel?: Hume.empathicVoice.PostedLanguageModel;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/** Built-in tool specification for a Config. */
|
|
18
|
-
builtinTools?: (Hume.empathicVoice.PostedBuiltinTool | undefined)[];
|
|
15
|
+
tools?: Hume.empathicVoice.PostedUserDefinedToolSpec;
|
|
16
|
+
builtinTools?: Hume.empathicVoice.PostedBuiltinTool;
|
|
19
17
|
}
|
|
@@ -72,7 +72,7 @@ class Prompts {
|
|
|
72
72
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
73
73
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
|
|
74
74
|
method: "GET",
|
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
queryParameters: _queryParams,
|
|
78
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -125,7 +125,7 @@ class Prompts {
|
|
|
125
125
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
126
126
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/prompts"),
|
|
127
127
|
method: "POST",
|
|
128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
131
131
|
unrecognizedObjectKeys: "strip",
|
|
@@ -189,7 +189,7 @@ class Prompts {
|
|
|
189
189
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
190
190
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
191
191
|
method: "GET",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
queryParameters: _queryParams,
|
|
195
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -242,7 +242,7 @@ class Prompts {
|
|
|
242
242
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
243
243
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
244
244
|
method: "POST",
|
|
245
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
245
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
246
246
|
contentType: "application/json",
|
|
247
247
|
body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
248
248
|
unrecognizedObjectKeys: "strip",
|
|
@@ -294,7 +294,7 @@ class Prompts {
|
|
|
294
294
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
295
295
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
296
296
|
method: "DELETE",
|
|
297
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
297
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
298
298
|
contentType: "application/json",
|
|
299
299
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
300
300
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -340,7 +340,7 @@ class Prompts {
|
|
|
340
340
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
341
341
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}`),
|
|
342
342
|
method: "PATCH",
|
|
343
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
343
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
344
344
|
contentType: "application/json",
|
|
345
345
|
body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
346
346
|
unrecognizedObjectKeys: "strip",
|
|
@@ -388,7 +388,7 @@ class Prompts {
|
|
|
388
388
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
389
389
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
390
390
|
method: "GET",
|
|
391
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
391
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
392
392
|
contentType: "application/json",
|
|
393
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
394
394
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -438,7 +438,7 @@ class Prompts {
|
|
|
438
438
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
439
439
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
440
440
|
method: "DELETE",
|
|
441
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
441
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
444
444
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -483,7 +483,7 @@ class Prompts {
|
|
|
483
483
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
484
484
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/prompts/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
485
485
|
method: "PATCH",
|
|
486
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
486
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
487
487
|
contentType: "application/json",
|
|
488
488
|
body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
489
489
|
unrecognizedObjectKeys: "strip",
|
|
@@ -75,7 +75,7 @@ class Tools {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -131,7 +131,7 @@ class Tools {
|
|
|
131
131
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
132
132
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/tools"),
|
|
133
133
|
method: "POST",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
137
137
|
unrecognizedObjectKeys: "strip",
|
|
@@ -195,7 +195,7 @@ class Tools {
|
|
|
195
195
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
196
196
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
197
197
|
method: "GET",
|
|
198
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
198
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
queryParameters: _queryParams,
|
|
201
201
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -251,7 +251,7 @@ class Tools {
|
|
|
251
251
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
252
252
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
253
253
|
method: "POST",
|
|
254
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
254
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
255
255
|
contentType: "application/json",
|
|
256
256
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
257
257
|
unrecognizedObjectKeys: "strip",
|
|
@@ -303,7 +303,7 @@ class Tools {
|
|
|
303
303
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
304
304
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
305
305
|
method: "DELETE",
|
|
306
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
306
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
309
309
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -349,7 +349,7 @@ class Tools {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}`),
|
|
351
351
|
method: "PATCH",
|
|
352
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
352
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
353
353
|
contentType: "application/json",
|
|
354
354
|
body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
355
355
|
unrecognizedObjectKeys: "strip",
|
|
@@ -397,7 +397,7 @@ class Tools {
|
|
|
397
397
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
398
398
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
399
399
|
method: "GET",
|
|
400
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
400
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
401
401
|
contentType: "application/json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
403
403
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -447,7 +447,7 @@ class Tools {
|
|
|
447
447
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
448
448
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
449
449
|
method: "DELETE",
|
|
450
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
450
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
451
|
contentType: "application/json",
|
|
452
452
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
453
453
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -494,7 +494,7 @@ class Tools {
|
|
|
494
494
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
495
495
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/tools/${encodeURIComponent(id)}/version/${encodeURIComponent(version)}`),
|
|
496
496
|
method: "PATCH",
|
|
497
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
497
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
498
498
|
contentType: "application/json",
|
|
499
499
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
500
500
|
unrecognizedObjectKeys: "strip",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* When provided, the output is an assistant end message.
|
|
6
6
|
*/
|
|
7
7
|
export interface AssistantEnd {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** The type of message sent through the socket; for an Assistant End message, this must be 'assistant_end'. */
|
|
10
11
|
type: "assistant_end";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* When provided, the input is spoken by EVI.
|
|
6
6
|
*/
|
|
7
7
|
export interface AssistantInput {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** Text to be synthesized. */
|
|
10
11
|
text: string;
|
|
@@ -6,6 +6,7 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is an assistant message.
|
|
7
7
|
*/
|
|
8
8
|
export interface AssistantMessage {
|
|
9
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
9
10
|
customSessionId?: string;
|
|
10
11
|
/** Indicates if this message was constructed from a text input message. */
|
|
11
12
|
fromText: boolean;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* When provided, the input is audio.
|
|
6
6
|
*/
|
|
7
7
|
export interface AudioInput {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** Base64 encoded audio input. */
|
|
10
11
|
data: string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* When provided, the output is audio.
|
|
6
6
|
*/
|
|
7
7
|
export interface AudioOutput {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** Base64 encoded audio output. */
|
|
10
11
|
data: string;
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface ChatMessage {
|
|
6
|
+
/** Transcript of the message. */
|
|
6
7
|
content?: string;
|
|
7
8
|
/** Role of who is providing the message. */
|
|
8
9
|
role: Hume.empathicVoice.Role;
|
|
10
|
+
/** Function call name and arguments. */
|
|
9
11
|
toolCall?: Hume.empathicVoice.ToolCallMessage;
|
|
10
12
|
/** Function call response from client. */
|
|
11
13
|
toolResult?: Hume.empathicVoice.ChatMessageToolResult;
|
|
@@ -9,6 +9,7 @@ export interface ChatMetadata {
|
|
|
9
9
|
chatGroupId: string;
|
|
10
10
|
/** ID of the chat. */
|
|
11
11
|
chatId: string;
|
|
12
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
12
13
|
customSessionId?: string;
|
|
13
14
|
/** The type of message sent through the socket; for a Chat Metadata message, this must be 'chat_metadata'. */
|
|
14
15
|
type: "chat_metadata";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Pause responses from EVI. Chat history is still saved and sent after resuming.
|
|
6
6
|
*/
|
|
7
7
|
export interface PauseAssistantMessage {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** The type of message sent through the socket; for a Pause Assistant message, this must be 'pause_assistant_message'. */
|
|
10
11
|
type?: "pause_assistant_message";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Resume responses from EVI. Chat history sent while paused will now be sent.
|
|
6
6
|
*/
|
|
7
7
|
export interface ResumeAssistantMessage {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** The type of message sent through the socket; for a Resume Assistant message, this must be 'resume_assistant_message'. */
|
|
10
11
|
type?: "resume_assistant_message";
|
|
@@ -21,8 +21,6 @@ export interface ReturnConfig {
|
|
|
21
21
|
prompt?: Hume.empathicVoice.ReturnPrompt;
|
|
22
22
|
voice?: Hume.empathicVoice.ReturnVoice;
|
|
23
23
|
languageModel?: Hume.empathicVoice.ReturnLanguageModel;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/** List of built-in tools associated with this config */
|
|
27
|
-
builtinTools?: (Hume.empathicVoice.ReturnBuiltinTool | undefined)[];
|
|
24
|
+
tools?: Hume.empathicVoice.ReturnUserDefinedTool;
|
|
25
|
+
builtinTools?: Hume.empathicVoice.ReturnBuiltinTool;
|
|
28
26
|
}
|
|
@@ -9,7 +9,7 @@ export interface ReturnPrompt {
|
|
|
9
9
|
id: string;
|
|
10
10
|
/** Version number for a Prompt. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
11
11
|
version: number;
|
|
12
|
-
/**
|
|
12
|
+
/** Indicates whether this prompt is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
|
|
13
13
|
versionType: string;
|
|
14
14
|
/** Description that is appended to a specific version of a Prompt. */
|
|
15
15
|
versionDescription?: string;
|
|
@@ -11,7 +11,7 @@ export interface ReturnUserDefinedTool {
|
|
|
11
11
|
id: string;
|
|
12
12
|
/** Version number for a Tool. Version numbers should be integers. The combination of configId and version number is unique. */
|
|
13
13
|
version: number;
|
|
14
|
-
/**
|
|
14
|
+
/** Indicates whether this tool is using a fixed version number or auto-updating to the latest version. Values from the VersionType enum. */
|
|
15
15
|
versionType: string;
|
|
16
16
|
/** Description that is appended to a specific version of a Tool. */
|
|
17
17
|
versionDescription?: string;
|
|
@@ -6,11 +6,17 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* Settings for this chat session.
|
|
7
7
|
*/
|
|
8
8
|
export interface SessionSettings {
|
|
9
|
+
/** Audio configuration. */
|
|
9
10
|
audio?: Hume.empathicVoice.AudioConfiguration;
|
|
11
|
+
/** List of builtin tools to enable. */
|
|
10
12
|
builtinTools?: Hume.empathicVoice.BuiltinToolConfig[];
|
|
13
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
11
14
|
customSessionId?: string;
|
|
15
|
+
/** Third party API key for the language model used for non-Hume models. */
|
|
12
16
|
languageModelApiKey?: string;
|
|
17
|
+
/** Instructions for how the system should respond to the user. Set to null to use the default system prompt. */
|
|
13
18
|
systemPrompt?: string;
|
|
19
|
+
/** List of tools to enable. */
|
|
14
20
|
tools?: Hume.empathicVoice.Tool[];
|
|
15
21
|
/** The type of message sent through the socket; for a Session Settings message, this must be 'session_settings'. */
|
|
16
22
|
type: "session_settings";
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Hume from "../../../index";
|
|
5
5
|
export interface Tool {
|
|
6
|
+
/** Description of the function. */
|
|
6
7
|
description?: string;
|
|
8
|
+
/** Fallback content of the tool, passed to the LLM if the function call response fails. */
|
|
7
9
|
fallbackContent?: string;
|
|
8
10
|
/** Name of the tool. */
|
|
9
11
|
name: string;
|
|
@@ -6,6 +6,7 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a tool call.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolCallMessage {
|
|
9
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
9
10
|
customSessionId?: string;
|
|
10
11
|
/** Name of the tool called. */
|
|
11
12
|
name: string;
|
|
@@ -6,14 +6,19 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a function call error.
|
|
7
7
|
*/
|
|
8
8
|
export interface ToolErrorMessage {
|
|
9
|
+
/** Error code. */
|
|
9
10
|
code?: string;
|
|
11
|
+
/** The content passed to the LLM in place of the tool response. */
|
|
10
12
|
content?: string;
|
|
13
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
11
14
|
customSessionId?: string;
|
|
12
15
|
/** Error message from the tool call, not exposed to the LLM or user. */
|
|
13
16
|
error: string;
|
|
17
|
+
/** Error level. */
|
|
14
18
|
level?: Hume.empathicVoice.ErrorLevel;
|
|
15
19
|
/** ID of the tool call. */
|
|
16
20
|
toolCallId: string;
|
|
21
|
+
/** Type of tool called, either 'builtin' or 'function'. */
|
|
17
22
|
toolType?: Hume.empathicVoice.ToolType;
|
|
18
23
|
/** The type of message sent through the socket; for a Tool Error message, this must be 'tool_error'. */
|
|
19
24
|
type?: "tool_error";
|
|
@@ -8,6 +8,7 @@ import * as Hume from "../../../index";
|
|
|
8
8
|
export interface ToolResponseMessage {
|
|
9
9
|
/** Return value of the tool call. */
|
|
10
10
|
content: string;
|
|
11
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
11
12
|
customSessionId?: string;
|
|
12
13
|
/** ID of the tool call. */
|
|
13
14
|
toolCallId: string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* User text to insert into the conversation.
|
|
6
6
|
*/
|
|
7
7
|
export interface UserInput {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** User text to insert into the conversation. */
|
|
10
11
|
text: string;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* When provided, the output is an interruption.
|
|
6
6
|
*/
|
|
7
7
|
export interface UserInterruption {
|
|
8
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
8
9
|
customSessionId?: string;
|
|
9
10
|
/** Unix timestamp of the detected user interruption. */
|
|
10
11
|
time: number;
|
|
@@ -6,6 +6,7 @@ import * as Hume from "../../../index";
|
|
|
6
6
|
* When provided, the output is a user message.
|
|
7
7
|
*/
|
|
8
8
|
export interface UserMessage {
|
|
9
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
9
10
|
customSessionId?: string;
|
|
10
11
|
/** Indicates if this message was constructed from a text input message. */
|
|
11
12
|
fromText: boolean;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
export interface WebSocketError {
|
|
8
8
|
/** Error code. */
|
|
9
9
|
code: string;
|
|
10
|
+
/** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
|
|
10
11
|
customSessionId?: string;
|
|
11
12
|
/** Error message. */
|
|
12
13
|
message: string;
|
|
@@ -96,7 +96,7 @@ class Batch {
|
|
|
96
96
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
97
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
98
98
|
method: "GET",
|
|
99
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
99
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
queryParameters: _queryParams,
|
|
102
102
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -151,7 +151,7 @@ class Batch {
|
|
|
151
151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
152
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
153
153
|
method: "POST",
|
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
|
|
157
157
|
unrecognizedObjectKeys: "strip",
|
|
@@ -205,7 +205,7 @@ class Batch {
|
|
|
205
205
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
206
206
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
|
|
207
207
|
method: "GET",
|
|
208
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
208
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
211
211
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -256,7 +256,7 @@ class Batch {
|
|
|
256
256
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
257
257
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
|
|
258
258
|
method: "GET",
|
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
262
262
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -301,7 +301,7 @@ class Batch {
|
|
|
301
301
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
302
302
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
|
|
303
303
|
method: "GET",
|
|
304
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
304
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
305
305
|
contentType: "application/json",
|
|
306
306
|
responseType: "streaming",
|
|
307
307
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -356,7 +356,7 @@ class Batch {
|
|
|
356
356
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
357
357
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
|
|
358
358
|
method: "POST",
|
|
359
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.
|
|
359
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.6.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
|
|
360
360
|
body: yield _maybeEncodedRequest.getBody(),
|
|
361
361
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
362
362
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|