hume 0.15.7 → 0.15.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.7",
49
- "User-Agent": "hume/0.15.7",
48
+ "X-Fern-SDK-Version": "0.15.8",
49
+ "User-Agent": "hume/0.15.8",
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) });
@@ -1,15 +1,21 @@
1
1
  import type * as Hume from "../../../index.js";
2
2
  /**
3
- * When provided, the output is a tool call.
3
+ * **Indicates that the supplemental LLM has detected a need to invoke the specified tool.** This message is only received for user-defined function tools.
4
+ *
5
+ * Contains the tool name, parameters (as a stringified JSON schema), whether a response is required from the developer (either in the form of a `ToolResponseMessage` or a `ToolErrorMessage`), the unique tool call ID for tracking the request and response, and the tool type. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
4
6
  */
5
7
  export interface ToolCallMessage {
6
8
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
7
9
  customSessionId?: string;
8
10
  /** Name of the tool called. */
9
11
  name: string;
10
- /** Parameters of the tool call. Is a stringified JSON schema. */
12
+ /**
13
+ * Parameters of the tool.
14
+ *
15
+ * 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.
16
+ */
11
17
  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). */
18
+ /** 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
19
  responseRequired: boolean;
14
20
  /**
15
21
  * The unique identifier for a specific tool call instance.
@@ -24,5 +30,5 @@ export interface ToolCallMessage {
24
30
  *
25
31
  * This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
26
32
  */
27
- type?: "tool_call";
33
+ type: "tool_call";
28
34
  }
@@ -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.7";
1
+ export declare const SDK_VERSION = "0.15.8";
@@ -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.7";
4
+ exports.SDK_VERSION = "0.15.8";
@@ -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.7",
13
- "User-Agent": "hume/0.15.7",
12
+ "X-Fern-SDK-Version": "0.15.8",
13
+ "User-Agent": "hume/0.15.8",
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) });
@@ -1,15 +1,21 @@
1
1
  import type * as Hume from "../../../index.mjs";
2
2
  /**
3
- * When provided, the output is a tool call.
3
+ * **Indicates that the supplemental LLM has detected a need to invoke the specified tool.** This message is only received for user-defined function tools.
4
+ *
5
+ * Contains the tool name, parameters (as a stringified JSON schema), whether a response is required from the developer (either in the form of a `ToolResponseMessage` or a `ToolErrorMessage`), the unique tool call ID for tracking the request and response, and the tool type. See our [Tool Use Guide](/docs/speech-to-speech-evi/features/tool-use) for further details.
4
6
  */
5
7
  export interface ToolCallMessage {
6
8
  /** Used to manage conversational state, correlate frontend and backend data, and persist conversations across EVI sessions. */
7
9
  customSessionId?: string;
8
10
  /** Name of the tool called. */
9
11
  name: string;
10
- /** Parameters of the tool call. Is a stringified JSON schema. */
12
+ /**
13
+ * Parameters of the tool.
14
+ *
15
+ * 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.
16
+ */
11
17
  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). */
18
+ /** 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
19
  responseRequired: boolean;
14
20
  /**
15
21
  * The unique identifier for a specific tool call instance.
@@ -24,5 +30,5 @@ export interface ToolCallMessage {
24
30
  *
25
31
  * This message indicates that the supplemental LLM has detected a need to invoke the specified tool.
26
32
  */
27
- type?: "tool_call";
33
+ type: "tool_call";
28
34
  }
@@ -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.7";
1
+ export declare const SDK_VERSION = "0.15.8";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.15.7";
1
+ export const SDK_VERSION = "0.15.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.15.7",
3
+ "version": "0.15.8",
4
4
  "private": false,
5
5
  "repository": "github:humeai/hume-typescript-sdk",
6
6
  "type": "commonjs",