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.
@@ -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.5",
49
- "User-Agent": "hume/0.15.5",
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
- /** Parameters of the tool call. Is a stringified JSON schema. */
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/empathic-voice-interface-evi/chat/chat#send.Tool%20Response%20Message.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Error%20Message.type). */
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?: "tool_call";
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 | null | undefined>>;
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
- var _a;
324
- const apiKeyValue = core.Supplier.get(this._options.apiKey);
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
  }
@@ -11,6 +11,6 @@ export declare namespace ToolCallMessage {
11
11
  response_required: boolean;
12
12
  tool_call_id: string;
13
13
  tool_type: ToolType.Raw;
14
- type?: "tool_call" | null;
14
+ type: "tool_call";
15
15
  }
16
16
  }
@@ -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").optional(),
47
+ type: core.serialization.stringLiteral("tool_call"),
48
48
  });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.15.5";
1
+ export declare const SDK_VERSION = "0.15.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.15.5";
4
+ exports.SDK_VERSION = "0.15.6";
@@ -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.5",
13
- "User-Agent": "hume/0.15.5",
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
- /** Parameters of the tool call. Is a stringified JSON schema. */
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/empathic-voice-interface-evi/chat/chat#send.Tool%20Response%20Message.type) or a [Tool Error message](/reference/empathic-voice-interface-evi/chat/chat#send.Tool%20Error%20Message.type). */
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?: "tool_call";
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 | null | undefined>>;
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
- var _a;
288
- const apiKeyValue = core.Supplier.get(this._options.apiKey);
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
  }
@@ -11,6 +11,6 @@ export declare namespace ToolCallMessage {
11
11
  response_required: boolean;
12
12
  tool_call_id: string;
13
13
  tool_type: ToolType.Raw;
14
- type?: "tool_call" | null;
14
+ type: "tool_call";
15
15
  }
16
16
  }
@@ -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").optional(),
11
+ type: core.serialization.stringLiteral("tool_call"),
12
12
  });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.15.5";
1
+ export declare const SDK_VERSION = "0.15.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.15.5";
1
+ export const SDK_VERSION = "0.15.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
4
4
  "private": false,
5
5
  "repository": "github:humeai/hume-typescript-sdk",
6
6
  "type": "commonjs",