@roarkanalytics/sdk 6.2.0 → 7.1.0
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/CHANGELOG.md +28 -0
- package/client.d.mts +9 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -0
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/lib/config.d.mts +12 -0
- package/lib/config.d.mts.map +1 -1
- package/lib/config.d.ts +12 -0
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +11 -1
- package/lib/config.js.map +1 -1
- package/lib/config.mjs +9 -0
- package/lib/config.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calendar-connection.d.mts +897 -0
- package/resources/calendar-connection.d.mts.map +1 -0
- package/resources/calendar-connection.d.ts +897 -0
- package/resources/calendar-connection.d.ts.map +1 -0
- package/resources/calendar-connection.js +143 -0
- package/resources/calendar-connection.js.map +1 -0
- package/resources/calendar-connection.mjs +139 -0
- package/resources/calendar-connection.mjs.map +1 -0
- package/resources/call.d.mts +2 -0
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +508 -27
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +508 -27
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +49 -9
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +49 -9
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/http-request-definition.d.mts +4 -4
- package/resources/http-request-definition.d.mts.map +1 -1
- package/resources/http-request-definition.d.ts +4 -4
- package/resources/http-request-definition.d.ts.map +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/metric-variant.d.mts +6 -0
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +6 -0
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +93 -0
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +93 -0
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-audio-clip.d.mts +44 -0
- package/resources/simulation-audio-clip.d.mts.map +1 -0
- package/resources/simulation-audio-clip.d.ts +44 -0
- package/resources/simulation-audio-clip.d.ts.map +1 -0
- package/resources/simulation-audio-clip.js +23 -0
- package/resources/simulation-audio-clip.js.map +1 -0
- package/resources/simulation-audio-clip.mjs +19 -0
- package/resources/simulation-audio-clip.mjs.map +1 -0
- package/resources/tool.d.mts +671 -0
- package/resources/tool.d.mts.map +1 -0
- package/resources/tool.d.ts +671 -0
- package/resources/tool.d.ts.map +1 -0
- package/resources/tool.js +83 -0
- package/resources/tool.js.map +1 -0
- package/resources/tool.mjs +79 -0
- package/resources/tool.mjs.map +1 -0
- package/src/client.ts +66 -0
- package/src/lib/config.ts +22 -0
- package/src/resources/calendar-connection.ts +1103 -0
- package/src/resources/call.ts +4 -0
- package/src/resources/config.ts +948 -22
- package/src/resources/customer-flow.ts +79 -11
- package/src/resources/http-request-definition.ts +4 -4
- package/src/resources/index.ts +27 -0
- package/src/resources/metric-variant.ts +7 -0
- package/src/resources/metric.ts +111 -0
- package/src/resources/simulation-audio-clip.ts +63 -0
- package/src/resources/tool.ts +884 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Tool extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a tool and declares its first version. A tool only recorded from calls
|
|
7
|
+
* under the same name is adopted; one already declared returns 409. Give it a
|
|
8
|
+
* `runtime` for a hosted agent to call your endpoint. Header values are returned
|
|
9
|
+
* on read, so keep secrets out of them.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const tool = await client.tool.create({
|
|
14
|
+
* description: 'x',
|
|
15
|
+
* name: 'book_appointment',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: ToolCreateParams, options?: RequestOptions): APIPromise<ToolCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Replaces the tool: its name, scope, inputs, description, grading hints and
|
|
22
|
+
* runtime. A field left out is cleared, so omitting agentId makes the tool
|
|
23
|
+
* project-wide. A change declares a new version; agent versions pinned to an older
|
|
24
|
+
* one keep it.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const tool = await client.tool.update(
|
|
29
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
30
|
+
* { description: 'x', name: 'book_appointment' },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
update(toolID: string, body: ToolUpdateParams, options?: RequestOptions): APIPromise<ToolUpdateResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* The project's tools and the built-in ones, each with its latest version: inputs,
|
|
37
|
+
* description and, for a tool a hosted agent runs, its request. Attach one to an
|
|
38
|
+
* agent draft by id.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const tools = await client.tool.list();
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
list(query?: ToolListParams | null | undefined, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Deletes a tool no agent version uses. A tool an agent version uses returns 409.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const tool = await client.tool.delete(
|
|
52
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
delete(toolID: string, options?: RequestOptions): APIPromise<ToolDeleteResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Get a tool
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const response = await client.tool.getByID(
|
|
63
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
getByID(toolID: string, options?: RequestOptions): APIPromise<ToolGetByIDResponse>;
|
|
68
|
+
}
|
|
69
|
+
export interface ToolCreateResponse {
|
|
70
|
+
data: ToolCreateResponse.Data;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace ToolCreateResponse {
|
|
73
|
+
interface Data {
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* The agent the tool is scoped to; null for the project
|
|
77
|
+
*/
|
|
78
|
+
agentId: string | null;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
description: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* How it should handle the result, for grading
|
|
83
|
+
*/
|
|
84
|
+
expectedResult: string | null;
|
|
85
|
+
inputs: Array<Data.Input>;
|
|
86
|
+
/**
|
|
87
|
+
* When the agent should call it, for grading
|
|
88
|
+
*/
|
|
89
|
+
invocationCriteria: string | null;
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* What a hosted agent sends and says when it calls the tool
|
|
93
|
+
*/
|
|
94
|
+
runtime: Data.Runtime | null;
|
|
95
|
+
/**
|
|
96
|
+
* SYSTEM for a built-in tool every project can attach
|
|
97
|
+
*/
|
|
98
|
+
source: 'CUSTOM' | 'SYSTEM';
|
|
99
|
+
/**
|
|
100
|
+
* The stable key of a built-in tool, such as dtmf
|
|
101
|
+
*/
|
|
102
|
+
systemKey: string | null;
|
|
103
|
+
updatedAt: string;
|
|
104
|
+
/**
|
|
105
|
+
* The latest version; null before any is declared
|
|
106
|
+
*/
|
|
107
|
+
version: number | null;
|
|
108
|
+
}
|
|
109
|
+
namespace Data {
|
|
110
|
+
interface Input {
|
|
111
|
+
/**
|
|
112
|
+
* What the input is, so the agent fills it in right
|
|
113
|
+
*/
|
|
114
|
+
description: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* The input name, as the agent passes it
|
|
117
|
+
*/
|
|
118
|
+
name: string;
|
|
119
|
+
/**
|
|
120
|
+
* The agent must pass it
|
|
121
|
+
*/
|
|
122
|
+
required: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* string, number or boolean
|
|
125
|
+
*/
|
|
126
|
+
type: 'string' | 'number' | 'boolean';
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* What a hosted agent sends and says when it calls the tool
|
|
130
|
+
*/
|
|
131
|
+
interface Runtime {
|
|
132
|
+
/**
|
|
133
|
+
* The tool books, cancels or sends something: its call is not abandoned when the
|
|
134
|
+
* caller interrupts, and each request carries an Idempotency-Key.
|
|
135
|
+
*/
|
|
136
|
+
changesData: boolean;
|
|
137
|
+
messages: Runtime.Messages;
|
|
138
|
+
request: Runtime.Request;
|
|
139
|
+
/**
|
|
140
|
+
* Dot paths into the JSON response the agent is given. Null gives it the whole
|
|
141
|
+
* response.
|
|
142
|
+
*/
|
|
143
|
+
responseFields: Array<string> | null;
|
|
144
|
+
}
|
|
145
|
+
namespace Runtime {
|
|
146
|
+
interface Messages {
|
|
147
|
+
/**
|
|
148
|
+
* Said as the request goes out
|
|
149
|
+
*/
|
|
150
|
+
before: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* Given to the agent to say when the request fails
|
|
153
|
+
*/
|
|
154
|
+
failure: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Said once if the request is slow
|
|
157
|
+
*/
|
|
158
|
+
slow: string | null;
|
|
159
|
+
}
|
|
160
|
+
interface Request {
|
|
161
|
+
/**
|
|
162
|
+
* JSON body template. Null sends the inputs as the body (POST, PUT, PATCH) or the
|
|
163
|
+
* query (GET, DELETE).
|
|
164
|
+
*/
|
|
165
|
+
body: string | null;
|
|
166
|
+
headers: Array<Request.Header>;
|
|
167
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
|
|
168
|
+
/**
|
|
169
|
+
* How long the agent waits, 1000 to 30000 ms
|
|
170
|
+
*/
|
|
171
|
+
timeoutMs: number | null;
|
|
172
|
+
/**
|
|
173
|
+
* https URL. Placeholders {{args.<input>}} and {{conversation.\*}} (id, direction,
|
|
174
|
+
* modality, agentNumber, customerNumber, startedAt) may appear in the path and
|
|
175
|
+
* query.
|
|
176
|
+
*/
|
|
177
|
+
url: string;
|
|
178
|
+
}
|
|
179
|
+
namespace Request {
|
|
180
|
+
interface Header {
|
|
181
|
+
name: string;
|
|
182
|
+
value: string;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
export interface ToolUpdateResponse {
|
|
189
|
+
data: ToolUpdateResponse.Data;
|
|
190
|
+
}
|
|
191
|
+
export declare namespace ToolUpdateResponse {
|
|
192
|
+
interface Data {
|
|
193
|
+
id: string;
|
|
194
|
+
/**
|
|
195
|
+
* The agent the tool is scoped to; null for the project
|
|
196
|
+
*/
|
|
197
|
+
agentId: string | null;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
description: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* How it should handle the result, for grading
|
|
202
|
+
*/
|
|
203
|
+
expectedResult: string | null;
|
|
204
|
+
inputs: Array<Data.Input>;
|
|
205
|
+
/**
|
|
206
|
+
* When the agent should call it, for grading
|
|
207
|
+
*/
|
|
208
|
+
invocationCriteria: string | null;
|
|
209
|
+
name: string;
|
|
210
|
+
/**
|
|
211
|
+
* What a hosted agent sends and says when it calls the tool
|
|
212
|
+
*/
|
|
213
|
+
runtime: Data.Runtime | null;
|
|
214
|
+
/**
|
|
215
|
+
* SYSTEM for a built-in tool every project can attach
|
|
216
|
+
*/
|
|
217
|
+
source: 'CUSTOM' | 'SYSTEM';
|
|
218
|
+
/**
|
|
219
|
+
* The stable key of a built-in tool, such as dtmf
|
|
220
|
+
*/
|
|
221
|
+
systemKey: string | null;
|
|
222
|
+
updatedAt: string;
|
|
223
|
+
/**
|
|
224
|
+
* The latest version; null before any is declared
|
|
225
|
+
*/
|
|
226
|
+
version: number | null;
|
|
227
|
+
}
|
|
228
|
+
namespace Data {
|
|
229
|
+
interface Input {
|
|
230
|
+
/**
|
|
231
|
+
* What the input is, so the agent fills it in right
|
|
232
|
+
*/
|
|
233
|
+
description: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* The input name, as the agent passes it
|
|
236
|
+
*/
|
|
237
|
+
name: string;
|
|
238
|
+
/**
|
|
239
|
+
* The agent must pass it
|
|
240
|
+
*/
|
|
241
|
+
required: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* string, number or boolean
|
|
244
|
+
*/
|
|
245
|
+
type: 'string' | 'number' | 'boolean';
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* What a hosted agent sends and says when it calls the tool
|
|
249
|
+
*/
|
|
250
|
+
interface Runtime {
|
|
251
|
+
/**
|
|
252
|
+
* The tool books, cancels or sends something: its call is not abandoned when the
|
|
253
|
+
* caller interrupts, and each request carries an Idempotency-Key.
|
|
254
|
+
*/
|
|
255
|
+
changesData: boolean;
|
|
256
|
+
messages: Runtime.Messages;
|
|
257
|
+
request: Runtime.Request;
|
|
258
|
+
/**
|
|
259
|
+
* Dot paths into the JSON response the agent is given. Null gives it the whole
|
|
260
|
+
* response.
|
|
261
|
+
*/
|
|
262
|
+
responseFields: Array<string> | null;
|
|
263
|
+
}
|
|
264
|
+
namespace Runtime {
|
|
265
|
+
interface Messages {
|
|
266
|
+
/**
|
|
267
|
+
* Said as the request goes out
|
|
268
|
+
*/
|
|
269
|
+
before: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Given to the agent to say when the request fails
|
|
272
|
+
*/
|
|
273
|
+
failure: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Said once if the request is slow
|
|
276
|
+
*/
|
|
277
|
+
slow: string | null;
|
|
278
|
+
}
|
|
279
|
+
interface Request {
|
|
280
|
+
/**
|
|
281
|
+
* JSON body template. Null sends the inputs as the body (POST, PUT, PATCH) or the
|
|
282
|
+
* query (GET, DELETE).
|
|
283
|
+
*/
|
|
284
|
+
body: string | null;
|
|
285
|
+
headers: Array<Request.Header>;
|
|
286
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
|
|
287
|
+
/**
|
|
288
|
+
* How long the agent waits, 1000 to 30000 ms
|
|
289
|
+
*/
|
|
290
|
+
timeoutMs: number | null;
|
|
291
|
+
/**
|
|
292
|
+
* https URL. Placeholders {{args.<input>}} and {{conversation.\*}} (id, direction,
|
|
293
|
+
* modality, agentNumber, customerNumber, startedAt) may appear in the path and
|
|
294
|
+
* query.
|
|
295
|
+
*/
|
|
296
|
+
url: string;
|
|
297
|
+
}
|
|
298
|
+
namespace Request {
|
|
299
|
+
interface Header {
|
|
300
|
+
name: string;
|
|
301
|
+
value: string;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
export interface ToolListResponse {
|
|
308
|
+
data: Array<ToolListResponse.Data>;
|
|
309
|
+
}
|
|
310
|
+
export declare namespace ToolListResponse {
|
|
311
|
+
interface Data {
|
|
312
|
+
id: string;
|
|
313
|
+
/**
|
|
314
|
+
* The agent the tool is scoped to; null for the project
|
|
315
|
+
*/
|
|
316
|
+
agentId: string | null;
|
|
317
|
+
createdAt: string;
|
|
318
|
+
description: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* How it should handle the result, for grading
|
|
321
|
+
*/
|
|
322
|
+
expectedResult: string | null;
|
|
323
|
+
inputs: Array<Data.Input>;
|
|
324
|
+
/**
|
|
325
|
+
* When the agent should call it, for grading
|
|
326
|
+
*/
|
|
327
|
+
invocationCriteria: string | null;
|
|
328
|
+
name: string;
|
|
329
|
+
/**
|
|
330
|
+
* What a hosted agent sends and says when it calls the tool
|
|
331
|
+
*/
|
|
332
|
+
runtime: Data.Runtime | null;
|
|
333
|
+
/**
|
|
334
|
+
* SYSTEM for a built-in tool every project can attach
|
|
335
|
+
*/
|
|
336
|
+
source: 'CUSTOM' | 'SYSTEM';
|
|
337
|
+
/**
|
|
338
|
+
* The stable key of a built-in tool, such as dtmf
|
|
339
|
+
*/
|
|
340
|
+
systemKey: string | null;
|
|
341
|
+
updatedAt: string;
|
|
342
|
+
/**
|
|
343
|
+
* The latest version; null before any is declared
|
|
344
|
+
*/
|
|
345
|
+
version: number | null;
|
|
346
|
+
}
|
|
347
|
+
namespace Data {
|
|
348
|
+
interface Input {
|
|
349
|
+
/**
|
|
350
|
+
* What the input is, so the agent fills it in right
|
|
351
|
+
*/
|
|
352
|
+
description: string | null;
|
|
353
|
+
/**
|
|
354
|
+
* The input name, as the agent passes it
|
|
355
|
+
*/
|
|
356
|
+
name: string;
|
|
357
|
+
/**
|
|
358
|
+
* The agent must pass it
|
|
359
|
+
*/
|
|
360
|
+
required: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* string, number or boolean
|
|
363
|
+
*/
|
|
364
|
+
type: 'string' | 'number' | 'boolean';
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* What a hosted agent sends and says when it calls the tool
|
|
368
|
+
*/
|
|
369
|
+
interface Runtime {
|
|
370
|
+
/**
|
|
371
|
+
* The tool books, cancels or sends something: its call is not abandoned when the
|
|
372
|
+
* caller interrupts, and each request carries an Idempotency-Key.
|
|
373
|
+
*/
|
|
374
|
+
changesData: boolean;
|
|
375
|
+
messages: Runtime.Messages;
|
|
376
|
+
request: Runtime.Request;
|
|
377
|
+
/**
|
|
378
|
+
* Dot paths into the JSON response the agent is given. Null gives it the whole
|
|
379
|
+
* response.
|
|
380
|
+
*/
|
|
381
|
+
responseFields: Array<string> | null;
|
|
382
|
+
}
|
|
383
|
+
namespace Runtime {
|
|
384
|
+
interface Messages {
|
|
385
|
+
/**
|
|
386
|
+
* Said as the request goes out
|
|
387
|
+
*/
|
|
388
|
+
before: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* Given to the agent to say when the request fails
|
|
391
|
+
*/
|
|
392
|
+
failure: string | null;
|
|
393
|
+
/**
|
|
394
|
+
* Said once if the request is slow
|
|
395
|
+
*/
|
|
396
|
+
slow: string | null;
|
|
397
|
+
}
|
|
398
|
+
interface Request {
|
|
399
|
+
/**
|
|
400
|
+
* JSON body template. Null sends the inputs as the body (POST, PUT, PATCH) or the
|
|
401
|
+
* query (GET, DELETE).
|
|
402
|
+
*/
|
|
403
|
+
body: string | null;
|
|
404
|
+
headers: Array<Request.Header>;
|
|
405
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
|
|
406
|
+
/**
|
|
407
|
+
* How long the agent waits, 1000 to 30000 ms
|
|
408
|
+
*/
|
|
409
|
+
timeoutMs: number | null;
|
|
410
|
+
/**
|
|
411
|
+
* https URL. Placeholders {{args.<input>}} and {{conversation.\*}} (id, direction,
|
|
412
|
+
* modality, agentNumber, customerNumber, startedAt) may appear in the path and
|
|
413
|
+
* query.
|
|
414
|
+
*/
|
|
415
|
+
url: string;
|
|
416
|
+
}
|
|
417
|
+
namespace Request {
|
|
418
|
+
interface Header {
|
|
419
|
+
name: string;
|
|
420
|
+
value: string;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
export interface ToolDeleteResponse {
|
|
427
|
+
data: ToolDeleteResponse.Data;
|
|
428
|
+
}
|
|
429
|
+
export declare namespace ToolDeleteResponse {
|
|
430
|
+
interface Data {
|
|
431
|
+
id: string;
|
|
432
|
+
deleted: true;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
export interface ToolGetByIDResponse {
|
|
436
|
+
data: ToolGetByIDResponse.Data;
|
|
437
|
+
}
|
|
438
|
+
export declare namespace ToolGetByIDResponse {
|
|
439
|
+
interface Data {
|
|
440
|
+
id: string;
|
|
441
|
+
/**
|
|
442
|
+
* The agent the tool is scoped to; null for the project
|
|
443
|
+
*/
|
|
444
|
+
agentId: string | null;
|
|
445
|
+
createdAt: string;
|
|
446
|
+
description: string | null;
|
|
447
|
+
/**
|
|
448
|
+
* How it should handle the result, for grading
|
|
449
|
+
*/
|
|
450
|
+
expectedResult: string | null;
|
|
451
|
+
inputs: Array<Data.Input>;
|
|
452
|
+
/**
|
|
453
|
+
* When the agent should call it, for grading
|
|
454
|
+
*/
|
|
455
|
+
invocationCriteria: string | null;
|
|
456
|
+
name: string;
|
|
457
|
+
/**
|
|
458
|
+
* What a hosted agent sends and says when it calls the tool
|
|
459
|
+
*/
|
|
460
|
+
runtime: Data.Runtime | null;
|
|
461
|
+
/**
|
|
462
|
+
* SYSTEM for a built-in tool every project can attach
|
|
463
|
+
*/
|
|
464
|
+
source: 'CUSTOM' | 'SYSTEM';
|
|
465
|
+
/**
|
|
466
|
+
* The stable key of a built-in tool, such as dtmf
|
|
467
|
+
*/
|
|
468
|
+
systemKey: string | null;
|
|
469
|
+
updatedAt: string;
|
|
470
|
+
/**
|
|
471
|
+
* The latest version; null before any is declared
|
|
472
|
+
*/
|
|
473
|
+
version: number | null;
|
|
474
|
+
}
|
|
475
|
+
namespace Data {
|
|
476
|
+
interface Input {
|
|
477
|
+
/**
|
|
478
|
+
* What the input is, so the agent fills it in right
|
|
479
|
+
*/
|
|
480
|
+
description: string | null;
|
|
481
|
+
/**
|
|
482
|
+
* The input name, as the agent passes it
|
|
483
|
+
*/
|
|
484
|
+
name: string;
|
|
485
|
+
/**
|
|
486
|
+
* The agent must pass it
|
|
487
|
+
*/
|
|
488
|
+
required: boolean;
|
|
489
|
+
/**
|
|
490
|
+
* string, number or boolean
|
|
491
|
+
*/
|
|
492
|
+
type: 'string' | 'number' | 'boolean';
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* What a hosted agent sends and says when it calls the tool
|
|
496
|
+
*/
|
|
497
|
+
interface Runtime {
|
|
498
|
+
/**
|
|
499
|
+
* The tool books, cancels or sends something: its call is not abandoned when the
|
|
500
|
+
* caller interrupts, and each request carries an Idempotency-Key.
|
|
501
|
+
*/
|
|
502
|
+
changesData: boolean;
|
|
503
|
+
messages: Runtime.Messages;
|
|
504
|
+
request: Runtime.Request;
|
|
505
|
+
/**
|
|
506
|
+
* Dot paths into the JSON response the agent is given. Null gives it the whole
|
|
507
|
+
* response.
|
|
508
|
+
*/
|
|
509
|
+
responseFields: Array<string> | null;
|
|
510
|
+
}
|
|
511
|
+
namespace Runtime {
|
|
512
|
+
interface Messages {
|
|
513
|
+
/**
|
|
514
|
+
* Said as the request goes out
|
|
515
|
+
*/
|
|
516
|
+
before: string | null;
|
|
517
|
+
/**
|
|
518
|
+
* Given to the agent to say when the request fails
|
|
519
|
+
*/
|
|
520
|
+
failure: string | null;
|
|
521
|
+
/**
|
|
522
|
+
* Said once if the request is slow
|
|
523
|
+
*/
|
|
524
|
+
slow: string | null;
|
|
525
|
+
}
|
|
526
|
+
interface Request {
|
|
527
|
+
/**
|
|
528
|
+
* JSON body template. Null sends the inputs as the body (POST, PUT, PATCH) or the
|
|
529
|
+
* query (GET, DELETE).
|
|
530
|
+
*/
|
|
531
|
+
body: string | null;
|
|
532
|
+
headers: Array<Request.Header>;
|
|
533
|
+
method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
|
|
534
|
+
/**
|
|
535
|
+
* How long the agent waits, 1000 to 30000 ms
|
|
536
|
+
*/
|
|
537
|
+
timeoutMs: number | null;
|
|
538
|
+
/**
|
|
539
|
+
* https URL. Placeholders {{args.<input>}} and {{conversation.\*}} (id, direction,
|
|
540
|
+
* modality, agentNumber, customerNumber, startedAt) may appear in the path and
|
|
541
|
+
* query.
|
|
542
|
+
*/
|
|
543
|
+
url: string;
|
|
544
|
+
}
|
|
545
|
+
namespace Request {
|
|
546
|
+
interface Header {
|
|
547
|
+
name: string;
|
|
548
|
+
value: string;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
export interface ToolCreateParams {
|
|
555
|
+
/**
|
|
556
|
+
* When the agent should use the tool
|
|
557
|
+
*/
|
|
558
|
+
description: string;
|
|
559
|
+
name: string;
|
|
560
|
+
agentId?: string | null;
|
|
561
|
+
expectedResult?: string | null;
|
|
562
|
+
inputs?: Array<ToolCreateParams.Input>;
|
|
563
|
+
invocationCriteria?: string | null;
|
|
564
|
+
/**
|
|
565
|
+
* Omit or null for a tool that is only graded
|
|
566
|
+
*/
|
|
567
|
+
runtime?: ToolCreateParams.Runtime | null;
|
|
568
|
+
}
|
|
569
|
+
export declare namespace ToolCreateParams {
|
|
570
|
+
interface Input {
|
|
571
|
+
name: string;
|
|
572
|
+
type: 'string' | 'number' | 'boolean';
|
|
573
|
+
description?: string;
|
|
574
|
+
required?: boolean;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Omit or null for a tool that is only graded
|
|
578
|
+
*/
|
|
579
|
+
interface Runtime {
|
|
580
|
+
request: Runtime.Request;
|
|
581
|
+
changesData?: boolean;
|
|
582
|
+
messages?: Runtime.Messages;
|
|
583
|
+
responseFields?: Array<string> | null;
|
|
584
|
+
}
|
|
585
|
+
namespace Runtime {
|
|
586
|
+
interface Request {
|
|
587
|
+
url: string;
|
|
588
|
+
body?: string | null;
|
|
589
|
+
headers?: Array<Request.Header>;
|
|
590
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
|
|
591
|
+
timeoutMs?: number | null;
|
|
592
|
+
}
|
|
593
|
+
namespace Request {
|
|
594
|
+
interface Header {
|
|
595
|
+
name: string;
|
|
596
|
+
value: string;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
interface Messages {
|
|
600
|
+
before?: string | null;
|
|
601
|
+
failure?: string | null;
|
|
602
|
+
slow?: string | null;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
export interface ToolUpdateParams {
|
|
607
|
+
/**
|
|
608
|
+
* When the agent should use the tool
|
|
609
|
+
*/
|
|
610
|
+
description: string;
|
|
611
|
+
name: string;
|
|
612
|
+
agentId?: string | null;
|
|
613
|
+
expectedResult?: string | null;
|
|
614
|
+
inputs?: Array<ToolUpdateParams.Input>;
|
|
615
|
+
invocationCriteria?: string | null;
|
|
616
|
+
/**
|
|
617
|
+
* Omit or null for a tool that is only graded
|
|
618
|
+
*/
|
|
619
|
+
runtime?: ToolUpdateParams.Runtime | null;
|
|
620
|
+
}
|
|
621
|
+
export declare namespace ToolUpdateParams {
|
|
622
|
+
interface Input {
|
|
623
|
+
name: string;
|
|
624
|
+
type: 'string' | 'number' | 'boolean';
|
|
625
|
+
description?: string;
|
|
626
|
+
required?: boolean;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Omit or null for a tool that is only graded
|
|
630
|
+
*/
|
|
631
|
+
interface Runtime {
|
|
632
|
+
request: Runtime.Request;
|
|
633
|
+
changesData?: boolean;
|
|
634
|
+
messages?: Runtime.Messages;
|
|
635
|
+
responseFields?: Array<string> | null;
|
|
636
|
+
}
|
|
637
|
+
namespace Runtime {
|
|
638
|
+
interface Request {
|
|
639
|
+
url: string;
|
|
640
|
+
body?: string | null;
|
|
641
|
+
headers?: Array<Request.Header>;
|
|
642
|
+
method?: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
|
|
643
|
+
timeoutMs?: number | null;
|
|
644
|
+
}
|
|
645
|
+
namespace Request {
|
|
646
|
+
interface Header {
|
|
647
|
+
name: string;
|
|
648
|
+
value: string;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
interface Messages {
|
|
652
|
+
before?: string | null;
|
|
653
|
+
failure?: string | null;
|
|
654
|
+
slow?: string | null;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
export interface ToolListParams {
|
|
659
|
+
/**
|
|
660
|
+
* Only tools scoped to this agent
|
|
661
|
+
*/
|
|
662
|
+
agentId?: string;
|
|
663
|
+
/**
|
|
664
|
+
* Include the built-in tools (default true)
|
|
665
|
+
*/
|
|
666
|
+
includeBuiltIn?: 'true' | 'false';
|
|
667
|
+
}
|
|
668
|
+
export declare namespace Tool {
|
|
669
|
+
export { type ToolCreateResponse as ToolCreateResponse, type ToolUpdateResponse as ToolUpdateResponse, type ToolListResponse as ToolListResponse, type ToolDeleteResponse as ToolDeleteResponse, type ToolGetByIDResponse as ToolGetByIDResponse, type ToolCreateParams as ToolCreateParams, type ToolUpdateParams as ToolUpdateParams, type ToolListParams as ToolListParams, };
|
|
670
|
+
}
|
|
671
|
+
//# sourceMappingURL=tool.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.d.mts","sourceRoot":"","sources":["../src/resources/tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxG;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAA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