phonic 0.30.21 → 0.30.22
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/tools/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/tools/client/Client.js +2 -0
- package/dist/cjs/api/resources/tools/client/requests/CreateToolRequest.d.ts +4 -0
- package/dist/cjs/api/resources/tools/client/requests/UpdateToolRequest.d.ts +2 -0
- package/dist/cjs/api/types/Tool.d.ts +2 -0
- 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/tools/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/tools/client/Client.mjs +2 -0
- package/dist/esm/api/resources/tools/client/requests/CreateToolRequest.d.mts +4 -0
- package/dist/esm/api/resources/tools/client/requests/UpdateToolRequest.d.mts +2 -0
- package/dist/esm/api/types/Tool.d.mts +2 -0
- 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
|
@@ -51,8 +51,8 @@ class PhonicClient {
|
|
|
51
51
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "phonic",
|
|
54
|
-
"X-Fern-SDK-Version": "0.30.
|
|
55
|
-
"User-Agent": "phonic/0.30.
|
|
54
|
+
"X-Fern-SDK-Version": "0.30.22",
|
|
55
|
+
"User-Agent": "phonic/0.30.22",
|
|
56
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
58
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -100,6 +100,7 @@ export declare class Tools {
|
|
|
100
100
|
* },
|
|
101
101
|
* endpoint_timeout_ms: 5000,
|
|
102
102
|
* require_speech_before_tool_call: false,
|
|
103
|
+
* wait_for_speech_before_tool_call: false,
|
|
103
104
|
* forbid_speech_after_tool_call: false
|
|
104
105
|
* })
|
|
105
106
|
*
|
|
@@ -118,6 +119,7 @@ export declare class Tools {
|
|
|
118
119
|
* }],
|
|
119
120
|
* tool_call_output_timeout_ms: 5000,
|
|
120
121
|
* require_speech_before_tool_call: false,
|
|
122
|
+
* wait_for_speech_before_tool_call: false,
|
|
121
123
|
* forbid_speech_after_tool_call: false
|
|
122
124
|
* })
|
|
123
125
|
*
|
|
@@ -188,6 +188,7 @@ class Tools {
|
|
|
188
188
|
* },
|
|
189
189
|
* endpoint_timeout_ms: 5000,
|
|
190
190
|
* require_speech_before_tool_call: false,
|
|
191
|
+
* wait_for_speech_before_tool_call: false,
|
|
191
192
|
* forbid_speech_after_tool_call: false
|
|
192
193
|
* })
|
|
193
194
|
*
|
|
@@ -206,6 +207,7 @@ class Tools {
|
|
|
206
207
|
* }],
|
|
207
208
|
* tool_call_output_timeout_ms: 5000,
|
|
208
209
|
* require_speech_before_tool_call: false,
|
|
210
|
+
* wait_for_speech_before_tool_call: false,
|
|
209
211
|
* forbid_speech_after_tool_call: false
|
|
210
212
|
* })
|
|
211
213
|
*
|
|
@@ -48,6 +48,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
48
48
|
* },
|
|
49
49
|
* endpoint_timeout_ms: 5000,
|
|
50
50
|
* require_speech_before_tool_call: false,
|
|
51
|
+
* wait_for_speech_before_tool_call: false,
|
|
51
52
|
* forbid_speech_after_tool_call: false
|
|
52
53
|
* }
|
|
53
54
|
*
|
|
@@ -66,6 +67,7 @@ import * as Phonic from "../../../../index.js";
|
|
|
66
67
|
* }],
|
|
67
68
|
* tool_call_output_timeout_ms: 5000,
|
|
68
69
|
* require_speech_before_tool_call: false,
|
|
70
|
+
* wait_for_speech_before_tool_call: false,
|
|
69
71
|
* forbid_speech_after_tool_call: false
|
|
70
72
|
* }
|
|
71
73
|
*
|
|
@@ -128,6 +130,8 @@ export interface CreateToolRequest {
|
|
|
128
130
|
agents_to_transfer_to?: string[];
|
|
129
131
|
/** When true, forces the agent to speak before executing the tool. */
|
|
130
132
|
require_speech_before_tool_call?: boolean;
|
|
133
|
+
/** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
|
|
134
|
+
wait_for_speech_before_tool_call?: boolean;
|
|
131
135
|
/** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
132
136
|
forbid_speech_after_tool_call?: boolean;
|
|
133
137
|
}
|
|
@@ -45,6 +45,8 @@ export interface UpdateToolRequest {
|
|
|
45
45
|
agents_to_transfer_to?: string[];
|
|
46
46
|
/** When true, forces the agent to speak before executing the tool. */
|
|
47
47
|
require_speech_before_tool_call?: boolean;
|
|
48
|
+
/** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
|
|
49
|
+
wait_for_speech_before_tool_call?: boolean;
|
|
48
50
|
/** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
49
51
|
forbid_speech_after_tool_call?: boolean;
|
|
50
52
|
}
|
|
@@ -34,6 +34,8 @@ export interface Tool {
|
|
|
34
34
|
agents_to_transfer_to?: string[];
|
|
35
35
|
/** When true, forces the agent to speak before executing the tool. */
|
|
36
36
|
require_speech_before_tool_call?: boolean;
|
|
37
|
+
/** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
|
|
38
|
+
wait_for_speech_before_tool_call?: boolean;
|
|
37
39
|
/** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
38
40
|
forbid_speech_after_tool_call?: boolean;
|
|
39
41
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.30.
|
|
1
|
+
export declare const SDK_VERSION = "0.30.22";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -15,8 +15,8 @@ export class PhonicClient {
|
|
|
15
15
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
16
16
|
"X-Fern-Language": "JavaScript",
|
|
17
17
|
"X-Fern-SDK-Name": "phonic",
|
|
18
|
-
"X-Fern-SDK-Version": "0.30.
|
|
19
|
-
"User-Agent": "phonic/0.30.
|
|
18
|
+
"X-Fern-SDK-Version": "0.30.22",
|
|
19
|
+
"User-Agent": "phonic/0.30.22",
|
|
20
20
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
21
21
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
22
22
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -100,6 +100,7 @@ export declare class Tools {
|
|
|
100
100
|
* },
|
|
101
101
|
* endpoint_timeout_ms: 5000,
|
|
102
102
|
* require_speech_before_tool_call: false,
|
|
103
|
+
* wait_for_speech_before_tool_call: false,
|
|
103
104
|
* forbid_speech_after_tool_call: false
|
|
104
105
|
* })
|
|
105
106
|
*
|
|
@@ -118,6 +119,7 @@ export declare class Tools {
|
|
|
118
119
|
* }],
|
|
119
120
|
* tool_call_output_timeout_ms: 5000,
|
|
120
121
|
* require_speech_before_tool_call: false,
|
|
122
|
+
* wait_for_speech_before_tool_call: false,
|
|
121
123
|
* forbid_speech_after_tool_call: false
|
|
122
124
|
* })
|
|
123
125
|
*
|
|
@@ -152,6 +152,7 @@ export class Tools {
|
|
|
152
152
|
* },
|
|
153
153
|
* endpoint_timeout_ms: 5000,
|
|
154
154
|
* require_speech_before_tool_call: false,
|
|
155
|
+
* wait_for_speech_before_tool_call: false,
|
|
155
156
|
* forbid_speech_after_tool_call: false
|
|
156
157
|
* })
|
|
157
158
|
*
|
|
@@ -170,6 +171,7 @@ export class Tools {
|
|
|
170
171
|
* }],
|
|
171
172
|
* tool_call_output_timeout_ms: 5000,
|
|
172
173
|
* require_speech_before_tool_call: false,
|
|
174
|
+
* wait_for_speech_before_tool_call: false,
|
|
173
175
|
* forbid_speech_after_tool_call: false
|
|
174
176
|
* })
|
|
175
177
|
*
|
|
@@ -48,6 +48,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
48
48
|
* },
|
|
49
49
|
* endpoint_timeout_ms: 5000,
|
|
50
50
|
* require_speech_before_tool_call: false,
|
|
51
|
+
* wait_for_speech_before_tool_call: false,
|
|
51
52
|
* forbid_speech_after_tool_call: false
|
|
52
53
|
* }
|
|
53
54
|
*
|
|
@@ -66,6 +67,7 @@ import * as Phonic from "../../../../index.mjs";
|
|
|
66
67
|
* }],
|
|
67
68
|
* tool_call_output_timeout_ms: 5000,
|
|
68
69
|
* require_speech_before_tool_call: false,
|
|
70
|
+
* wait_for_speech_before_tool_call: false,
|
|
69
71
|
* forbid_speech_after_tool_call: false
|
|
70
72
|
* }
|
|
71
73
|
*
|
|
@@ -128,6 +130,8 @@ export interface CreateToolRequest {
|
|
|
128
130
|
agents_to_transfer_to?: string[];
|
|
129
131
|
/** When true, forces the agent to speak before executing the tool. */
|
|
130
132
|
require_speech_before_tool_call?: boolean;
|
|
133
|
+
/** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
|
|
134
|
+
wait_for_speech_before_tool_call?: boolean;
|
|
131
135
|
/** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
132
136
|
forbid_speech_after_tool_call?: boolean;
|
|
133
137
|
}
|
|
@@ -45,6 +45,8 @@ export interface UpdateToolRequest {
|
|
|
45
45
|
agents_to_transfer_to?: string[];
|
|
46
46
|
/** When true, forces the agent to speak before executing the tool. */
|
|
47
47
|
require_speech_before_tool_call?: boolean;
|
|
48
|
+
/** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
|
|
49
|
+
wait_for_speech_before_tool_call?: boolean;
|
|
48
50
|
/** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
49
51
|
forbid_speech_after_tool_call?: boolean;
|
|
50
52
|
}
|
|
@@ -34,6 +34,8 @@ export interface Tool {
|
|
|
34
34
|
agents_to_transfer_to?: string[];
|
|
35
35
|
/** When true, forces the agent to speak before executing the tool. */
|
|
36
36
|
require_speech_before_tool_call?: boolean;
|
|
37
|
+
/** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
|
|
38
|
+
wait_for_speech_before_tool_call?: boolean;
|
|
37
39
|
/** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
|
|
38
40
|
forbid_speech_after_tool_call?: boolean;
|
|
39
41
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.30.
|
|
1
|
+
export declare const SDK_VERSION = "0.30.22";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.30.
|
|
1
|
+
export const SDK_VERSION = "0.30.22";
|