retell-sdk 4.61.0 → 4.63.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 +18 -0
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.ts +57 -6
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.ts +21 -4
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.ts +153 -16
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.ts +51 -3
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.ts +7835 -0
- package/resources/conversation-flow-component.d.ts.map +1 -0
- package/resources/conversation-flow-component.js +93 -0
- package/resources/conversation-flow-component.js.map +1 -0
- package/resources/conversation-flow-component.mjs +89 -0
- package/resources/conversation-flow-component.mjs.map +1 -0
- package/resources/conversation-flow.d.ts +540 -43
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +1 -1
- package/resources/conversation-flow.mjs +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.ts +501 -9
- package/resources/llm.d.ts.map +1 -1
- package/resources/mcp-tool.d.ts +2 -1
- package/resources/mcp-tool.d.ts.map +1 -1
- package/src/index.ts +17 -0
- package/src/resources/agent.ts +72 -27
- package/src/resources/batch-call.ts +34 -27
- package/src/resources/call.ts +210 -85
- package/src/resources/chat-agent.ts +66 -27
- package/src/resources/conversation-flow-component.ts +11183 -0
- package/src/resources/conversation-flow.ts +799 -326
- package/src/resources/index.ts +7 -0
- package/src/resources/llm.ts +621 -33
- package/src/resources/mcp-tool.ts +2 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/call.ts
CHANGED
|
@@ -303,7 +303,7 @@ export interface PhoneCallResponse {
|
|
|
303
303
|
public_log_url?: string;
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
|
-
* Recording of the call, with each party
|
|
306
|
+
* Recording of the call, with each party's audio stored in a separate channel.
|
|
307
307
|
* Available after the call ends.
|
|
308
308
|
*/
|
|
309
309
|
recording_multi_channel_url?: string;
|
|
@@ -321,7 +321,7 @@ export interface PhoneCallResponse {
|
|
|
321
321
|
retell_llm_dynamic_variables?: { [key: string]: unknown };
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
|
-
* Recording of the call without PII, with each party
|
|
324
|
+
* Recording of the call without PII, with each party's audio stored in a separate
|
|
325
325
|
* channel. Available after the call ends.
|
|
326
326
|
*/
|
|
327
327
|
scrubbed_recording_multi_channel_url?: string;
|
|
@@ -472,6 +472,12 @@ export namespace PhoneCallResponse {
|
|
|
472
472
|
* will be available, as it depends on the type of call and feature used.
|
|
473
473
|
*/
|
|
474
474
|
export interface Latency {
|
|
475
|
+
/**
|
|
476
|
+
* Transcription latency (diff between the duration of the chunks streamed and the
|
|
477
|
+
* durations of the transcribed part) tracking of the call.
|
|
478
|
+
*/
|
|
479
|
+
asr?: Latency.Asr;
|
|
480
|
+
|
|
475
481
|
/**
|
|
476
482
|
* End to end latency (from user stops talking to agent start talking) tracking of
|
|
477
483
|
* the call. This latency does not account for the network trip time from Retell
|
|
@@ -515,6 +521,52 @@ export namespace PhoneCallResponse {
|
|
|
515
521
|
}
|
|
516
522
|
|
|
517
523
|
export namespace Latency {
|
|
524
|
+
/**
|
|
525
|
+
* Transcription latency (diff between the duration of the chunks streamed and the
|
|
526
|
+
* durations of the transcribed part) tracking of the call.
|
|
527
|
+
*/
|
|
528
|
+
export interface Asr {
|
|
529
|
+
/**
|
|
530
|
+
* Maximum latency in the call, measured in milliseconds.
|
|
531
|
+
*/
|
|
532
|
+
max?: number;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Minimum latency in the call, measured in milliseconds.
|
|
536
|
+
*/
|
|
537
|
+
min?: number;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Number of data points (number of times latency is tracked).
|
|
541
|
+
*/
|
|
542
|
+
num?: number;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* 50 percentile of latency, measured in milliseconds.
|
|
546
|
+
*/
|
|
547
|
+
p50?: number;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* 90 percentile of latency, measured in milliseconds.
|
|
551
|
+
*/
|
|
552
|
+
p90?: number;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* 95 percentile of latency, measured in milliseconds.
|
|
556
|
+
*/
|
|
557
|
+
p95?: number;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* 99 percentile of latency, measured in milliseconds.
|
|
561
|
+
*/
|
|
562
|
+
p99?: number;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* All the latency data points in the call, measured in milliseconds.
|
|
566
|
+
*/
|
|
567
|
+
values?: Array<number>;
|
|
568
|
+
}
|
|
569
|
+
|
|
518
570
|
/**
|
|
519
571
|
* End to end latency (from user stops talking to agent start talking) tracking of
|
|
520
572
|
* the call. This latency does not account for the network trip time from Retell
|
|
@@ -1218,7 +1270,7 @@ export interface WebCallResponse {
|
|
|
1218
1270
|
public_log_url?: string;
|
|
1219
1271
|
|
|
1220
1272
|
/**
|
|
1221
|
-
* Recording of the call, with each party
|
|
1273
|
+
* Recording of the call, with each party's audio stored in a separate channel.
|
|
1222
1274
|
* Available after the call ends.
|
|
1223
1275
|
*/
|
|
1224
1276
|
recording_multi_channel_url?: string;
|
|
@@ -1236,7 +1288,7 @@ export interface WebCallResponse {
|
|
|
1236
1288
|
retell_llm_dynamic_variables?: { [key: string]: unknown };
|
|
1237
1289
|
|
|
1238
1290
|
/**
|
|
1239
|
-
* Recording of the call without PII, with each party
|
|
1291
|
+
* Recording of the call without PII, with each party's audio stored in a separate
|
|
1240
1292
|
* channel. Available after the call ends.
|
|
1241
1293
|
*/
|
|
1242
1294
|
scrubbed_recording_multi_channel_url?: string;
|
|
@@ -1381,6 +1433,12 @@ export namespace WebCallResponse {
|
|
|
1381
1433
|
* will be available, as it depends on the type of call and feature used.
|
|
1382
1434
|
*/
|
|
1383
1435
|
export interface Latency {
|
|
1436
|
+
/**
|
|
1437
|
+
* Transcription latency (diff between the duration of the chunks streamed and the
|
|
1438
|
+
* durations of the transcribed part) tracking of the call.
|
|
1439
|
+
*/
|
|
1440
|
+
asr?: Latency.Asr;
|
|
1441
|
+
|
|
1384
1442
|
/**
|
|
1385
1443
|
* End to end latency (from user stops talking to agent start talking) tracking of
|
|
1386
1444
|
* the call. This latency does not account for the network trip time from Retell
|
|
@@ -1424,6 +1482,52 @@ export namespace WebCallResponse {
|
|
|
1424
1482
|
}
|
|
1425
1483
|
|
|
1426
1484
|
export namespace Latency {
|
|
1485
|
+
/**
|
|
1486
|
+
* Transcription latency (diff between the duration of the chunks streamed and the
|
|
1487
|
+
* durations of the transcribed part) tracking of the call.
|
|
1488
|
+
*/
|
|
1489
|
+
export interface Asr {
|
|
1490
|
+
/**
|
|
1491
|
+
* Maximum latency in the call, measured in milliseconds.
|
|
1492
|
+
*/
|
|
1493
|
+
max?: number;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Minimum latency in the call, measured in milliseconds.
|
|
1497
|
+
*/
|
|
1498
|
+
min?: number;
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* Number of data points (number of times latency is tracked).
|
|
1502
|
+
*/
|
|
1503
|
+
num?: number;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* 50 percentile of latency, measured in milliseconds.
|
|
1507
|
+
*/
|
|
1508
|
+
p50?: number;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* 90 percentile of latency, measured in milliseconds.
|
|
1512
|
+
*/
|
|
1513
|
+
p90?: number;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* 95 percentile of latency, measured in milliseconds.
|
|
1517
|
+
*/
|
|
1518
|
+
p95?: number;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* 99 percentile of latency, measured in milliseconds.
|
|
1522
|
+
*/
|
|
1523
|
+
p99?: number;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* All the latency data points in the call, measured in milliseconds.
|
|
1527
|
+
*/
|
|
1528
|
+
values?: Array<number>;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1427
1531
|
/**
|
|
1428
1532
|
* End to end latency (from user stops talking to agent start talking) tracking of
|
|
1429
1533
|
* the call. This latency does not account for the network trip time from Retell
|
|
@@ -2291,6 +2395,19 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2291
2395
|
*/
|
|
2292
2396
|
ambient_sound_volume?: number;
|
|
2293
2397
|
|
|
2398
|
+
/**
|
|
2399
|
+
* Prompt to determine whether the post call or chat analysis should mark the
|
|
2400
|
+
* interaction as successful. Set to null to use the default prompt.
|
|
2401
|
+
*/
|
|
2402
|
+
analysis_successful_prompt?: string | null;
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Prompt to guide how the post call or chat analysis summary should be generated.
|
|
2406
|
+
* When unset, the default system prompt is used. Set to null to use the default
|
|
2407
|
+
* prompt.
|
|
2408
|
+
*/
|
|
2409
|
+
analysis_summary_prompt?: string | null;
|
|
2410
|
+
|
|
2294
2411
|
/**
|
|
2295
2412
|
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
2296
2413
|
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
@@ -2461,11 +2578,9 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2461
2578
|
> | null;
|
|
2462
2579
|
|
|
2463
2580
|
/**
|
|
2464
|
-
* The model to use for post call analysis. Default to gpt-
|
|
2581
|
+
* The model to use for post call analysis. Default to gpt-4.1-mini.
|
|
2465
2582
|
*/
|
|
2466
2583
|
post_call_analysis_model?:
|
|
2467
|
-
| 'gpt-4o'
|
|
2468
|
-
| 'gpt-4o-mini'
|
|
2469
2584
|
| 'gpt-4.1'
|
|
2470
2585
|
| 'gpt-4.1-mini'
|
|
2471
2586
|
| 'gpt-4.1-nano'
|
|
@@ -2473,13 +2588,10 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2473
2588
|
| 'gpt-5-mini'
|
|
2474
2589
|
| 'gpt-5-nano'
|
|
2475
2590
|
| 'claude-4.5-sonnet'
|
|
2476
|
-
| 'claude-4.
|
|
2477
|
-
| 'claude-3.7-sonnet'
|
|
2478
|
-
| 'claude-3.5-haiku'
|
|
2479
|
-
| 'gemini-2.0-flash'
|
|
2480
|
-
| 'gemini-2.0-flash-lite'
|
|
2591
|
+
| 'claude-4.5-haiku'
|
|
2481
2592
|
| 'gemini-2.5-flash'
|
|
2482
|
-
| 'gemini-2.5-flash-lite'
|
|
2593
|
+
| 'gemini-2.5-flash-lite'
|
|
2594
|
+
| null;
|
|
2483
2595
|
|
|
2484
2596
|
/**
|
|
2485
2597
|
* A list of words / phrases and their pronunciation to be used to guide the audio
|
|
@@ -2527,6 +2639,13 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2527
2639
|
*/
|
|
2528
2640
|
ring_duration_ms?: number;
|
|
2529
2641
|
|
|
2642
|
+
/**
|
|
2643
|
+
* The expiration time for the signed url in milliseconds. Only applicable when
|
|
2644
|
+
* opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
|
|
2645
|
+
* apply.
|
|
2646
|
+
*/
|
|
2647
|
+
signed_url_expiration_ms?: number | null;
|
|
2648
|
+
|
|
2530
2649
|
/**
|
|
2531
2650
|
* If set, determines whether speech to text should focus on latency or accuracy.
|
|
2532
2651
|
* Default to fast mode.
|
|
@@ -2912,18 +3031,14 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2912
3031
|
* The LLM model to use
|
|
2913
3032
|
*/
|
|
2914
3033
|
model:
|
|
2915
|
-
| 'gpt-5'
|
|
2916
|
-
| 'gpt-5-mini'
|
|
2917
|
-
| 'gpt-5-nano'
|
|
2918
|
-
| 'gpt-4o'
|
|
2919
|
-
| 'gpt-4o-mini'
|
|
2920
3034
|
| 'gpt-4.1'
|
|
2921
3035
|
| 'gpt-4.1-mini'
|
|
2922
3036
|
| 'gpt-4.1-nano'
|
|
2923
|
-
| '
|
|
2924
|
-
| '
|
|
2925
|
-
| '
|
|
2926
|
-
| '
|
|
3037
|
+
| 'gpt-5'
|
|
3038
|
+
| 'gpt-5-mini'
|
|
3039
|
+
| 'gpt-5-nano'
|
|
3040
|
+
| 'claude-4.5-sonnet'
|
|
3041
|
+
| 'claude-4.5-haiku'
|
|
2927
3042
|
| 'gemini-2.5-flash'
|
|
2928
3043
|
| 'gemini-2.5-flash-lite';
|
|
2929
3044
|
|
|
@@ -2975,18 +3090,14 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2975
3090
|
* Select the underlying text LLM. If not set, would default to gpt-4.1.
|
|
2976
3091
|
*/
|
|
2977
3092
|
model?:
|
|
2978
|
-
| 'gpt-5'
|
|
2979
|
-
| 'gpt-5-mini'
|
|
2980
|
-
| 'gpt-5-nano'
|
|
2981
|
-
| 'gpt-4o'
|
|
2982
|
-
| 'gpt-4o-mini'
|
|
2983
3093
|
| 'gpt-4.1'
|
|
2984
3094
|
| 'gpt-4.1-mini'
|
|
2985
3095
|
| 'gpt-4.1-nano'
|
|
2986
|
-
| '
|
|
2987
|
-
| '
|
|
2988
|
-
| '
|
|
2989
|
-
| '
|
|
3096
|
+
| 'gpt-5'
|
|
3097
|
+
| 'gpt-5-mini'
|
|
3098
|
+
| 'gpt-5-nano'
|
|
3099
|
+
| 'claude-4.5-sonnet'
|
|
3100
|
+
| 'claude-4.5-haiku'
|
|
2990
3101
|
| 'gemini-2.5-flash'
|
|
2991
3102
|
| 'gemini-2.5-flash-lite'
|
|
2992
3103
|
| null;
|
|
@@ -3167,6 +3278,19 @@ export namespace CallCreateWebCallParams {
|
|
|
3167
3278
|
*/
|
|
3168
3279
|
ambient_sound_volume?: number;
|
|
3169
3280
|
|
|
3281
|
+
/**
|
|
3282
|
+
* Prompt to determine whether the post call or chat analysis should mark the
|
|
3283
|
+
* interaction as successful. Set to null to use the default prompt.
|
|
3284
|
+
*/
|
|
3285
|
+
analysis_successful_prompt?: string | null;
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
* Prompt to guide how the post call or chat analysis summary should be generated.
|
|
3289
|
+
* When unset, the default system prompt is used. Set to null to use the default
|
|
3290
|
+
* prompt.
|
|
3291
|
+
*/
|
|
3292
|
+
analysis_summary_prompt?: string | null;
|
|
3293
|
+
|
|
3170
3294
|
/**
|
|
3171
3295
|
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
3172
3296
|
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
@@ -3337,11 +3461,9 @@ export namespace CallCreateWebCallParams {
|
|
|
3337
3461
|
> | null;
|
|
3338
3462
|
|
|
3339
3463
|
/**
|
|
3340
|
-
* The model to use for post call analysis. Default to gpt-
|
|
3464
|
+
* The model to use for post call analysis. Default to gpt-4.1-mini.
|
|
3341
3465
|
*/
|
|
3342
3466
|
post_call_analysis_model?:
|
|
3343
|
-
| 'gpt-4o'
|
|
3344
|
-
| 'gpt-4o-mini'
|
|
3345
3467
|
| 'gpt-4.1'
|
|
3346
3468
|
| 'gpt-4.1-mini'
|
|
3347
3469
|
| 'gpt-4.1-nano'
|
|
@@ -3349,13 +3471,10 @@ export namespace CallCreateWebCallParams {
|
|
|
3349
3471
|
| 'gpt-5-mini'
|
|
3350
3472
|
| 'gpt-5-nano'
|
|
3351
3473
|
| 'claude-4.5-sonnet'
|
|
3352
|
-
| 'claude-4.
|
|
3353
|
-
| 'claude-3.7-sonnet'
|
|
3354
|
-
| 'claude-3.5-haiku'
|
|
3355
|
-
| 'gemini-2.0-flash'
|
|
3356
|
-
| 'gemini-2.0-flash-lite'
|
|
3474
|
+
| 'claude-4.5-haiku'
|
|
3357
3475
|
| 'gemini-2.5-flash'
|
|
3358
|
-
| 'gemini-2.5-flash-lite'
|
|
3476
|
+
| 'gemini-2.5-flash-lite'
|
|
3477
|
+
| null;
|
|
3359
3478
|
|
|
3360
3479
|
/**
|
|
3361
3480
|
* A list of words / phrases and their pronunciation to be used to guide the audio
|
|
@@ -3403,6 +3522,13 @@ export namespace CallCreateWebCallParams {
|
|
|
3403
3522
|
*/
|
|
3404
3523
|
ring_duration_ms?: number;
|
|
3405
3524
|
|
|
3525
|
+
/**
|
|
3526
|
+
* The expiration time for the signed url in milliseconds. Only applicable when
|
|
3527
|
+
* opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
|
|
3528
|
+
* apply.
|
|
3529
|
+
*/
|
|
3530
|
+
signed_url_expiration_ms?: number | null;
|
|
3531
|
+
|
|
3406
3532
|
/**
|
|
3407
3533
|
* If set, determines whether speech to text should focus on latency or accuracy.
|
|
3408
3534
|
* Default to fast mode.
|
|
@@ -3788,18 +3914,14 @@ export namespace CallCreateWebCallParams {
|
|
|
3788
3914
|
* The LLM model to use
|
|
3789
3915
|
*/
|
|
3790
3916
|
model:
|
|
3791
|
-
| 'gpt-5'
|
|
3792
|
-
| 'gpt-5-mini'
|
|
3793
|
-
| 'gpt-5-nano'
|
|
3794
|
-
| 'gpt-4o'
|
|
3795
|
-
| 'gpt-4o-mini'
|
|
3796
3917
|
| 'gpt-4.1'
|
|
3797
3918
|
| 'gpt-4.1-mini'
|
|
3798
3919
|
| 'gpt-4.1-nano'
|
|
3799
|
-
| '
|
|
3800
|
-
| '
|
|
3801
|
-
| '
|
|
3802
|
-
| '
|
|
3920
|
+
| 'gpt-5'
|
|
3921
|
+
| 'gpt-5-mini'
|
|
3922
|
+
| 'gpt-5-nano'
|
|
3923
|
+
| 'claude-4.5-sonnet'
|
|
3924
|
+
| 'claude-4.5-haiku'
|
|
3803
3925
|
| 'gemini-2.5-flash'
|
|
3804
3926
|
| 'gemini-2.5-flash-lite';
|
|
3805
3927
|
|
|
@@ -3851,18 +3973,14 @@ export namespace CallCreateWebCallParams {
|
|
|
3851
3973
|
* Select the underlying text LLM. If not set, would default to gpt-4.1.
|
|
3852
3974
|
*/
|
|
3853
3975
|
model?:
|
|
3854
|
-
| 'gpt-5'
|
|
3855
|
-
| 'gpt-5-mini'
|
|
3856
|
-
| 'gpt-5-nano'
|
|
3857
|
-
| 'gpt-4o'
|
|
3858
|
-
| 'gpt-4o-mini'
|
|
3859
3976
|
| 'gpt-4.1'
|
|
3860
3977
|
| 'gpt-4.1-mini'
|
|
3861
3978
|
| 'gpt-4.1-nano'
|
|
3862
|
-
| '
|
|
3863
|
-
| '
|
|
3864
|
-
| '
|
|
3865
|
-
| '
|
|
3979
|
+
| 'gpt-5'
|
|
3980
|
+
| 'gpt-5-mini'
|
|
3981
|
+
| 'gpt-5-nano'
|
|
3982
|
+
| 'claude-4.5-sonnet'
|
|
3983
|
+
| 'claude-4.5-haiku'
|
|
3866
3984
|
| 'gemini-2.5-flash'
|
|
3867
3985
|
| 'gemini-2.5-flash-lite'
|
|
3868
3986
|
| null;
|
|
@@ -4057,6 +4175,19 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4057
4175
|
*/
|
|
4058
4176
|
ambient_sound_volume?: number;
|
|
4059
4177
|
|
|
4178
|
+
/**
|
|
4179
|
+
* Prompt to determine whether the post call or chat analysis should mark the
|
|
4180
|
+
* interaction as successful. Set to null to use the default prompt.
|
|
4181
|
+
*/
|
|
4182
|
+
analysis_successful_prompt?: string | null;
|
|
4183
|
+
|
|
4184
|
+
/**
|
|
4185
|
+
* Prompt to guide how the post call or chat analysis summary should be generated.
|
|
4186
|
+
* When unset, the default system prompt is used. Set to null to use the default
|
|
4187
|
+
* prompt.
|
|
4188
|
+
*/
|
|
4189
|
+
analysis_summary_prompt?: string | null;
|
|
4190
|
+
|
|
4060
4191
|
/**
|
|
4061
4192
|
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
4062
4193
|
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
@@ -4227,11 +4358,9 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4227
4358
|
> | null;
|
|
4228
4359
|
|
|
4229
4360
|
/**
|
|
4230
|
-
* The model to use for post call analysis. Default to gpt-
|
|
4361
|
+
* The model to use for post call analysis. Default to gpt-4.1-mini.
|
|
4231
4362
|
*/
|
|
4232
4363
|
post_call_analysis_model?:
|
|
4233
|
-
| 'gpt-4o'
|
|
4234
|
-
| 'gpt-4o-mini'
|
|
4235
4364
|
| 'gpt-4.1'
|
|
4236
4365
|
| 'gpt-4.1-mini'
|
|
4237
4366
|
| 'gpt-4.1-nano'
|
|
@@ -4239,13 +4368,10 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4239
4368
|
| 'gpt-5-mini'
|
|
4240
4369
|
| 'gpt-5-nano'
|
|
4241
4370
|
| 'claude-4.5-sonnet'
|
|
4242
|
-
| 'claude-4.
|
|
4243
|
-
| 'claude-3.7-sonnet'
|
|
4244
|
-
| 'claude-3.5-haiku'
|
|
4245
|
-
| 'gemini-2.0-flash'
|
|
4246
|
-
| 'gemini-2.0-flash-lite'
|
|
4371
|
+
| 'claude-4.5-haiku'
|
|
4247
4372
|
| 'gemini-2.5-flash'
|
|
4248
|
-
| 'gemini-2.5-flash-lite'
|
|
4373
|
+
| 'gemini-2.5-flash-lite'
|
|
4374
|
+
| null;
|
|
4249
4375
|
|
|
4250
4376
|
/**
|
|
4251
4377
|
* A list of words / phrases and their pronunciation to be used to guide the audio
|
|
@@ -4293,6 +4419,13 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4293
4419
|
*/
|
|
4294
4420
|
ring_duration_ms?: number;
|
|
4295
4421
|
|
|
4422
|
+
/**
|
|
4423
|
+
* The expiration time for the signed url in milliseconds. Only applicable when
|
|
4424
|
+
* opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
|
|
4425
|
+
* apply.
|
|
4426
|
+
*/
|
|
4427
|
+
signed_url_expiration_ms?: number | null;
|
|
4428
|
+
|
|
4296
4429
|
/**
|
|
4297
4430
|
* If set, determines whether speech to text should focus on latency or accuracy.
|
|
4298
4431
|
* Default to fast mode.
|
|
@@ -4678,18 +4811,14 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4678
4811
|
* The LLM model to use
|
|
4679
4812
|
*/
|
|
4680
4813
|
model:
|
|
4681
|
-
| 'gpt-5'
|
|
4682
|
-
| 'gpt-5-mini'
|
|
4683
|
-
| 'gpt-5-nano'
|
|
4684
|
-
| 'gpt-4o'
|
|
4685
|
-
| 'gpt-4o-mini'
|
|
4686
4814
|
| 'gpt-4.1'
|
|
4687
4815
|
| 'gpt-4.1-mini'
|
|
4688
4816
|
| 'gpt-4.1-nano'
|
|
4689
|
-
| '
|
|
4690
|
-
| '
|
|
4691
|
-
| '
|
|
4692
|
-
| '
|
|
4817
|
+
| 'gpt-5'
|
|
4818
|
+
| 'gpt-5-mini'
|
|
4819
|
+
| 'gpt-5-nano'
|
|
4820
|
+
| 'claude-4.5-sonnet'
|
|
4821
|
+
| 'claude-4.5-haiku'
|
|
4693
4822
|
| 'gemini-2.5-flash'
|
|
4694
4823
|
| 'gemini-2.5-flash-lite';
|
|
4695
4824
|
|
|
@@ -4741,18 +4870,14 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
4741
4870
|
* Select the underlying text LLM. If not set, would default to gpt-4.1.
|
|
4742
4871
|
*/
|
|
4743
4872
|
model?:
|
|
4744
|
-
| 'gpt-5'
|
|
4745
|
-
| 'gpt-5-mini'
|
|
4746
|
-
| 'gpt-5-nano'
|
|
4747
|
-
| 'gpt-4o'
|
|
4748
|
-
| 'gpt-4o-mini'
|
|
4749
4873
|
| 'gpt-4.1'
|
|
4750
4874
|
| 'gpt-4.1-mini'
|
|
4751
4875
|
| 'gpt-4.1-nano'
|
|
4752
|
-
| '
|
|
4753
|
-
| '
|
|
4754
|
-
| '
|
|
4755
|
-
| '
|
|
4876
|
+
| 'gpt-5'
|
|
4877
|
+
| 'gpt-5-mini'
|
|
4878
|
+
| 'gpt-5-nano'
|
|
4879
|
+
| 'claude-4.5-sonnet'
|
|
4880
|
+
| 'claude-4.5-haiku'
|
|
4756
4881
|
| 'gemini-2.5-flash'
|
|
4757
4882
|
| 'gemini-2.5-flash-lite'
|
|
4758
4883
|
| null;
|
|
@@ -166,6 +166,18 @@ export interface ChatAgentResponse {
|
|
|
166
166
|
*/
|
|
167
167
|
agent_name?: string | null;
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* The prompt to use for post call analysis to evaluate whether the call is
|
|
171
|
+
* successful. Set to null to use the default prompt.
|
|
172
|
+
*/
|
|
173
|
+
analysis_successful_prompt?: string | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The prompt to use for post call analysis to summarize the call. Set to null to
|
|
177
|
+
* use the default prompt.
|
|
178
|
+
*/
|
|
179
|
+
analysis_summary_prompt?: string | null;
|
|
180
|
+
|
|
169
181
|
/**
|
|
170
182
|
* Message to display when the chat is automatically closed.
|
|
171
183
|
*/
|
|
@@ -262,23 +274,24 @@ export interface ChatAgentResponse {
|
|
|
262
274
|
* The model to use for post chat analysis. Default to gpt-4.1-mini.
|
|
263
275
|
*/
|
|
264
276
|
post_chat_analysis_model?:
|
|
265
|
-
| 'gpt-4o'
|
|
266
|
-
| 'gpt-4o-mini'
|
|
267
277
|
| 'gpt-4.1'
|
|
268
278
|
| 'gpt-4.1-mini'
|
|
269
279
|
| 'gpt-4.1-nano'
|
|
270
280
|
| 'gpt-5'
|
|
271
|
-
| 'gpt-5.1'
|
|
272
281
|
| 'gpt-5-mini'
|
|
273
282
|
| 'gpt-5-nano'
|
|
274
283
|
| 'claude-4.5-sonnet'
|
|
275
|
-
| 'claude-4.
|
|
276
|
-
| 'claude-3.7-sonnet'
|
|
277
|
-
| 'claude-3.5-haiku'
|
|
278
|
-
| 'gemini-2.0-flash'
|
|
279
|
-
| 'gemini-2.0-flash-lite'
|
|
284
|
+
| 'claude-4.5-haiku'
|
|
280
285
|
| 'gemini-2.5-flash'
|
|
281
|
-
| 'gemini-2.5-flash-lite'
|
|
286
|
+
| 'gemini-2.5-flash-lite'
|
|
287
|
+
| null;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The expiration time for the signed url in milliseconds. Only applicable when
|
|
291
|
+
* opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
|
|
292
|
+
* apply.
|
|
293
|
+
*/
|
|
294
|
+
signed_url_expiration_ms?: number | null;
|
|
282
295
|
|
|
283
296
|
/**
|
|
284
297
|
* The version of the chat agent.
|
|
@@ -475,6 +488,18 @@ export interface ChatAgentCreateParams {
|
|
|
475
488
|
*/
|
|
476
489
|
agent_name?: string | null;
|
|
477
490
|
|
|
491
|
+
/**
|
|
492
|
+
* The prompt to use for post call analysis to evaluate whether the call is
|
|
493
|
+
* successful. Set to null to use the default prompt.
|
|
494
|
+
*/
|
|
495
|
+
analysis_successful_prompt?: string | null;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* The prompt to use for post call analysis to summarize the call. Set to null to
|
|
499
|
+
* use the default prompt.
|
|
500
|
+
*/
|
|
501
|
+
analysis_summary_prompt?: string | null;
|
|
502
|
+
|
|
478
503
|
/**
|
|
479
504
|
* Message to display when the chat is automatically closed.
|
|
480
505
|
*/
|
|
@@ -566,23 +591,24 @@ export interface ChatAgentCreateParams {
|
|
|
566
591
|
* The model to use for post chat analysis. Default to gpt-4.1-mini.
|
|
567
592
|
*/
|
|
568
593
|
post_chat_analysis_model?:
|
|
569
|
-
| 'gpt-4o'
|
|
570
|
-
| 'gpt-4o-mini'
|
|
571
594
|
| 'gpt-4.1'
|
|
572
595
|
| 'gpt-4.1-mini'
|
|
573
596
|
| 'gpt-4.1-nano'
|
|
574
597
|
| 'gpt-5'
|
|
575
|
-
| 'gpt-5.1'
|
|
576
598
|
| 'gpt-5-mini'
|
|
577
599
|
| 'gpt-5-nano'
|
|
578
600
|
| 'claude-4.5-sonnet'
|
|
579
|
-
| 'claude-4.
|
|
580
|
-
| 'claude-3.7-sonnet'
|
|
581
|
-
| 'claude-3.5-haiku'
|
|
582
|
-
| 'gemini-2.0-flash'
|
|
583
|
-
| 'gemini-2.0-flash-lite'
|
|
601
|
+
| 'claude-4.5-haiku'
|
|
584
602
|
| 'gemini-2.5-flash'
|
|
585
|
-
| 'gemini-2.5-flash-lite'
|
|
603
|
+
| 'gemini-2.5-flash-lite'
|
|
604
|
+
| null;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* The expiration time for the signed url in milliseconds. Only applicable when
|
|
608
|
+
* opt_in_signed_url is true. If not set, default value of 86400000 (24 hours) will
|
|
609
|
+
* apply.
|
|
610
|
+
*/
|
|
611
|
+
signed_url_expiration_ms?: number | null;
|
|
586
612
|
|
|
587
613
|
/**
|
|
588
614
|
* The timeout for the webhook in milliseconds. If not set, default value of 10000
|
|
@@ -774,6 +800,18 @@ export interface ChatAgentUpdateParams {
|
|
|
774
800
|
*/
|
|
775
801
|
agent_name?: string | null;
|
|
776
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Body param: The prompt to use for post call analysis to evaluate whether the
|
|
805
|
+
* call is successful. Set to null to use the default prompt.
|
|
806
|
+
*/
|
|
807
|
+
analysis_successful_prompt?: string | null;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Body param: The prompt to use for post call analysis to summarize the call. Set
|
|
811
|
+
* to null to use the default prompt.
|
|
812
|
+
*/
|
|
813
|
+
analysis_summary_prompt?: string | null;
|
|
814
|
+
|
|
777
815
|
/**
|
|
778
816
|
* Body param: Message to display when the chat is automatically closed.
|
|
779
817
|
*/
|
|
@@ -866,23 +904,17 @@ export interface ChatAgentUpdateParams {
|
|
|
866
904
|
* Body param: The model to use for post chat analysis. Default to gpt-4.1-mini.
|
|
867
905
|
*/
|
|
868
906
|
post_chat_analysis_model?:
|
|
869
|
-
| 'gpt-4o'
|
|
870
|
-
| 'gpt-4o-mini'
|
|
871
907
|
| 'gpt-4.1'
|
|
872
908
|
| 'gpt-4.1-mini'
|
|
873
909
|
| 'gpt-4.1-nano'
|
|
874
910
|
| 'gpt-5'
|
|
875
|
-
| 'gpt-5.1'
|
|
876
911
|
| 'gpt-5-mini'
|
|
877
912
|
| 'gpt-5-nano'
|
|
878
913
|
| 'claude-4.5-sonnet'
|
|
879
|
-
| 'claude-4.
|
|
880
|
-
| 'claude-3.7-sonnet'
|
|
881
|
-
| 'claude-3.5-haiku'
|
|
882
|
-
| 'gemini-2.0-flash'
|
|
883
|
-
| 'gemini-2.0-flash-lite'
|
|
914
|
+
| 'claude-4.5-haiku'
|
|
884
915
|
| 'gemini-2.5-flash'
|
|
885
|
-
| 'gemini-2.5-flash-lite'
|
|
916
|
+
| 'gemini-2.5-flash-lite'
|
|
917
|
+
| null;
|
|
886
918
|
|
|
887
919
|
/**
|
|
888
920
|
* Body param: The Response Engine to attach to the agent. It is used to generate
|
|
@@ -894,6 +926,13 @@ export interface ChatAgentUpdateParams {
|
|
|
894
926
|
| ChatAgentUpdateParams.ResponseEngineCustomLm
|
|
895
927
|
| ChatAgentUpdateParams.ResponseEngineConversationFlow;
|
|
896
928
|
|
|
929
|
+
/**
|
|
930
|
+
* Body param: The expiration time for the signed url in milliseconds. Only
|
|
931
|
+
* applicable when opt_in_signed_url is true. If not set, default value of 86400000
|
|
932
|
+
* (24 hours) will apply.
|
|
933
|
+
*/
|
|
934
|
+
signed_url_expiration_ms?: number | null;
|
|
935
|
+
|
|
897
936
|
/**
|
|
898
937
|
* Body param: The timeout for the webhook in milliseconds. If not set, default
|
|
899
938
|
* value of 10000 will apply.
|