retell-sdk 4.60.0 → 4.62.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.
@@ -9,7 +9,7 @@ export declare class ConversationFlow extends APIResource {
9
9
  * ```ts
10
10
  * const conversationFlowResponse =
11
11
  * await client.conversationFlow.create({
12
- * model_choice: { model: 'gpt-5', type: 'cascading' },
12
+ * model_choice: { model: 'gpt-4.1', type: 'cascading' },
13
13
  * nodes: [
14
14
  * {
15
15
  * id: 'start',
@@ -407,7 +407,7 @@ export declare namespace ConversationFlowResponse {
407
407
  /**
408
408
  * The LLM model to use
409
409
  */
410
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
410
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
411
411
  /**
412
412
  * Type of model choice
413
413
  */
@@ -762,7 +762,7 @@ export declare namespace ConversationFlowResponse {
762
762
  /**
763
763
  * The LLM model to use
764
764
  */
765
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
765
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
766
766
  /**
767
767
  * Type of model choice
768
768
  */
@@ -780,7 +780,7 @@ export declare namespace ConversationFlowResponse {
780
780
  id: string;
781
781
  edge: TransferCallNode.Edge;
782
782
  transfer_destination: TransferCallNode.TransferDestinationPredefined | TransferCallNode.TransferDestinationInferred;
783
- transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer;
783
+ transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer | TransferCallNode.TransferOptionAgenticWarmTransfer;
784
784
  /**
785
785
  * Type of the node
786
786
  */
@@ -988,6 +988,88 @@ export declare namespace ConversationFlowResponse {
988
988
  type?: 'static_message';
989
989
  }
990
990
  }
991
+ interface TransferOptionAgenticWarmTransfer {
992
+ /**
993
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
994
+ */
995
+ agentic_transfer_config: TransferOptionAgenticWarmTransfer.AgenticTransferConfig;
996
+ /**
997
+ * The type of the transfer.
998
+ */
999
+ type: 'agentic_warm_transfer';
1000
+ /**
1001
+ * Whether to play an audio cue when bridging the call. Defaults to true.
1002
+ */
1003
+ enable_bridge_audio_cue?: boolean;
1004
+ /**
1005
+ * The music to play while the caller is being transferred.
1006
+ */
1007
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
1008
+ /**
1009
+ * If set, when transfer is successful, will say the handoff message to both the
1010
+ * transferee and the agent receiving the transfer. Can leave either a static
1011
+ * message or a dynamic one based on prompt. Set to null to disable warm handoff.
1012
+ */
1013
+ public_handoff_option?: TransferOptionAgenticWarmTransfer.WarmTransferPrompt | TransferOptionAgenticWarmTransfer.WarmTransferStaticMessage;
1014
+ /**
1015
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
1016
+ * transferring, requires the telephony side to support caller id override. Retell
1017
+ * Twilio numbers support this option.
1018
+ */
1019
+ show_transferee_as_caller?: boolean;
1020
+ }
1021
+ namespace TransferOptionAgenticWarmTransfer {
1022
+ /**
1023
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
1024
+ */
1025
+ interface AgenticTransferConfig {
1026
+ /**
1027
+ * The action to take when the transfer agent times out without making a decision.
1028
+ * Defaults to cancel_transfer.
1029
+ */
1030
+ action_on_timeout?: 'bridge_transfer' | 'cancel_transfer';
1031
+ /**
1032
+ * The agent that will mediate the transfer decision.
1033
+ */
1034
+ transfer_agent?: AgenticTransferConfig.TransferAgent;
1035
+ /**
1036
+ * The maximum time to wait for the transfer agent to make a decision, in
1037
+ * milliseconds. Defaults to 30000 (30 seconds).
1038
+ */
1039
+ transfer_timeout_ms?: number;
1040
+ }
1041
+ namespace AgenticTransferConfig {
1042
+ /**
1043
+ * The agent that will mediate the transfer decision.
1044
+ */
1045
+ interface TransferAgent {
1046
+ /**
1047
+ * The agent ID of the transfer agent. This agent must have isTransferAgent set to
1048
+ * true and should use bridge_transfer and cancel_transfer tools (for Retell LLM)
1049
+ * or BridgeTransferNode and CancelTransferNode (for Conversation Flow).
1050
+ */
1051
+ agent_id: string;
1052
+ /**
1053
+ * The version of the transfer agent to use.
1054
+ */
1055
+ agent_version: number;
1056
+ }
1057
+ }
1058
+ interface WarmTransferPrompt {
1059
+ /**
1060
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
1061
+ */
1062
+ prompt?: string;
1063
+ type?: 'prompt';
1064
+ }
1065
+ interface WarmTransferStaticMessage {
1066
+ /**
1067
+ * The static message to be used for warm handoff. Can contain dynamic variables.
1068
+ */
1069
+ message?: string;
1070
+ type?: 'static_message';
1071
+ }
1072
+ }
991
1073
  /**
992
1074
  * Position for frontend display
993
1075
  */
@@ -1061,7 +1143,7 @@ export declare namespace ConversationFlowResponse {
1061
1143
  /**
1062
1144
  * The LLM model to use
1063
1145
  */
1064
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
1146
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
1065
1147
  /**
1066
1148
  * Type of model choice
1067
1149
  */
@@ -1253,7 +1335,7 @@ export declare namespace ConversationFlowResponse {
1253
1335
  /**
1254
1336
  * The LLM model to use
1255
1337
  */
1256
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
1338
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
1257
1339
  /**
1258
1340
  * Type of model choice
1259
1341
  */
@@ -1921,7 +2003,7 @@ export declare namespace ConversationFlowResponse {
1921
2003
  /**
1922
2004
  * The LLM model to use
1923
2005
  */
1924
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
2006
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
1925
2007
  /**
1926
2008
  * Type of model choice
1927
2009
  */
@@ -2707,7 +2789,7 @@ export declare namespace ConversationFlowResponse {
2707
2789
  /**
2708
2790
  * The LLM model to use
2709
2791
  */
2710
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
2792
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
2711
2793
  /**
2712
2794
  * Type of model choice
2713
2795
  */
@@ -2938,7 +3020,7 @@ export declare namespace ConversationFlowResponse {
2938
3020
  /**
2939
3021
  * The LLM model to use
2940
3022
  */
2941
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3023
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
2942
3024
  /**
2943
3025
  * Type of model choice
2944
3026
  */
@@ -3293,7 +3375,7 @@ export declare namespace ConversationFlowResponse {
3293
3375
  /**
3294
3376
  * The LLM model to use
3295
3377
  */
3296
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3378
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3297
3379
  /**
3298
3380
  * Type of model choice
3299
3381
  */
@@ -3311,7 +3393,7 @@ export declare namespace ConversationFlowResponse {
3311
3393
  id: string;
3312
3394
  edge: TransferCallNode.Edge;
3313
3395
  transfer_destination: TransferCallNode.TransferDestinationPredefined | TransferCallNode.TransferDestinationInferred;
3314
- transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer;
3396
+ transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer | TransferCallNode.TransferOptionAgenticWarmTransfer;
3315
3397
  /**
3316
3398
  * Type of the node
3317
3399
  */
@@ -3519,6 +3601,88 @@ export declare namespace ConversationFlowResponse {
3519
3601
  type?: 'static_message';
3520
3602
  }
3521
3603
  }
3604
+ interface TransferOptionAgenticWarmTransfer {
3605
+ /**
3606
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
3607
+ */
3608
+ agentic_transfer_config: TransferOptionAgenticWarmTransfer.AgenticTransferConfig;
3609
+ /**
3610
+ * The type of the transfer.
3611
+ */
3612
+ type: 'agentic_warm_transfer';
3613
+ /**
3614
+ * Whether to play an audio cue when bridging the call. Defaults to true.
3615
+ */
3616
+ enable_bridge_audio_cue?: boolean;
3617
+ /**
3618
+ * The music to play while the caller is being transferred.
3619
+ */
3620
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
3621
+ /**
3622
+ * If set, when transfer is successful, will say the handoff message to both the
3623
+ * transferee and the agent receiving the transfer. Can leave either a static
3624
+ * message or a dynamic one based on prompt. Set to null to disable warm handoff.
3625
+ */
3626
+ public_handoff_option?: TransferOptionAgenticWarmTransfer.WarmTransferPrompt | TransferOptionAgenticWarmTransfer.WarmTransferStaticMessage;
3627
+ /**
3628
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
3629
+ * transferring, requires the telephony side to support caller id override. Retell
3630
+ * Twilio numbers support this option.
3631
+ */
3632
+ show_transferee_as_caller?: boolean;
3633
+ }
3634
+ namespace TransferOptionAgenticWarmTransfer {
3635
+ /**
3636
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
3637
+ */
3638
+ interface AgenticTransferConfig {
3639
+ /**
3640
+ * The action to take when the transfer agent times out without making a decision.
3641
+ * Defaults to cancel_transfer.
3642
+ */
3643
+ action_on_timeout?: 'bridge_transfer' | 'cancel_transfer';
3644
+ /**
3645
+ * The agent that will mediate the transfer decision.
3646
+ */
3647
+ transfer_agent?: AgenticTransferConfig.TransferAgent;
3648
+ /**
3649
+ * The maximum time to wait for the transfer agent to make a decision, in
3650
+ * milliseconds. Defaults to 30000 (30 seconds).
3651
+ */
3652
+ transfer_timeout_ms?: number;
3653
+ }
3654
+ namespace AgenticTransferConfig {
3655
+ /**
3656
+ * The agent that will mediate the transfer decision.
3657
+ */
3658
+ interface TransferAgent {
3659
+ /**
3660
+ * The agent ID of the transfer agent. This agent must have isTransferAgent set to
3661
+ * true and should use bridge_transfer and cancel_transfer tools (for Retell LLM)
3662
+ * or BridgeTransferNode and CancelTransferNode (for Conversation Flow).
3663
+ */
3664
+ agent_id: string;
3665
+ /**
3666
+ * The version of the transfer agent to use.
3667
+ */
3668
+ agent_version: number;
3669
+ }
3670
+ }
3671
+ interface WarmTransferPrompt {
3672
+ /**
3673
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
3674
+ */
3675
+ prompt?: string;
3676
+ type?: 'prompt';
3677
+ }
3678
+ interface WarmTransferStaticMessage {
3679
+ /**
3680
+ * The static message to be used for warm handoff. Can contain dynamic variables.
3681
+ */
3682
+ message?: string;
3683
+ type?: 'static_message';
3684
+ }
3685
+ }
3522
3686
  /**
3523
3687
  * Position for frontend display
3524
3688
  */
@@ -3592,7 +3756,7 @@ export declare namespace ConversationFlowResponse {
3592
3756
  /**
3593
3757
  * The LLM model to use
3594
3758
  */
3595
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3759
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3596
3760
  /**
3597
3761
  * Type of model choice
3598
3762
  */
@@ -3784,7 +3948,7 @@ export declare namespace ConversationFlowResponse {
3784
3948
  /**
3785
3949
  * The LLM model to use
3786
3950
  */
3787
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3951
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
3788
3952
  /**
3789
3953
  * Type of model choice
3790
3954
  */
@@ -4452,7 +4616,7 @@ export declare namespace ConversationFlowResponse {
4452
4616
  /**
4453
4617
  * The LLM model to use
4454
4618
  */
4455
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
4619
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
4456
4620
  /**
4457
4621
  * Type of model choice
4458
4622
  */
@@ -5270,7 +5434,7 @@ export declare namespace ConversationFlowCreateParams {
5270
5434
  /**
5271
5435
  * The LLM model to use
5272
5436
  */
5273
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
5437
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
5274
5438
  /**
5275
5439
  * Type of model choice
5276
5440
  */
@@ -5501,7 +5665,7 @@ export declare namespace ConversationFlowCreateParams {
5501
5665
  /**
5502
5666
  * The LLM model to use
5503
5667
  */
5504
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
5668
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
5505
5669
  /**
5506
5670
  * Type of model choice
5507
5671
  */
@@ -5856,7 +6020,7 @@ export declare namespace ConversationFlowCreateParams {
5856
6020
  /**
5857
6021
  * The LLM model to use
5858
6022
  */
5859
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
6023
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
5860
6024
  /**
5861
6025
  * Type of model choice
5862
6026
  */
@@ -5874,7 +6038,7 @@ export declare namespace ConversationFlowCreateParams {
5874
6038
  id: string;
5875
6039
  edge: TransferCallNode.Edge;
5876
6040
  transfer_destination: TransferCallNode.TransferDestinationPredefined | TransferCallNode.TransferDestinationInferred;
5877
- transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer;
6041
+ transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer | TransferCallNode.TransferOptionAgenticWarmTransfer;
5878
6042
  /**
5879
6043
  * Type of the node
5880
6044
  */
@@ -6082,6 +6246,88 @@ export declare namespace ConversationFlowCreateParams {
6082
6246
  type?: 'static_message';
6083
6247
  }
6084
6248
  }
6249
+ interface TransferOptionAgenticWarmTransfer {
6250
+ /**
6251
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
6252
+ */
6253
+ agentic_transfer_config: TransferOptionAgenticWarmTransfer.AgenticTransferConfig;
6254
+ /**
6255
+ * The type of the transfer.
6256
+ */
6257
+ type: 'agentic_warm_transfer';
6258
+ /**
6259
+ * Whether to play an audio cue when bridging the call. Defaults to true.
6260
+ */
6261
+ enable_bridge_audio_cue?: boolean;
6262
+ /**
6263
+ * The music to play while the caller is being transferred.
6264
+ */
6265
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
6266
+ /**
6267
+ * If set, when transfer is successful, will say the handoff message to both the
6268
+ * transferee and the agent receiving the transfer. Can leave either a static
6269
+ * message or a dynamic one based on prompt. Set to null to disable warm handoff.
6270
+ */
6271
+ public_handoff_option?: TransferOptionAgenticWarmTransfer.WarmTransferPrompt | TransferOptionAgenticWarmTransfer.WarmTransferStaticMessage;
6272
+ /**
6273
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
6274
+ * transferring, requires the telephony side to support caller id override. Retell
6275
+ * Twilio numbers support this option.
6276
+ */
6277
+ show_transferee_as_caller?: boolean;
6278
+ }
6279
+ namespace TransferOptionAgenticWarmTransfer {
6280
+ /**
6281
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
6282
+ */
6283
+ interface AgenticTransferConfig {
6284
+ /**
6285
+ * The action to take when the transfer agent times out without making a decision.
6286
+ * Defaults to cancel_transfer.
6287
+ */
6288
+ action_on_timeout?: 'bridge_transfer' | 'cancel_transfer';
6289
+ /**
6290
+ * The agent that will mediate the transfer decision.
6291
+ */
6292
+ transfer_agent?: AgenticTransferConfig.TransferAgent;
6293
+ /**
6294
+ * The maximum time to wait for the transfer agent to make a decision, in
6295
+ * milliseconds. Defaults to 30000 (30 seconds).
6296
+ */
6297
+ transfer_timeout_ms?: number;
6298
+ }
6299
+ namespace AgenticTransferConfig {
6300
+ /**
6301
+ * The agent that will mediate the transfer decision.
6302
+ */
6303
+ interface TransferAgent {
6304
+ /**
6305
+ * The agent ID of the transfer agent. This agent must have isTransferAgent set to
6306
+ * true and should use bridge_transfer and cancel_transfer tools (for Retell LLM)
6307
+ * or BridgeTransferNode and CancelTransferNode (for Conversation Flow).
6308
+ */
6309
+ agent_id: string;
6310
+ /**
6311
+ * The version of the transfer agent to use.
6312
+ */
6313
+ agent_version: number;
6314
+ }
6315
+ }
6316
+ interface WarmTransferPrompt {
6317
+ /**
6318
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
6319
+ */
6320
+ prompt?: string;
6321
+ type?: 'prompt';
6322
+ }
6323
+ interface WarmTransferStaticMessage {
6324
+ /**
6325
+ * The static message to be used for warm handoff. Can contain dynamic variables.
6326
+ */
6327
+ message?: string;
6328
+ type?: 'static_message';
6329
+ }
6330
+ }
6085
6331
  /**
6086
6332
  * Position for frontend display
6087
6333
  */
@@ -6155,7 +6401,7 @@ export declare namespace ConversationFlowCreateParams {
6155
6401
  /**
6156
6402
  * The LLM model to use
6157
6403
  */
6158
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
6404
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
6159
6405
  /**
6160
6406
  * Type of model choice
6161
6407
  */
@@ -6347,7 +6593,7 @@ export declare namespace ConversationFlowCreateParams {
6347
6593
  /**
6348
6594
  * The LLM model to use
6349
6595
  */
6350
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
6596
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
6351
6597
  /**
6352
6598
  * Type of model choice
6353
6599
  */
@@ -7015,7 +7261,7 @@ export declare namespace ConversationFlowCreateParams {
7015
7261
  /**
7016
7262
  * The LLM model to use
7017
7263
  */
7018
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
7264
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
7019
7265
  /**
7020
7266
  * Type of model choice
7021
7267
  */
@@ -7852,7 +8098,7 @@ export declare namespace ConversationFlowCreateParams {
7852
8098
  /**
7853
8099
  * The LLM model to use
7854
8100
  */
7855
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
8101
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
7856
8102
  /**
7857
8103
  * Type of model choice
7858
8104
  */
@@ -8207,7 +8453,7 @@ export declare namespace ConversationFlowCreateParams {
8207
8453
  /**
8208
8454
  * The LLM model to use
8209
8455
  */
8210
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
8456
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
8211
8457
  /**
8212
8458
  * Type of model choice
8213
8459
  */
@@ -8225,7 +8471,7 @@ export declare namespace ConversationFlowCreateParams {
8225
8471
  id: string;
8226
8472
  edge: TransferCallNode.Edge;
8227
8473
  transfer_destination: TransferCallNode.TransferDestinationPredefined | TransferCallNode.TransferDestinationInferred;
8228
- transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer;
8474
+ transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer | TransferCallNode.TransferOptionAgenticWarmTransfer;
8229
8475
  /**
8230
8476
  * Type of the node
8231
8477
  */
@@ -8433,6 +8679,88 @@ export declare namespace ConversationFlowCreateParams {
8433
8679
  type?: 'static_message';
8434
8680
  }
8435
8681
  }
8682
+ interface TransferOptionAgenticWarmTransfer {
8683
+ /**
8684
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
8685
+ */
8686
+ agentic_transfer_config: TransferOptionAgenticWarmTransfer.AgenticTransferConfig;
8687
+ /**
8688
+ * The type of the transfer.
8689
+ */
8690
+ type: 'agentic_warm_transfer';
8691
+ /**
8692
+ * Whether to play an audio cue when bridging the call. Defaults to true.
8693
+ */
8694
+ enable_bridge_audio_cue?: boolean;
8695
+ /**
8696
+ * The music to play while the caller is being transferred.
8697
+ */
8698
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
8699
+ /**
8700
+ * If set, when transfer is successful, will say the handoff message to both the
8701
+ * transferee and the agent receiving the transfer. Can leave either a static
8702
+ * message or a dynamic one based on prompt. Set to null to disable warm handoff.
8703
+ */
8704
+ public_handoff_option?: TransferOptionAgenticWarmTransfer.WarmTransferPrompt | TransferOptionAgenticWarmTransfer.WarmTransferStaticMessage;
8705
+ /**
8706
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
8707
+ * transferring, requires the telephony side to support caller id override. Retell
8708
+ * Twilio numbers support this option.
8709
+ */
8710
+ show_transferee_as_caller?: boolean;
8711
+ }
8712
+ namespace TransferOptionAgenticWarmTransfer {
8713
+ /**
8714
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
8715
+ */
8716
+ interface AgenticTransferConfig {
8717
+ /**
8718
+ * The action to take when the transfer agent times out without making a decision.
8719
+ * Defaults to cancel_transfer.
8720
+ */
8721
+ action_on_timeout?: 'bridge_transfer' | 'cancel_transfer';
8722
+ /**
8723
+ * The agent that will mediate the transfer decision.
8724
+ */
8725
+ transfer_agent?: AgenticTransferConfig.TransferAgent;
8726
+ /**
8727
+ * The maximum time to wait for the transfer agent to make a decision, in
8728
+ * milliseconds. Defaults to 30000 (30 seconds).
8729
+ */
8730
+ transfer_timeout_ms?: number;
8731
+ }
8732
+ namespace AgenticTransferConfig {
8733
+ /**
8734
+ * The agent that will mediate the transfer decision.
8735
+ */
8736
+ interface TransferAgent {
8737
+ /**
8738
+ * The agent ID of the transfer agent. This agent must have isTransferAgent set to
8739
+ * true and should use bridge_transfer and cancel_transfer tools (for Retell LLM)
8740
+ * or BridgeTransferNode and CancelTransferNode (for Conversation Flow).
8741
+ */
8742
+ agent_id: string;
8743
+ /**
8744
+ * The version of the transfer agent to use.
8745
+ */
8746
+ agent_version: number;
8747
+ }
8748
+ }
8749
+ interface WarmTransferPrompt {
8750
+ /**
8751
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
8752
+ */
8753
+ prompt?: string;
8754
+ type?: 'prompt';
8755
+ }
8756
+ interface WarmTransferStaticMessage {
8757
+ /**
8758
+ * The static message to be used for warm handoff. Can contain dynamic variables.
8759
+ */
8760
+ message?: string;
8761
+ type?: 'static_message';
8762
+ }
8763
+ }
8436
8764
  /**
8437
8765
  * Position for frontend display
8438
8766
  */
@@ -8506,7 +8834,7 @@ export declare namespace ConversationFlowCreateParams {
8506
8834
  /**
8507
8835
  * The LLM model to use
8508
8836
  */
8509
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
8837
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
8510
8838
  /**
8511
8839
  * Type of model choice
8512
8840
  */
@@ -8698,7 +9026,7 @@ export declare namespace ConversationFlowCreateParams {
8698
9026
  /**
8699
9027
  * The LLM model to use
8700
9028
  */
8701
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
9029
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
8702
9030
  /**
8703
9031
  * Type of model choice
8704
9032
  */
@@ -9366,7 +9694,7 @@ export declare namespace ConversationFlowCreateParams {
9366
9694
  /**
9367
9695
  * The LLM model to use
9368
9696
  */
9369
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
9697
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
9370
9698
  /**
9371
9699
  * Type of model choice
9372
9700
  */
@@ -10628,7 +10956,7 @@ export declare namespace ConversationFlowUpdateParams {
10628
10956
  /**
10629
10957
  * The LLM model to use
10630
10958
  */
10631
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
10959
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
10632
10960
  /**
10633
10961
  * Type of model choice
10634
10962
  */
@@ -10983,7 +11311,7 @@ export declare namespace ConversationFlowUpdateParams {
10983
11311
  /**
10984
11312
  * The LLM model to use
10985
11313
  */
10986
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
11314
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
10987
11315
  /**
10988
11316
  * Type of model choice
10989
11317
  */
@@ -11001,7 +11329,7 @@ export declare namespace ConversationFlowUpdateParams {
11001
11329
  id: string;
11002
11330
  edge: TransferCallNode.Edge;
11003
11331
  transfer_destination: TransferCallNode.TransferDestinationPredefined | TransferCallNode.TransferDestinationInferred;
11004
- transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer;
11332
+ transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer | TransferCallNode.TransferOptionAgenticWarmTransfer;
11005
11333
  /**
11006
11334
  * Type of the node
11007
11335
  */
@@ -11209,6 +11537,88 @@ export declare namespace ConversationFlowUpdateParams {
11209
11537
  type?: 'static_message';
11210
11538
  }
11211
11539
  }
11540
+ interface TransferOptionAgenticWarmTransfer {
11541
+ /**
11542
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
11543
+ */
11544
+ agentic_transfer_config: TransferOptionAgenticWarmTransfer.AgenticTransferConfig;
11545
+ /**
11546
+ * The type of the transfer.
11547
+ */
11548
+ type: 'agentic_warm_transfer';
11549
+ /**
11550
+ * Whether to play an audio cue when bridging the call. Defaults to true.
11551
+ */
11552
+ enable_bridge_audio_cue?: boolean;
11553
+ /**
11554
+ * The music to play while the caller is being transferred.
11555
+ */
11556
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
11557
+ /**
11558
+ * If set, when transfer is successful, will say the handoff message to both the
11559
+ * transferee and the agent receiving the transfer. Can leave either a static
11560
+ * message or a dynamic one based on prompt. Set to null to disable warm handoff.
11561
+ */
11562
+ public_handoff_option?: TransferOptionAgenticWarmTransfer.WarmTransferPrompt | TransferOptionAgenticWarmTransfer.WarmTransferStaticMessage;
11563
+ /**
11564
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
11565
+ * transferring, requires the telephony side to support caller id override. Retell
11566
+ * Twilio numbers support this option.
11567
+ */
11568
+ show_transferee_as_caller?: boolean;
11569
+ }
11570
+ namespace TransferOptionAgenticWarmTransfer {
11571
+ /**
11572
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
11573
+ */
11574
+ interface AgenticTransferConfig {
11575
+ /**
11576
+ * The action to take when the transfer agent times out without making a decision.
11577
+ * Defaults to cancel_transfer.
11578
+ */
11579
+ action_on_timeout?: 'bridge_transfer' | 'cancel_transfer';
11580
+ /**
11581
+ * The agent that will mediate the transfer decision.
11582
+ */
11583
+ transfer_agent?: AgenticTransferConfig.TransferAgent;
11584
+ /**
11585
+ * The maximum time to wait for the transfer agent to make a decision, in
11586
+ * milliseconds. Defaults to 30000 (30 seconds).
11587
+ */
11588
+ transfer_timeout_ms?: number;
11589
+ }
11590
+ namespace AgenticTransferConfig {
11591
+ /**
11592
+ * The agent that will mediate the transfer decision.
11593
+ */
11594
+ interface TransferAgent {
11595
+ /**
11596
+ * The agent ID of the transfer agent. This agent must have isTransferAgent set to
11597
+ * true and should use bridge_transfer and cancel_transfer tools (for Retell LLM)
11598
+ * or BridgeTransferNode and CancelTransferNode (for Conversation Flow).
11599
+ */
11600
+ agent_id: string;
11601
+ /**
11602
+ * The version of the transfer agent to use.
11603
+ */
11604
+ agent_version: number;
11605
+ }
11606
+ }
11607
+ interface WarmTransferPrompt {
11608
+ /**
11609
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
11610
+ */
11611
+ prompt?: string;
11612
+ type?: 'prompt';
11613
+ }
11614
+ interface WarmTransferStaticMessage {
11615
+ /**
11616
+ * The static message to be used for warm handoff. Can contain dynamic variables.
11617
+ */
11618
+ message?: string;
11619
+ type?: 'static_message';
11620
+ }
11621
+ }
11212
11622
  /**
11213
11623
  * Position for frontend display
11214
11624
  */
@@ -11282,7 +11692,7 @@ export declare namespace ConversationFlowUpdateParams {
11282
11692
  /**
11283
11693
  * The LLM model to use
11284
11694
  */
11285
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
11695
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
11286
11696
  /**
11287
11697
  * Type of model choice
11288
11698
  */
@@ -11474,7 +11884,7 @@ export declare namespace ConversationFlowUpdateParams {
11474
11884
  /**
11475
11885
  * The LLM model to use
11476
11886
  */
11477
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
11887
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
11478
11888
  /**
11479
11889
  * Type of model choice
11480
11890
  */
@@ -12142,7 +12552,7 @@ export declare namespace ConversationFlowUpdateParams {
12142
12552
  /**
12143
12553
  * The LLM model to use
12144
12554
  */
12145
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
12555
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
12146
12556
  /**
12147
12557
  * Type of model choice
12148
12558
  */
@@ -12928,7 +13338,7 @@ export declare namespace ConversationFlowUpdateParams {
12928
13338
  /**
12929
13339
  * The LLM model to use
12930
13340
  */
12931
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
13341
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
12932
13342
  /**
12933
13343
  * Type of model choice
12934
13344
  */
@@ -13159,7 +13569,7 @@ export declare namespace ConversationFlowUpdateParams {
13159
13569
  /**
13160
13570
  * The LLM model to use
13161
13571
  */
13162
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
13572
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
13163
13573
  /**
13164
13574
  * Type of model choice
13165
13575
  */
@@ -13514,7 +13924,7 @@ export declare namespace ConversationFlowUpdateParams {
13514
13924
  /**
13515
13925
  * The LLM model to use
13516
13926
  */
13517
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
13927
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
13518
13928
  /**
13519
13929
  * Type of model choice
13520
13930
  */
@@ -13532,7 +13942,7 @@ export declare namespace ConversationFlowUpdateParams {
13532
13942
  id: string;
13533
13943
  edge: TransferCallNode.Edge;
13534
13944
  transfer_destination: TransferCallNode.TransferDestinationPredefined | TransferCallNode.TransferDestinationInferred;
13535
- transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer;
13945
+ transfer_option: TransferCallNode.TransferOptionColdTransfer | TransferCallNode.TransferOptionWarmTransfer | TransferCallNode.TransferOptionAgenticWarmTransfer;
13536
13946
  /**
13537
13947
  * Type of the node
13538
13948
  */
@@ -13740,6 +14150,88 @@ export declare namespace ConversationFlowUpdateParams {
13740
14150
  type?: 'static_message';
13741
14151
  }
13742
14152
  }
14153
+ interface TransferOptionAgenticWarmTransfer {
14154
+ /**
14155
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
14156
+ */
14157
+ agentic_transfer_config: TransferOptionAgenticWarmTransfer.AgenticTransferConfig;
14158
+ /**
14159
+ * The type of the transfer.
14160
+ */
14161
+ type: 'agentic_warm_transfer';
14162
+ /**
14163
+ * Whether to play an audio cue when bridging the call. Defaults to true.
14164
+ */
14165
+ enable_bridge_audio_cue?: boolean;
14166
+ /**
14167
+ * The music to play while the caller is being transferred.
14168
+ */
14169
+ on_hold_music?: 'none' | 'relaxing_sound' | 'uplifting_beats' | 'ringtone';
14170
+ /**
14171
+ * If set, when transfer is successful, will say the handoff message to both the
14172
+ * transferee and the agent receiving the transfer. Can leave either a static
14173
+ * message or a dynamic one based on prompt. Set to null to disable warm handoff.
14174
+ */
14175
+ public_handoff_option?: TransferOptionAgenticWarmTransfer.WarmTransferPrompt | TransferOptionAgenticWarmTransfer.WarmTransferStaticMessage;
14176
+ /**
14177
+ * If set to true, will show transferee (the user, not the AI agent) as caller when
14178
+ * transferring, requires the telephony side to support caller id override. Retell
14179
+ * Twilio numbers support this option.
14180
+ */
14181
+ show_transferee_as_caller?: boolean;
14182
+ }
14183
+ namespace TransferOptionAgenticWarmTransfer {
14184
+ /**
14185
+ * Configuration for agentic warm transfer. Required for agentic warm transfer.
14186
+ */
14187
+ interface AgenticTransferConfig {
14188
+ /**
14189
+ * The action to take when the transfer agent times out without making a decision.
14190
+ * Defaults to cancel_transfer.
14191
+ */
14192
+ action_on_timeout?: 'bridge_transfer' | 'cancel_transfer';
14193
+ /**
14194
+ * The agent that will mediate the transfer decision.
14195
+ */
14196
+ transfer_agent?: AgenticTransferConfig.TransferAgent;
14197
+ /**
14198
+ * The maximum time to wait for the transfer agent to make a decision, in
14199
+ * milliseconds. Defaults to 30000 (30 seconds).
14200
+ */
14201
+ transfer_timeout_ms?: number;
14202
+ }
14203
+ namespace AgenticTransferConfig {
14204
+ /**
14205
+ * The agent that will mediate the transfer decision.
14206
+ */
14207
+ interface TransferAgent {
14208
+ /**
14209
+ * The agent ID of the transfer agent. This agent must have isTransferAgent set to
14210
+ * true and should use bridge_transfer and cancel_transfer tools (for Retell LLM)
14211
+ * or BridgeTransferNode and CancelTransferNode (for Conversation Flow).
14212
+ */
14213
+ agent_id: string;
14214
+ /**
14215
+ * The version of the transfer agent to use.
14216
+ */
14217
+ agent_version: number;
14218
+ }
14219
+ }
14220
+ interface WarmTransferPrompt {
14221
+ /**
14222
+ * The prompt to be used for warm handoff. Can contain dynamic variables.
14223
+ */
14224
+ prompt?: string;
14225
+ type?: 'prompt';
14226
+ }
14227
+ interface WarmTransferStaticMessage {
14228
+ /**
14229
+ * The static message to be used for warm handoff. Can contain dynamic variables.
14230
+ */
14231
+ message?: string;
14232
+ type?: 'static_message';
14233
+ }
14234
+ }
13743
14235
  /**
13744
14236
  * Position for frontend display
13745
14237
  */
@@ -13813,7 +14305,7 @@ export declare namespace ConversationFlowUpdateParams {
13813
14305
  /**
13814
14306
  * The LLM model to use
13815
14307
  */
13816
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
14308
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
13817
14309
  /**
13818
14310
  * Type of model choice
13819
14311
  */
@@ -14005,7 +14497,7 @@ export declare namespace ConversationFlowUpdateParams {
14005
14497
  /**
14006
14498
  * The LLM model to use
14007
14499
  */
14008
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
14500
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
14009
14501
  /**
14010
14502
  * Type of model choice
14011
14503
  */
@@ -14673,7 +15165,7 @@ export declare namespace ConversationFlowUpdateParams {
14673
15165
  /**
14674
15166
  * The LLM model to use
14675
15167
  */
14676
- model: 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
15168
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'claude-4.5-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite';
14677
15169
  /**
14678
15170
  * Type of model choice
14679
15171
  */