@zavudev/sdk 0.51.0 → 0.53.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 +29 -0
- package/package.json +1 -1
- package/resources/functions/functions.d.mts +28 -8
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +28 -8
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +6 -4
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +6 -4
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/invitations.d.mts +85 -15
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +85 -15
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +14 -4
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +14 -4
- package/resources/invitations.mjs.map +1 -1
- package/resources/messages.d.mts +41 -4
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +41 -4
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +12 -3
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +12 -3
- package/resources/messages.mjs.map +1 -1
- package/resources/number-10dlc/brands.d.mts +5 -1
- package/resources/number-10dlc/brands.d.mts.map +1 -1
- package/resources/number-10dlc/brands.d.ts +5 -1
- package/resources/number-10dlc/brands.d.ts.map +1 -1
- package/resources/number-10dlc/brands.js +5 -1
- package/resources/number-10dlc/brands.js.map +1 -1
- package/resources/number-10dlc/brands.mjs +5 -1
- package/resources/number-10dlc/brands.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts +6 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts +6 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.js +6 -1
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs +6 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +10 -3
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +10 -3
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +3 -2
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +3 -2
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/senders/agent/agent.d.mts +314 -0
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +314 -0
- package/resources/senders/agent/agent.d.ts.map +1 -1
- package/resources/senders/agent/agent.js +6 -0
- package/resources/senders/agent/agent.js.map +1 -1
- package/resources/senders/agent/agent.mjs +6 -0
- package/resources/senders/agent/agent.mjs.map +1 -1
- package/resources/senders/agent/executions.d.mts +5 -0
- package/resources/senders/agent/executions.d.mts.map +1 -1
- package/resources/senders/agent/executions.d.ts +5 -0
- package/resources/senders/agent/executions.d.ts.map +1 -1
- package/resources/senders/agent/executions.js +5 -0
- package/resources/senders/agent/executions.js.map +1 -1
- package/resources/senders/agent/executions.mjs +5 -0
- package/resources/senders/agent/executions.mjs.map +1 -1
- package/resources/senders/agent/tools.d.mts +51 -2
- package/resources/senders/agent/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools.d.ts +51 -2
- package/resources/senders/agent/tools.d.ts.map +1 -1
- package/resources/senders/agent/tools.js +10 -1
- package/resources/senders/agent/tools.js.map +1 -1
- package/resources/senders/agent/tools.mjs +10 -1
- package/resources/senders/agent/tools.mjs.map +1 -1
- package/resources/senders/senders.d.mts +64 -4
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +64 -4
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs.map +1 -1
- package/resources/templates.d.mts +12 -3
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +12 -3
- package/resources/templates.d.ts.map +1 -1
- package/src/resources/functions/functions.ts +29 -8
- package/src/resources/invitations.ts +91 -15
- package/src/resources/messages.ts +42 -3
- package/src/resources/number-10dlc/brands.ts +5 -1
- package/src/resources/number-10dlc/campaigns/campaigns.ts +6 -1
- package/src/resources/phone-numbers.ts +11 -3
- package/src/resources/senders/agent/agent.ts +365 -0
- package/src/resources/senders/agent/executions.ts +5 -0
- package/src/resources/senders/agent/tools.ts +58 -2
- package/src/resources/senders/senders.ts +73 -3
- package/src/resources/templates.ts +13 -4
- 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
|
@@ -68,6 +68,12 @@ export declare class AgentResource extends APIResource {
|
|
|
68
68
|
/**
|
|
69
69
|
* Get statistics for an AI agent including invocations, tokens, and costs.
|
|
70
70
|
*
|
|
71
|
+
* Covers the messaging channels only. Voice calls are not counted here: a call is
|
|
72
|
+
* a multi-turn conversation rather than one inbound message and one reply, so it
|
|
73
|
+
* is recorded as a call, not an execution. An agent that only answers phone calls
|
|
74
|
+
* reports zeros on every field. Use `GET /v1/calls` for voice activity, duration,
|
|
75
|
+
* and cost.
|
|
76
|
+
*
|
|
71
77
|
* @example
|
|
72
78
|
* ```ts
|
|
73
79
|
* const agentStats = await client.senders.agent.stats(
|
|
@@ -115,6 +121,11 @@ export interface Agent {
|
|
|
115
121
|
* Maximum tokens for LLM response.
|
|
116
122
|
*/
|
|
117
123
|
maxTokens?: number | null;
|
|
124
|
+
/**
|
|
125
|
+
* Senders this agent answers on. An agent can serve several; `senderId` remains
|
|
126
|
+
* the primary one, for compatibility.
|
|
127
|
+
*/
|
|
128
|
+
senderIds?: Array<string>;
|
|
118
129
|
stats?: Agent.Stats;
|
|
119
130
|
/**
|
|
120
131
|
* LLM temperature (0-2).
|
|
@@ -128,6 +139,12 @@ export interface Agent {
|
|
|
128
139
|
* Message types that trigger the agent.
|
|
129
140
|
*/
|
|
130
141
|
triggerOnMessageTypes?: Array<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Voice Agent configuration. When present and enabled, the agent can answer
|
|
144
|
+
* inbound phone calls and place outbound calls with Zavu's managed voice pipeline.
|
|
145
|
+
* Requires the Voice Agents feature to be enabled for your team.
|
|
146
|
+
*/
|
|
147
|
+
voice?: Agent.Voice;
|
|
131
148
|
}
|
|
132
149
|
export declare namespace Agent {
|
|
133
150
|
interface Stats {
|
|
@@ -138,6 +155,95 @@ export declare namespace Agent {
|
|
|
138
155
|
totalInvocations?: number;
|
|
139
156
|
totalTokensUsed?: number;
|
|
140
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* Voice Agent configuration. When present and enabled, the agent can answer
|
|
160
|
+
* inbound phone calls and place outbound calls with Zavu's managed voice pipeline.
|
|
161
|
+
* Requires the Voice Agents feature to be enabled for your team.
|
|
162
|
+
*/
|
|
163
|
+
interface Voice {
|
|
164
|
+
/**
|
|
165
|
+
* Whether the agent handles voice calls. When false, the sender's number is not
|
|
166
|
+
* answered by the voice agent and outbound calls are rejected.
|
|
167
|
+
*/
|
|
168
|
+
enabled: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Opening line the agent speaks when the call connects. If omitted, the agent
|
|
171
|
+
* waits for the caller to speak first.
|
|
172
|
+
*/
|
|
173
|
+
greeting?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Greeting per language, keyed by language code. Used when the caller's language
|
|
176
|
+
* differs from the one `greeting` is written in.
|
|
177
|
+
*/
|
|
178
|
+
greetings?: {
|
|
179
|
+
[key: string]: string;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Whether the caller can interrupt the agent while it is speaking (barge-in). When
|
|
183
|
+
* true, the agent stops talking as soon as the caller starts.
|
|
184
|
+
*/
|
|
185
|
+
interruptible?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* BCP-47 language code used for both speech recognition and speech synthesis (e.g.
|
|
188
|
+
* `en`, `es`, `pt-BR`). Auto-detected from the recipient when omitted.
|
|
189
|
+
*/
|
|
190
|
+
language?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Hard limit on call length in minutes. The call ends automatically when reached.
|
|
193
|
+
*/
|
|
194
|
+
maxCallDurationMinutes?: number;
|
|
195
|
+
/**
|
|
196
|
+
* How long the agent waits during silence before ending the call.
|
|
197
|
+
*/
|
|
198
|
+
maxIdleSeconds?: number;
|
|
199
|
+
/**
|
|
200
|
+
* Model that runs the conversation, co-located in the voice network for lowest
|
|
201
|
+
* latency. Independent of the model used for text messaging. Derived from the
|
|
202
|
+
* agent's text model when omitted.
|
|
203
|
+
*/
|
|
204
|
+
model?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Whether the call audio is recorded.
|
|
207
|
+
*/
|
|
208
|
+
recordCalls?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Speech-recognition model. Uses the default when omitted.
|
|
211
|
+
*/
|
|
212
|
+
sttModel?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Speech-recognition provider. Uses the default when omitted.
|
|
215
|
+
*/
|
|
216
|
+
sttProvider?: string;
|
|
217
|
+
/**
|
|
218
|
+
* E.164 phone number the agent can transfer the call to. When set, the agent is
|
|
219
|
+
* given a transfer tool it can use to hand the call to a human.
|
|
220
|
+
*/
|
|
221
|
+
transferPhoneNumber?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Speech-synthesis provider. Uses the default when omitted.
|
|
224
|
+
*/
|
|
225
|
+
ttsProvider?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Identifier of the synthesized voice that speaks. Choose from the voices
|
|
228
|
+
* available in the dashboard. Uses a neutral default when omitted.
|
|
229
|
+
*/
|
|
230
|
+
ttsVoiceId?: string;
|
|
231
|
+
/**
|
|
232
|
+
* What the agent does when an answering machine or voicemail is detected on an
|
|
233
|
+
* outbound call.
|
|
234
|
+
*/
|
|
235
|
+
voicemailAction?: 'hangup' | 'leave_message';
|
|
236
|
+
/**
|
|
237
|
+
* Message spoken when `voicemailAction` is `leave_message`. Falls back to
|
|
238
|
+
* `greeting` when omitted.
|
|
239
|
+
*/
|
|
240
|
+
voicemailMessage?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Speech rate. 1.0 is natural. Only honoured by voices that support rate control;
|
|
243
|
+
* ignored by the others.
|
|
244
|
+
*/
|
|
245
|
+
voiceSpeed?: number;
|
|
246
|
+
}
|
|
141
247
|
}
|
|
142
248
|
export interface AgentExecution {
|
|
143
249
|
id: string;
|
|
@@ -156,8 +262,22 @@ export interface AgentExecution {
|
|
|
156
262
|
status: AgentExecutionStatus;
|
|
157
263
|
errorMessage?: string | null;
|
|
158
264
|
inboundMessageId?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Knowledge-base chunks retrieved for this answer. Zero on an agent that has
|
|
267
|
+
* documents attached means the reply was not grounded in them, which is otherwise
|
|
268
|
+
* indistinguishable from a correct answer in this record. Absent on executions
|
|
269
|
+
* recorded before this field existed, which is not the same as zero.
|
|
270
|
+
*/
|
|
271
|
+
knowledgeChunksUsed?: number | null;
|
|
159
272
|
responseMessageId?: string | null;
|
|
160
273
|
responseText?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Tools the agent called while producing this reply. Zero on an agent that has
|
|
276
|
+
* tools configured means it answered without calling any — the case where a reply
|
|
277
|
+
* says it will look something up and nothing ever reaches your endpoint. Absent on
|
|
278
|
+
* executions recorded before this field existed, which is not the same as zero.
|
|
279
|
+
*/
|
|
280
|
+
toolCalls?: number | null;
|
|
161
281
|
}
|
|
162
282
|
/**
|
|
163
283
|
* Status of an agent execution.
|
|
@@ -202,6 +322,103 @@ export interface AgentCreateParams {
|
|
|
202
322
|
temperature?: number;
|
|
203
323
|
triggerOnChannels?: Array<string>;
|
|
204
324
|
triggerOnMessageTypes?: Array<string>;
|
|
325
|
+
/**
|
|
326
|
+
* Voice Agent configuration. Enable this to let the agent answer and place phone
|
|
327
|
+
* calls with Zavu's managed voice pipeline. Requires the Voice Agents feature to
|
|
328
|
+
* be enabled for your team.
|
|
329
|
+
*/
|
|
330
|
+
voice?: AgentCreateParams.Voice;
|
|
331
|
+
}
|
|
332
|
+
export declare namespace AgentCreateParams {
|
|
333
|
+
/**
|
|
334
|
+
* Voice Agent configuration. Enable this to let the agent answer and place phone
|
|
335
|
+
* calls with Zavu's managed voice pipeline. Requires the Voice Agents feature to
|
|
336
|
+
* be enabled for your team.
|
|
337
|
+
*/
|
|
338
|
+
interface Voice {
|
|
339
|
+
/**
|
|
340
|
+
* Whether the agent handles voice calls. When false, the sender's number is not
|
|
341
|
+
* answered by the voice agent and outbound calls are rejected.
|
|
342
|
+
*/
|
|
343
|
+
enabled: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* Opening line the agent speaks when the call connects. If omitted, the agent
|
|
346
|
+
* waits for the caller to speak first.
|
|
347
|
+
*/
|
|
348
|
+
greeting?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Greeting per language, keyed by language code. Used when the caller's language
|
|
351
|
+
* differs from the one `greeting` is written in.
|
|
352
|
+
*/
|
|
353
|
+
greetings?: {
|
|
354
|
+
[key: string]: string;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Whether the caller can interrupt the agent while it is speaking (barge-in). When
|
|
358
|
+
* true, the agent stops talking as soon as the caller starts.
|
|
359
|
+
*/
|
|
360
|
+
interruptible?: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* BCP-47 language code used for both speech recognition and speech synthesis (e.g.
|
|
363
|
+
* `en`, `es`, `pt-BR`). Auto-detected from the recipient when omitted.
|
|
364
|
+
*/
|
|
365
|
+
language?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Hard limit on call length in minutes. The call ends automatically when reached.
|
|
368
|
+
*/
|
|
369
|
+
maxCallDurationMinutes?: number;
|
|
370
|
+
/**
|
|
371
|
+
* How long the agent waits during silence before ending the call.
|
|
372
|
+
*/
|
|
373
|
+
maxIdleSeconds?: number;
|
|
374
|
+
/**
|
|
375
|
+
* Model that runs the conversation, co-located in the voice network for lowest
|
|
376
|
+
* latency. Independent of the model used for text messaging. Derived from the
|
|
377
|
+
* agent's text model when omitted.
|
|
378
|
+
*/
|
|
379
|
+
model?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Whether the call audio is recorded.
|
|
382
|
+
*/
|
|
383
|
+
recordCalls?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* Speech-recognition model. Uses the default when omitted.
|
|
386
|
+
*/
|
|
387
|
+
sttModel?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Speech-recognition provider. Uses the default when omitted.
|
|
390
|
+
*/
|
|
391
|
+
sttProvider?: string;
|
|
392
|
+
/**
|
|
393
|
+
* E.164 phone number the agent can transfer the call to. When set, the agent is
|
|
394
|
+
* given a transfer tool it can use to hand the call to a human.
|
|
395
|
+
*/
|
|
396
|
+
transferPhoneNumber?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Speech-synthesis provider. Uses the default when omitted.
|
|
399
|
+
*/
|
|
400
|
+
ttsProvider?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Identifier of the synthesized voice that speaks. Choose from the voices
|
|
403
|
+
* available in the dashboard. Uses a neutral default when omitted.
|
|
404
|
+
*/
|
|
405
|
+
ttsVoiceId?: string;
|
|
406
|
+
/**
|
|
407
|
+
* What the agent does when an answering machine or voicemail is detected on an
|
|
408
|
+
* outbound call.
|
|
409
|
+
*/
|
|
410
|
+
voicemailAction?: 'hangup' | 'leave_message';
|
|
411
|
+
/**
|
|
412
|
+
* Message spoken when `voicemailAction` is `leave_message`. Falls back to
|
|
413
|
+
* `greeting` when omitted.
|
|
414
|
+
*/
|
|
415
|
+
voicemailMessage?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Speech rate. 1.0 is natural. Only honoured by voices that support rate control;
|
|
418
|
+
* ignored by the others.
|
|
419
|
+
*/
|
|
420
|
+
voiceSpeed?: number;
|
|
421
|
+
}
|
|
205
422
|
}
|
|
206
423
|
export interface AgentUpdateParams {
|
|
207
424
|
apiKey?: string;
|
|
@@ -219,6 +436,103 @@ export interface AgentUpdateParams {
|
|
|
219
436
|
temperature?: number | null;
|
|
220
437
|
triggerOnChannels?: Array<string>;
|
|
221
438
|
triggerOnMessageTypes?: Array<string>;
|
|
439
|
+
/**
|
|
440
|
+
* Voice Agent configuration. Patch this object to enable voice, change the
|
|
441
|
+
* greeting, or adjust call limits. Requires the Voice Agents feature to be enabled
|
|
442
|
+
* for your team.
|
|
443
|
+
*/
|
|
444
|
+
voice?: AgentUpdateParams.Voice;
|
|
445
|
+
}
|
|
446
|
+
export declare namespace AgentUpdateParams {
|
|
447
|
+
/**
|
|
448
|
+
* Voice Agent configuration. Patch this object to enable voice, change the
|
|
449
|
+
* greeting, or adjust call limits. Requires the Voice Agents feature to be enabled
|
|
450
|
+
* for your team.
|
|
451
|
+
*/
|
|
452
|
+
interface Voice {
|
|
453
|
+
/**
|
|
454
|
+
* Whether the agent handles voice calls. When false, the sender's number is not
|
|
455
|
+
* answered by the voice agent and outbound calls are rejected.
|
|
456
|
+
*/
|
|
457
|
+
enabled: boolean;
|
|
458
|
+
/**
|
|
459
|
+
* Opening line the agent speaks when the call connects. If omitted, the agent
|
|
460
|
+
* waits for the caller to speak first.
|
|
461
|
+
*/
|
|
462
|
+
greeting?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Greeting per language, keyed by language code. Used when the caller's language
|
|
465
|
+
* differs from the one `greeting` is written in.
|
|
466
|
+
*/
|
|
467
|
+
greetings?: {
|
|
468
|
+
[key: string]: string;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Whether the caller can interrupt the agent while it is speaking (barge-in). When
|
|
472
|
+
* true, the agent stops talking as soon as the caller starts.
|
|
473
|
+
*/
|
|
474
|
+
interruptible?: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* BCP-47 language code used for both speech recognition and speech synthesis (e.g.
|
|
477
|
+
* `en`, `es`, `pt-BR`). Auto-detected from the recipient when omitted.
|
|
478
|
+
*/
|
|
479
|
+
language?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Hard limit on call length in minutes. The call ends automatically when reached.
|
|
482
|
+
*/
|
|
483
|
+
maxCallDurationMinutes?: number;
|
|
484
|
+
/**
|
|
485
|
+
* How long the agent waits during silence before ending the call.
|
|
486
|
+
*/
|
|
487
|
+
maxIdleSeconds?: number;
|
|
488
|
+
/**
|
|
489
|
+
* Model that runs the conversation, co-located in the voice network for lowest
|
|
490
|
+
* latency. Independent of the model used for text messaging. Derived from the
|
|
491
|
+
* agent's text model when omitted.
|
|
492
|
+
*/
|
|
493
|
+
model?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Whether the call audio is recorded.
|
|
496
|
+
*/
|
|
497
|
+
recordCalls?: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* Speech-recognition model. Uses the default when omitted.
|
|
500
|
+
*/
|
|
501
|
+
sttModel?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Speech-recognition provider. Uses the default when omitted.
|
|
504
|
+
*/
|
|
505
|
+
sttProvider?: string;
|
|
506
|
+
/**
|
|
507
|
+
* E.164 phone number the agent can transfer the call to. When set, the agent is
|
|
508
|
+
* given a transfer tool it can use to hand the call to a human.
|
|
509
|
+
*/
|
|
510
|
+
transferPhoneNumber?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Speech-synthesis provider. Uses the default when omitted.
|
|
513
|
+
*/
|
|
514
|
+
ttsProvider?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Identifier of the synthesized voice that speaks. Choose from the voices
|
|
517
|
+
* available in the dashboard. Uses a neutral default when omitted.
|
|
518
|
+
*/
|
|
519
|
+
ttsVoiceId?: string;
|
|
520
|
+
/**
|
|
521
|
+
* What the agent does when an answering machine or voicemail is detected on an
|
|
522
|
+
* outbound call.
|
|
523
|
+
*/
|
|
524
|
+
voicemailAction?: 'hangup' | 'leave_message';
|
|
525
|
+
/**
|
|
526
|
+
* Message spoken when `voicemailAction` is `leave_message`. Falls back to
|
|
527
|
+
* `greeting` when omitted.
|
|
528
|
+
*/
|
|
529
|
+
voicemailMessage?: string;
|
|
530
|
+
/**
|
|
531
|
+
* Speech rate. 1.0 is natural. Only honoured by voices that support rate control;
|
|
532
|
+
* ignored by the others.
|
|
533
|
+
*/
|
|
534
|
+
voiceSpeed?: number;
|
|
535
|
+
}
|
|
222
536
|
}
|
|
223
537
|
export declare namespace AgentResource {
|
|
224
538
|
export { type Agent as Agent, type AgentExecution as AgentExecution, type AgentExecutionStatus as AgentExecutionStatus, type AgentProvider as AgentProvider, type AgentResponse as AgentResponse, type AgentStats as AgentStats, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/agent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACX,wBAAqB;AACtB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN,mBAAgB;AACjB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN,mBAAgB;AACjB,OAAO,KAAK,iBAAiB,6CAA0C;AACvE,OAAO,EACL,aAAa,E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EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -86,6 +86,12 @@ class AgentResource extends resource_1.APIResource {
|
|
|
86
86
|
/**
|
|
87
87
|
* Get statistics for an AI agent including invocations, tokens, and costs.
|
|
88
88
|
*
|
|
89
|
+
* Covers the messaging channels only. Voice calls are not counted here: a call is
|
|
90
|
+
* a multi-turn conversation rather than one inbound message and one reply, so it
|
|
91
|
+
* is recorded as a call, not an execution. An agent that only answers phone calls
|
|
92
|
+
* reports zeros on every field. Use `GET /v1/calls` for voice activity, duration,
|
|
93
|
+
* and cost.
|
|
94
|
+
*
|
|
89
95
|
* @example
|
|
90
96
|
* ```ts
|
|
91
97
|
* const agentStats = await client.senders.agent.stats(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/resources/senders/agent/agent.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,uEAA8C;AAC9C,gDAKsB;AACtB,6DAAoC;AACpC,sCAgBiB;AACjB,6DAAoC;AACpC,sCAeiB;AACjB,gGAAuE;AACvE,0EAa2C;AAG3C,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,mBAAc,GA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AAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,QAAQ,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,QAAgB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AA1FD,sCA0FC;AAwjBD,aAAa,CAAC,UAAU,GAAG,uBAAU,CAAC;AACtC,aAAa,CAAC,KAAK,GAAG,aAAK,CAAC;AAC5B,aAAa,CAAC,KAAK,GAAG,aAAK,CAAC;AAC5B,aAAa,CAAC,cAAc,GAAG,gCAAc,CAAC"}
|
|
@@ -82,6 +82,12 @@ export class AgentResource extends APIResource {
|
|
|
82
82
|
/**
|
|
83
83
|
* Get statistics for an AI agent including invocations, tokens, and costs.
|
|
84
84
|
*
|
|
85
|
+
* Covers the messaging channels only. Voice calls are not counted here: a call is
|
|
86
|
+
* a multi-turn conversation rather than one inbound message and one reply, so it
|
|
87
|
+
* is recorded as a call, not an execution. An agent that only answers phone calls
|
|
88
|
+
* reports zeros on every field. Use `GET /v1/calls` for voice activity, duration,
|
|
89
|
+
* and cost.
|
|
90
|
+
*
|
|
85
91
|
* @example
|
|
86
92
|
* ```ts
|
|
87
93
|
* const agentStats = await client.senders.agent.stats(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAIL,UAAU,GACX,yBAAqB;AACtB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAeL,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAcL,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,iBAAiB,8CAA0C;AACvE,OAAO,EAYL,cAAc,GACf,8CAA0C;AAG3C,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAIL,UAAU,GACX,yBAAqB;AACtB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAeL,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAcL,KAAK,GACN,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,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,QAAQ,QAAQ,EAAE;YAC9D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,QAAgB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAwjBD,aAAa,CAAC,UAAU,GAAG,UAAU,CAAC;AACtC,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC;AAC5B,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC;AAC5B,aAAa,CAAC,cAAc,GAAG,cAAc,CAAC"}
|
|
@@ -22,6 +22,11 @@ export declare class Executions extends APIResource {
|
|
|
22
22
|
/**
|
|
23
23
|
* List recent agent executions with pagination.
|
|
24
24
|
*
|
|
25
|
+
* An execution is one inbound message answered by the agent, so this covers the
|
|
26
|
+
* messaging channels only. Voice calls are never listed here regardless of how
|
|
27
|
+
* many the agent handled. Use `GET /v1/calls` (and `GET /v1/calls/{callId}` for
|
|
28
|
+
* the transcript) for voice.
|
|
29
|
+
*
|
|
25
30
|
* @example
|
|
26
31
|
* ```ts
|
|
27
32
|
* // Automatically fetches more pages as needed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,qBAAqB,EAAE,oBAAgB;AAChD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAU,KAAK,YAAY,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C;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
|
|
@@ -22,6 +22,11 @@ export declare class Executions extends APIResource {
|
|
|
22
22
|
/**
|
|
23
23
|
* List recent agent executions with pagination.
|
|
24
24
|
*
|
|
25
|
+
* An execution is one inbound message answered by the agent, so this covers the
|
|
26
|
+
* messaging channels only. Voice calls are never listed here regardless of how
|
|
27
|
+
* many the agent handled. Use `GET /v1/calls` (and `GET /v1/calls/{callId}` for
|
|
28
|
+
* the transcript) for voice.
|
|
29
|
+
*
|
|
25
30
|
* @example
|
|
26
31
|
* ```ts
|
|
27
32
|
* // Automatically fetches more pages as needed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,qBAAqB,EAAE,mBAAgB;AAChD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE,oCAAiC;AAClF,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAKxC
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,qBAAqB,EAAE,mBAAgB;AAChD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE,oCAAiC;AAClF,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAKxC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAAC;CAO/D;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,oBAAoB,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
|
|
@@ -26,6 +26,11 @@ class Executions extends resource_1.APIResource {
|
|
|
26
26
|
/**
|
|
27
27
|
* List recent agent executions with pagination.
|
|
28
28
|
*
|
|
29
|
+
* An execution is one inbound message answered by the agent, so this covers the
|
|
30
|
+
* messaging channels only. Voice calls are never listed here regardless of how
|
|
31
|
+
* many the agent handled. Use `GET /v1/calls` (and `GET /v1/calls/{callId}` for
|
|
32
|
+
* the transcript) for voice.
|
|
33
|
+
*
|
|
29
34
|
* @example
|
|
30
35
|
* ```ts
|
|
31
36
|
* // Automatically fetches more pages as needed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAAkF;AAElF,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAAkF;AAElF,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,QAAgB,EAChB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,eAAe,QAAQ,mBAAmB,EAC9C,CAAA,mBAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AApDD,gCAoDC"}
|
|
@@ -23,6 +23,11 @@ export class Executions extends APIResource {
|
|
|
23
23
|
/**
|
|
24
24
|
* List recent agent executions with pagination.
|
|
25
25
|
*
|
|
26
|
+
* An execution is one inbound message answered by the agent, so this covers the
|
|
27
|
+
* messaging channels only. Voice calls are never listed here regardless of how
|
|
28
|
+
* many the agent handled. Use `GET /v1/calls` (and `GET /v1/calls/{callId}` for
|
|
29
|
+
* the transcript) for voice.
|
|
30
|
+
*
|
|
26
31
|
* @example
|
|
27
32
|
* ```ts
|
|
28
33
|
* // Automatically fetches more pages as needed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,MAAM,EAAkC,qCAAiC;AAElF,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,MAAM,EAAkC,qCAAiC;AAElF,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,QAAgB,EAChB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,eAAe,QAAQ,mBAAmB,EAC9C,CAAA,MAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -81,7 +81,16 @@ export declare class Tools extends APIResource {
|
|
|
81
81
|
*/
|
|
82
82
|
delete(toolID: string, params: ToolDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* Run a tool with the parameters you supply and return what it answered.
|
|
85
|
+
*
|
|
86
|
+
* The call is synchronous: the response carries the tool's status, body, and
|
|
87
|
+
* duration, so a green result is evidence the tool ran rather than evidence it was
|
|
88
|
+
* accepted. Each run is also recorded and readable afterwards via
|
|
89
|
+
* `GET /v1/senders/{senderId}/agent/tools/{toolId}/test-runs`.
|
|
90
|
+
*
|
|
91
|
+
* A tool that answers with an error is reported as a run with `success: false` —
|
|
92
|
+
* the endpoint itself still returns 200. This fires the tool's real webhook, so a
|
|
93
|
+
* test has whatever side effects the tool has.
|
|
85
94
|
*
|
|
86
95
|
* @example
|
|
87
96
|
* ```ts
|
|
@@ -137,7 +146,47 @@ export interface ToolUpdateResponse {
|
|
|
137
146
|
tool: AgentTool;
|
|
138
147
|
}
|
|
139
148
|
export interface ToolTestResponse {
|
|
140
|
-
|
|
149
|
+
/**
|
|
150
|
+
* One run of a tool triggered from the test endpoint. Recorded so a test is
|
|
151
|
+
* verifiable after the fact rather than only visible in the response.
|
|
152
|
+
*/
|
|
153
|
+
run: ToolTestResponse.Run;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace ToolTestResponse {
|
|
156
|
+
/**
|
|
157
|
+
* One run of a tool triggered from the test endpoint. Recorded so a test is
|
|
158
|
+
* verifiable after the fact rather than only visible in the response.
|
|
159
|
+
*/
|
|
160
|
+
interface Run {
|
|
161
|
+
id: string;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
durationMs: number;
|
|
164
|
+
/**
|
|
165
|
+
* Whether the tool returned without error. A tool that answered with a non-2xx
|
|
166
|
+
* status is a failed run, not an error of this endpoint.
|
|
167
|
+
*/
|
|
168
|
+
success: boolean;
|
|
169
|
+
toolId: string;
|
|
170
|
+
/**
|
|
171
|
+
* Why the run failed, when it did.
|
|
172
|
+
*/
|
|
173
|
+
error?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* The parameters the tool was called with.
|
|
176
|
+
*/
|
|
177
|
+
params?: {
|
|
178
|
+
[key: string]: unknown;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* The tool's response body, truncated.
|
|
182
|
+
*/
|
|
183
|
+
response?: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* HTTP status the tool's webhook returned. Absent for tools that do not go over
|
|
186
|
+
* HTTP.
|
|
187
|
+
*/
|
|
188
|
+
statusCode?: number | null;
|
|
189
|
+
}
|
|
141
190
|
}
|
|
142
191
|
export interface ToolCreateParams {
|
|
143
192
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,m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