hume 0.15.3 → 0.15.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.
@@ -10,11 +10,11 @@ export declare namespace HumeClient {
10
10
  }
11
11
  export declare class HumeClient {
12
12
  protected readonly _options: HumeClient.Options;
13
- protected _tts: Tts | undefined;
14
13
  protected _empathicVoice: EmpathicVoice | undefined;
14
+ protected _tts: Tts | undefined;
15
15
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
16
16
  constructor(_options?: HumeClient.Options);
17
- get tts(): Tts;
18
17
  get empathicVoice(): EmpathicVoice;
18
+ get tts(): Tts;
19
19
  get expressionMeasurement(): ExpressionMeasurement;
20
20
  }
@@ -45,20 +45,20 @@ 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.3",
49
- "User-Agent": "hume/0.15.3",
48
+ "X-Fern-SDK-Version": "0.15.4",
49
+ "User-Agent": "hume/0.15.4",
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) });
53
53
  }
54
- get tts() {
55
- var _a;
56
- return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.Tts(this._options)));
57
- }
58
54
  get empathicVoice() {
59
55
  var _a;
60
56
  return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new Client_js_1.EmpathicVoice(this._options)));
61
57
  }
58
+ get tts() {
59
+ var _a;
60
+ return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Client_js_3.Tts(this._options)));
61
+ }
62
62
  get expressionMeasurement() {
63
63
  var _a;
64
64
  return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new Client_js_2.ExpressionMeasurement(this._options)));
@@ -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
  }
@@ -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.3";
1
+ export declare const SDK_VERSION = "0.15.4";
@@ -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.3";
4
+ exports.SDK_VERSION = "0.15.4";
@@ -10,11 +10,11 @@ export declare namespace HumeClient {
10
10
  }
11
11
  export declare class HumeClient {
12
12
  protected readonly _options: HumeClient.Options;
13
- protected _tts: Tts | undefined;
14
13
  protected _empathicVoice: EmpathicVoice | undefined;
14
+ protected _tts: Tts | undefined;
15
15
  protected _expressionMeasurement: ExpressionMeasurement | undefined;
16
16
  constructor(_options?: HumeClient.Options);
17
- get tts(): Tts;
18
17
  get empathicVoice(): EmpathicVoice;
18
+ get tts(): Tts;
19
19
  get expressionMeasurement(): ExpressionMeasurement;
20
20
  }
@@ -9,20 +9,20 @@ 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.3",
13
- "User-Agent": "hume/0.15.3",
12
+ "X-Fern-SDK-Version": "0.15.4",
13
+ "User-Agent": "hume/0.15.4",
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) });
17
17
  }
18
- get tts() {
19
- var _a;
20
- return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Tts(this._options)));
21
- }
22
18
  get empathicVoice() {
23
19
  var _a;
24
20
  return ((_a = this._empathicVoice) !== null && _a !== void 0 ? _a : (this._empathicVoice = new EmpathicVoice(this._options)));
25
21
  }
22
+ get tts() {
23
+ var _a;
24
+ return ((_a = this._tts) !== null && _a !== void 0 ? _a : (this._tts = new Tts(this._options)));
25
+ }
26
26
  get expressionMeasurement() {
27
27
  var _a;
28
28
  return ((_a = this._expressionMeasurement) !== null && _a !== void 0 ? _a : (this._expressionMeasurement = new ExpressionMeasurement(this._options)));
@@ -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
  }
@@ -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.3";
1
+ export declare const SDK_VERSION = "0.15.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.15.3";
1
+ export const SDK_VERSION = "0.15.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.15.3",
3
+ "version": "0.15.4",
4
4
  "private": false,
5
5
  "repository": "github:humeai/hume-typescript-sdk",
6
6
  "type": "commonjs",