hume 0.15.5 → 0.15.6
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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +7 -3
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +2 -7
- package/dist/cjs/serialization/resources/empathicVoice/types/ToolCallMessage.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ToolCallMessage.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +7 -3
- package/dist/esm/api/resources/tts/resources/voices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +2 -7
- package/dist/esm/serialization/resources/empathicVoice/types/ToolCallMessage.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ToolCallMessage.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -45,8 +45,8 @@ class HumeClient {
|
|
|
45
45
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
|
|
46
46
|
"X-Fern-Language": "JavaScript",
|
|
47
47
|
"X-Fern-SDK-Name": "hume",
|
|
48
|
-
"X-Fern-SDK-Version": "0.15.
|
|
49
|
-
"User-Agent": "hume/0.15.
|
|
48
|
+
"X-Fern-SDK-Version": "0.15.6",
|
|
49
|
+
"User-Agent": "hume/0.15.6",
|
|
50
50
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
51
51
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
52
52
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -7,9 +7,13 @@ export interface ToolCallMessage {
|
|
|
7
7
|
customSessionId?: string;
|
|
8
8
|
/** Name of the tool called. */
|
|
9
9
|
name: string;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Parameters of the tool.
|
|
12
|
+
*
|
|
13
|
+
* These parameters define the inputs needed for the tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
|
|
14
|
+
*/
|
|
11
15
|
parameters: string;
|
|
12
|
-
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/
|
|
16
|
+
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage) or a [Tool Error message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage). */
|
|
13
17
|
responseRequired: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* The unique identifier for a specific tool call instance.
|
|
@@ -24,5 +28,5 @@ export interface ToolCallMessage {
|
|
|
24
28
|
*
|
|
25
29
|
* This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
|
|
26
30
|
*/
|
|
27
|
-
type
|
|
31
|
+
type: "tool_call";
|
|
28
32
|
}
|
|
@@ -57,5 +57,5 @@ export declare class Voices {
|
|
|
57
57
|
*/
|
|
58
58
|
delete(request: Hume.tts.VoicesDeleteRequest, requestOptions?: Voices.RequestOptions): core.HttpResponsePromise<void>;
|
|
59
59
|
private __delete;
|
|
60
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string |
|
|
60
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
61
61
|
}
|
|
@@ -320,13 +320,8 @@ class Voices {
|
|
|
320
320
|
}
|
|
321
321
|
_getCustomAuthorizationHeaders() {
|
|
322
322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
// This `authHeaderValue` is manually added as if you don't provide it it will
|
|
326
|
-
// be omitted from the headers which means it won't reach the logic in ws.ts that
|
|
327
|
-
// extracts values from the headers and adds them to query parameters.
|
|
328
|
-
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
|
|
329
|
-
return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
|
|
323
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
324
|
+
return { "X-Hume-Api-Key": apiKeyValue };
|
|
330
325
|
});
|
|
331
326
|
}
|
|
332
327
|
}
|
|
@@ -44,5 +44,5 @@ exports.ToolCallMessage = core.serialization.object({
|
|
|
44
44
|
responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
|
|
45
45
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
46
46
|
toolType: core.serialization.property("tool_type", ToolType_js_1.ToolType),
|
|
47
|
-
type: core.serialization.stringLiteral("tool_call")
|
|
47
|
+
type: core.serialization.stringLiteral("tool_call"),
|
|
48
48
|
});
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.15.
|
|
1
|
+
export declare const SDK_VERSION = "0.15.6";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -9,8 +9,8 @@ export class HumeClient {
|
|
|
9
9
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
|
|
10
10
|
"X-Fern-Language": "JavaScript",
|
|
11
11
|
"X-Fern-SDK-Name": "hume",
|
|
12
|
-
"X-Fern-SDK-Version": "0.15.
|
|
13
|
-
"User-Agent": "hume/0.15.
|
|
12
|
+
"X-Fern-SDK-Version": "0.15.6",
|
|
13
|
+
"User-Agent": "hume/0.15.6",
|
|
14
14
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
15
15
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
16
16
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -7,9 +7,13 @@ export interface ToolCallMessage {
|
|
|
7
7
|
customSessionId?: string;
|
|
8
8
|
/** Name of the tool called. */
|
|
9
9
|
name: string;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Parameters of the tool.
|
|
12
|
+
*
|
|
13
|
+
* These parameters define the inputs needed for the tool's execution, including the expected data type and description for each input field. Structured as a stringified JSON schema, this format ensures the tool receives data in the expected format.
|
|
14
|
+
*/
|
|
11
15
|
parameters: string;
|
|
12
|
-
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/
|
|
16
|
+
/** Indicates whether a response to the tool call is required from the developer, either in the form of a [Tool Response message](/reference/speech-to-speech-evi/chat#send.ToolResponseMessage) or a [Tool Error message](/reference/speech-to-speech-evi/chat#send.ToolErrorMessage). */
|
|
13
17
|
responseRequired: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* The unique identifier for a specific tool call instance.
|
|
@@ -24,5 +28,5 @@ export interface ToolCallMessage {
|
|
|
24
28
|
*
|
|
25
29
|
* This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
|
|
26
30
|
*/
|
|
27
|
-
type
|
|
31
|
+
type: "tool_call";
|
|
28
32
|
}
|
|
@@ -57,5 +57,5 @@ export declare class Voices {
|
|
|
57
57
|
*/
|
|
58
58
|
delete(request: Hume.tts.VoicesDeleteRequest, requestOptions?: Voices.RequestOptions): core.HttpResponsePromise<void>;
|
|
59
59
|
private __delete;
|
|
60
|
-
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string |
|
|
60
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
61
61
|
}
|
|
@@ -284,13 +284,8 @@ export class Voices {
|
|
|
284
284
|
}
|
|
285
285
|
_getCustomAuthorizationHeaders() {
|
|
286
286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
// This `authHeaderValue` is manually added as if you don't provide it it will
|
|
290
|
-
// be omitted from the headers which means it won't reach the logic in ws.ts that
|
|
291
|
-
// extracts values from the headers and adds them to query parameters.
|
|
292
|
-
const authHeaderValue = core.Supplier.get((_a = this._options.headers) === null || _a === void 0 ? void 0 : _a.authorization);
|
|
293
|
-
return { "X-Hume-Api-Key": apiKeyValue, Authorization: authHeaderValue };
|
|
287
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
288
|
+
return { "X-Hume-Api-Key": apiKeyValue };
|
|
294
289
|
});
|
|
295
290
|
}
|
|
296
291
|
}
|
|
@@ -8,5 +8,5 @@ export const ToolCallMessage = core.serialization.object({
|
|
|
8
8
|
responseRequired: core.serialization.property("response_required", core.serialization.boolean()),
|
|
9
9
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
10
10
|
toolType: core.serialization.property("tool_type", ToolType),
|
|
11
|
-
type: core.serialization.stringLiteral("tool_call")
|
|
11
|
+
type: core.serialization.stringLiteral("tool_call"),
|
|
12
12
|
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.15.
|
|
1
|
+
export declare const SDK_VERSION = "0.15.6";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.15.
|
|
1
|
+
export const SDK_VERSION = "0.15.6";
|