retell-sdk 5.66.1 → 6.0.1
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 +24 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +7 -14
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +7 -14
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +0 -8
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +0 -8
- package/resources/agent.mjs.map +1 -1
- package/resources/batch-call.d.mts +5 -5
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +5 -5
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +15 -15
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +15 -15
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +7 -14
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +7 -14
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +0 -8
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +0 -8
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +57 -0
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +57 -0
- package/resources/chat.d.ts.map +1 -1
- package/resources/contact.d.mts +32 -32
- package/resources/contact.d.mts.map +1 -1
- package/resources/contact.d.ts +32 -32
- package/resources/contact.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +57 -525
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +57 -525
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +117 -1053
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +117 -1053
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/crm.d.mts +6 -0
- package/resources/crm.d.mts.map +1 -1
- package/resources/crm.d.ts +6 -0
- package/resources/crm.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.mts +12 -456
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +12 -456
- package/resources/llm.d.ts.map +1 -1
- package/resources/tests.d.mts +3 -3
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +3 -3
- package/resources/tests.d.ts.map +1 -1
- package/src/client.ts +0 -4
- package/src/resources/agent.ts +9 -15
- package/src/resources/batch-call.ts +9 -3
- package/src/resources/call.ts +27 -9
- package/src/resources/chat-agent.ts +9 -15
- package/src/resources/chat.ts +77 -0
- package/src/resources/contact.ts +38 -38
- package/src/resources/conversation-flow-component.ts +138 -618
- package/src/resources/conversation-flow.ts +285 -1233
- package/src/resources/crm.ts +7 -0
- package/src/resources/index.ts +0 -2
- package/src/resources/llm.ts +9 -531
- package/src/resources/tests.ts +9 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/resources/llm.d.mts
CHANGED
|
@@ -102,7 +102,7 @@ export interface LlmResponse {
|
|
|
102
102
|
* - Tools of LLM (with state) = general tools + state tools + state transitions
|
|
103
103
|
* - Tools of LLM (no state) = general tools
|
|
104
104
|
*/
|
|
105
|
-
general_tools?: Array<LlmResponse.EndCallTool | LlmResponse.TransferCallTool | LlmResponse.
|
|
105
|
+
general_tools?: Array<LlmResponse.EndCallTool | LlmResponse.TransferCallTool | LlmResponse.AgentSwapTool | LlmResponse.PressDigitTool | LlmResponse.SendSMSTool | LlmResponse.CustomTool | LlmResponse.CodeTool | LlmResponse.ExtractDynamicVariableTool | LlmResponse.BridgeTransferTool | LlmResponse.CancelTransferTool | LlmResponse.McpTool> | null;
|
|
106
106
|
/**
|
|
107
107
|
* Whether the Retell LLM Response Engine is published.
|
|
108
108
|
*/
|
|
@@ -125,9 +125,9 @@ export interface LlmResponse {
|
|
|
125
125
|
*/
|
|
126
126
|
mcps?: Array<LlmResponse.Mcp> | null;
|
|
127
127
|
/**
|
|
128
|
-
* Select the underlying text LLM. If not set, would default to gpt-
|
|
128
|
+
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
129
129
|
*/
|
|
130
|
-
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-5-sonnet' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | null;
|
|
130
|
+
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-5-sonnet' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
|
|
131
131
|
/**
|
|
132
132
|
* If set to true, will use high priority pool with more dedicated resource to
|
|
133
133
|
* ensure lower and more consistent latency, default to false. This feature usually
|
|
@@ -498,80 +498,6 @@ export declare namespace LlmResponse {
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
/**
|
|
502
|
-
* @deprecated
|
|
503
|
-
*/
|
|
504
|
-
interface CheckAvailabilityCalTool {
|
|
505
|
-
/**
|
|
506
|
-
* Cal.com Api key that have access to the cal.com event you want to check
|
|
507
|
-
* availability for.
|
|
508
|
-
*/
|
|
509
|
-
cal_api_key: string;
|
|
510
|
-
/**
|
|
511
|
-
* Cal.com event type id number for the cal.com event you want to check
|
|
512
|
-
* availability for. Can be a number or a dynamic variable in the format
|
|
513
|
-
* `{{variable_name}}` that will be resolved at runtime.
|
|
514
|
-
*/
|
|
515
|
-
event_type_id: number | string;
|
|
516
|
-
/**
|
|
517
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
518
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
519
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
520
|
-
* (no space allowed).
|
|
521
|
-
*/
|
|
522
|
-
name: string;
|
|
523
|
-
type: 'check_availability_cal';
|
|
524
|
-
/**
|
|
525
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
526
|
-
* to call the tool.
|
|
527
|
-
*/
|
|
528
|
-
description?: string;
|
|
529
|
-
/**
|
|
530
|
-
* Timezone to be used when checking availability, must be in
|
|
531
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
532
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
533
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
534
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
535
|
-
*/
|
|
536
|
-
timezone?: string;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* @deprecated
|
|
540
|
-
*/
|
|
541
|
-
interface BookAppointmentCalTool {
|
|
542
|
-
/**
|
|
543
|
-
* Cal.com Api key that have access to the cal.com event you want to book
|
|
544
|
-
* appointment.
|
|
545
|
-
*/
|
|
546
|
-
cal_api_key: string;
|
|
547
|
-
/**
|
|
548
|
-
* Cal.com event type id number for the cal.com event you want to book appointment.
|
|
549
|
-
* Can be a number or a dynamic variable in the format `{{variable_name}}` that
|
|
550
|
-
* will be resolved at runtime.
|
|
551
|
-
*/
|
|
552
|
-
event_type_id: number | string;
|
|
553
|
-
/**
|
|
554
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
555
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
556
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
557
|
-
* (no space allowed).
|
|
558
|
-
*/
|
|
559
|
-
name: string;
|
|
560
|
-
type: 'book_appointment_cal';
|
|
561
|
-
/**
|
|
562
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
563
|
-
* to call the tool.
|
|
564
|
-
*/
|
|
565
|
-
description?: string;
|
|
566
|
-
/**
|
|
567
|
-
* Timezone to be used when booking appointment, must be in
|
|
568
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
569
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
570
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
571
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
572
|
-
*/
|
|
573
|
-
timezone?: string;
|
|
574
|
-
}
|
|
575
501
|
interface AgentSwapTool {
|
|
576
502
|
/**
|
|
577
503
|
* The id of the agent to swap to.
|
|
@@ -1221,7 +1147,7 @@ export declare namespace LlmResponse {
|
|
|
1221
1147
|
*
|
|
1222
1148
|
* - Tools of LLM = general tools + state tools + state transitions
|
|
1223
1149
|
*/
|
|
1224
|
-
tools?: Array<State.EndCallTool | State.TransferCallTool | State.
|
|
1150
|
+
tools?: Array<State.EndCallTool | State.TransferCallTool | State.AgentSwapTool | State.PressDigitTool | State.SendSMSTool | State.CustomTool | State.CodeTool | State.ExtractDynamicVariableTool | State.BridgeTransferTool | State.CancelTransferTool | State.McpTool>;
|
|
1225
1151
|
}
|
|
1226
1152
|
namespace State {
|
|
1227
1153
|
interface Edge {
|
|
@@ -1598,80 +1524,6 @@ export declare namespace LlmResponse {
|
|
|
1598
1524
|
}
|
|
1599
1525
|
}
|
|
1600
1526
|
}
|
|
1601
|
-
/**
|
|
1602
|
-
* @deprecated
|
|
1603
|
-
*/
|
|
1604
|
-
interface CheckAvailabilityCalTool {
|
|
1605
|
-
/**
|
|
1606
|
-
* Cal.com Api key that have access to the cal.com event you want to check
|
|
1607
|
-
* availability for.
|
|
1608
|
-
*/
|
|
1609
|
-
cal_api_key: string;
|
|
1610
|
-
/**
|
|
1611
|
-
* Cal.com event type id number for the cal.com event you want to check
|
|
1612
|
-
* availability for. Can be a number or a dynamic variable in the format
|
|
1613
|
-
* `{{variable_name}}` that will be resolved at runtime.
|
|
1614
|
-
*/
|
|
1615
|
-
event_type_id: number | string;
|
|
1616
|
-
/**
|
|
1617
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
1618
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
1619
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
1620
|
-
* (no space allowed).
|
|
1621
|
-
*/
|
|
1622
|
-
name: string;
|
|
1623
|
-
type: 'check_availability_cal';
|
|
1624
|
-
/**
|
|
1625
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
1626
|
-
* to call the tool.
|
|
1627
|
-
*/
|
|
1628
|
-
description?: string;
|
|
1629
|
-
/**
|
|
1630
|
-
* Timezone to be used when checking availability, must be in
|
|
1631
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
1632
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
1633
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
1634
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
1635
|
-
*/
|
|
1636
|
-
timezone?: string;
|
|
1637
|
-
}
|
|
1638
|
-
/**
|
|
1639
|
-
* @deprecated
|
|
1640
|
-
*/
|
|
1641
|
-
interface BookAppointmentCalTool {
|
|
1642
|
-
/**
|
|
1643
|
-
* Cal.com Api key that have access to the cal.com event you want to book
|
|
1644
|
-
* appointment.
|
|
1645
|
-
*/
|
|
1646
|
-
cal_api_key: string;
|
|
1647
|
-
/**
|
|
1648
|
-
* Cal.com event type id number for the cal.com event you want to book appointment.
|
|
1649
|
-
* Can be a number or a dynamic variable in the format `{{variable_name}}` that
|
|
1650
|
-
* will be resolved at runtime.
|
|
1651
|
-
*/
|
|
1652
|
-
event_type_id: number | string;
|
|
1653
|
-
/**
|
|
1654
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
1655
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
1656
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
1657
|
-
* (no space allowed).
|
|
1658
|
-
*/
|
|
1659
|
-
name: string;
|
|
1660
|
-
type: 'book_appointment_cal';
|
|
1661
|
-
/**
|
|
1662
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
1663
|
-
* to call the tool.
|
|
1664
|
-
*/
|
|
1665
|
-
description?: string;
|
|
1666
|
-
/**
|
|
1667
|
-
* Timezone to be used when booking appointment, must be in
|
|
1668
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
1669
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
1670
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
1671
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
1672
|
-
*/
|
|
1673
|
-
timezone?: string;
|
|
1674
|
-
}
|
|
1675
1527
|
interface AgentSwapTool {
|
|
1676
1528
|
/**
|
|
1677
1529
|
* The id of the agent to swap to.
|
|
@@ -2308,7 +2160,7 @@ export interface LlmCreateParams {
|
|
|
2308
2160
|
* - Tools of LLM (with state) = general tools + state tools + state transitions
|
|
2309
2161
|
* - Tools of LLM (no state) = general tools
|
|
2310
2162
|
*/
|
|
2311
|
-
general_tools?: Array<LlmCreateParams.EndCallTool | LlmCreateParams.TransferCallTool | LlmCreateParams.
|
|
2163
|
+
general_tools?: Array<LlmCreateParams.EndCallTool | LlmCreateParams.TransferCallTool | LlmCreateParams.AgentSwapTool | LlmCreateParams.PressDigitTool | LlmCreateParams.SendSMSTool | LlmCreateParams.CustomTool | LlmCreateParams.CodeTool | LlmCreateParams.ExtractDynamicVariableTool | LlmCreateParams.BridgeTransferTool | LlmCreateParams.CancelTransferTool | LlmCreateParams.McpTool> | null;
|
|
2312
2164
|
/**
|
|
2313
2165
|
* Whether this Retell LLM is used for warm transfer. Can only be set at creation,
|
|
2314
2166
|
* and is ignored on update.
|
|
@@ -2327,9 +2179,9 @@ export interface LlmCreateParams {
|
|
|
2327
2179
|
*/
|
|
2328
2180
|
mcps?: Array<LlmCreateParams.Mcp> | null;
|
|
2329
2181
|
/**
|
|
2330
|
-
* Select the underlying text LLM. If not set, would default to gpt-
|
|
2182
|
+
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
2331
2183
|
*/
|
|
2332
|
-
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-5-sonnet' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | null;
|
|
2184
|
+
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-5-sonnet' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
|
|
2333
2185
|
/**
|
|
2334
2186
|
* If set to true, will use high priority pool with more dedicated resource to
|
|
2335
2187
|
* ensure lower and more consistent latency, default to false. This feature usually
|
|
@@ -2696,80 +2548,6 @@ export declare namespace LlmCreateParams {
|
|
|
2696
2548
|
}
|
|
2697
2549
|
}
|
|
2698
2550
|
}
|
|
2699
|
-
/**
|
|
2700
|
-
* @deprecated
|
|
2701
|
-
*/
|
|
2702
|
-
interface CheckAvailabilityCalTool {
|
|
2703
|
-
/**
|
|
2704
|
-
* Cal.com Api key that have access to the cal.com event you want to check
|
|
2705
|
-
* availability for.
|
|
2706
|
-
*/
|
|
2707
|
-
cal_api_key: string;
|
|
2708
|
-
/**
|
|
2709
|
-
* Cal.com event type id number for the cal.com event you want to check
|
|
2710
|
-
* availability for. Can be a number or a dynamic variable in the format
|
|
2711
|
-
* `{{variable_name}}` that will be resolved at runtime.
|
|
2712
|
-
*/
|
|
2713
|
-
event_type_id: number | string;
|
|
2714
|
-
/**
|
|
2715
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
2716
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
2717
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
2718
|
-
* (no space allowed).
|
|
2719
|
-
*/
|
|
2720
|
-
name: string;
|
|
2721
|
-
type: 'check_availability_cal';
|
|
2722
|
-
/**
|
|
2723
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
2724
|
-
* to call the tool.
|
|
2725
|
-
*/
|
|
2726
|
-
description?: string;
|
|
2727
|
-
/**
|
|
2728
|
-
* Timezone to be used when checking availability, must be in
|
|
2729
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
2730
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
2731
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
2732
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
2733
|
-
*/
|
|
2734
|
-
timezone?: string;
|
|
2735
|
-
}
|
|
2736
|
-
/**
|
|
2737
|
-
* @deprecated
|
|
2738
|
-
*/
|
|
2739
|
-
interface BookAppointmentCalTool {
|
|
2740
|
-
/**
|
|
2741
|
-
* Cal.com Api key that have access to the cal.com event you want to book
|
|
2742
|
-
* appointment.
|
|
2743
|
-
*/
|
|
2744
|
-
cal_api_key: string;
|
|
2745
|
-
/**
|
|
2746
|
-
* Cal.com event type id number for the cal.com event you want to book appointment.
|
|
2747
|
-
* Can be a number or a dynamic variable in the format `{{variable_name}}` that
|
|
2748
|
-
* will be resolved at runtime.
|
|
2749
|
-
*/
|
|
2750
|
-
event_type_id: number | string;
|
|
2751
|
-
/**
|
|
2752
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
2753
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
2754
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
2755
|
-
* (no space allowed).
|
|
2756
|
-
*/
|
|
2757
|
-
name: string;
|
|
2758
|
-
type: 'book_appointment_cal';
|
|
2759
|
-
/**
|
|
2760
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
2761
|
-
* to call the tool.
|
|
2762
|
-
*/
|
|
2763
|
-
description?: string;
|
|
2764
|
-
/**
|
|
2765
|
-
* Timezone to be used when booking appointment, must be in
|
|
2766
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
2767
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
2768
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
2769
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
2770
|
-
*/
|
|
2771
|
-
timezone?: string;
|
|
2772
|
-
}
|
|
2773
2551
|
interface AgentSwapTool {
|
|
2774
2552
|
/**
|
|
2775
2553
|
* The id of the agent to swap to.
|
|
@@ -3419,7 +3197,7 @@ export declare namespace LlmCreateParams {
|
|
|
3419
3197
|
*
|
|
3420
3198
|
* - Tools of LLM = general tools + state tools + state transitions
|
|
3421
3199
|
*/
|
|
3422
|
-
tools?: Array<State.EndCallTool | State.TransferCallTool | State.
|
|
3200
|
+
tools?: Array<State.EndCallTool | State.TransferCallTool | State.AgentSwapTool | State.PressDigitTool | State.SendSMSTool | State.CustomTool | State.CodeTool | State.ExtractDynamicVariableTool | State.BridgeTransferTool | State.CancelTransferTool | State.McpTool>;
|
|
3423
3201
|
}
|
|
3424
3202
|
namespace State {
|
|
3425
3203
|
interface Edge {
|
|
@@ -3796,80 +3574,6 @@ export declare namespace LlmCreateParams {
|
|
|
3796
3574
|
}
|
|
3797
3575
|
}
|
|
3798
3576
|
}
|
|
3799
|
-
/**
|
|
3800
|
-
* @deprecated
|
|
3801
|
-
*/
|
|
3802
|
-
interface CheckAvailabilityCalTool {
|
|
3803
|
-
/**
|
|
3804
|
-
* Cal.com Api key that have access to the cal.com event you want to check
|
|
3805
|
-
* availability for.
|
|
3806
|
-
*/
|
|
3807
|
-
cal_api_key: string;
|
|
3808
|
-
/**
|
|
3809
|
-
* Cal.com event type id number for the cal.com event you want to check
|
|
3810
|
-
* availability for. Can be a number or a dynamic variable in the format
|
|
3811
|
-
* `{{variable_name}}` that will be resolved at runtime.
|
|
3812
|
-
*/
|
|
3813
|
-
event_type_id: number | string;
|
|
3814
|
-
/**
|
|
3815
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
3816
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
3817
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
3818
|
-
* (no space allowed).
|
|
3819
|
-
*/
|
|
3820
|
-
name: string;
|
|
3821
|
-
type: 'check_availability_cal';
|
|
3822
|
-
/**
|
|
3823
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
3824
|
-
* to call the tool.
|
|
3825
|
-
*/
|
|
3826
|
-
description?: string;
|
|
3827
|
-
/**
|
|
3828
|
-
* Timezone to be used when checking availability, must be in
|
|
3829
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
3830
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
3831
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
3832
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
3833
|
-
*/
|
|
3834
|
-
timezone?: string;
|
|
3835
|
-
}
|
|
3836
|
-
/**
|
|
3837
|
-
* @deprecated
|
|
3838
|
-
*/
|
|
3839
|
-
interface BookAppointmentCalTool {
|
|
3840
|
-
/**
|
|
3841
|
-
* Cal.com Api key that have access to the cal.com event you want to book
|
|
3842
|
-
* appointment.
|
|
3843
|
-
*/
|
|
3844
|
-
cal_api_key: string;
|
|
3845
|
-
/**
|
|
3846
|
-
* Cal.com event type id number for the cal.com event you want to book appointment.
|
|
3847
|
-
* Can be a number or a dynamic variable in the format `{{variable_name}}` that
|
|
3848
|
-
* will be resolved at runtime.
|
|
3849
|
-
*/
|
|
3850
|
-
event_type_id: number | string;
|
|
3851
|
-
/**
|
|
3852
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
3853
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
3854
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
3855
|
-
* (no space allowed).
|
|
3856
|
-
*/
|
|
3857
|
-
name: string;
|
|
3858
|
-
type: 'book_appointment_cal';
|
|
3859
|
-
/**
|
|
3860
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
3861
|
-
* to call the tool.
|
|
3862
|
-
*/
|
|
3863
|
-
description?: string;
|
|
3864
|
-
/**
|
|
3865
|
-
* Timezone to be used when booking appointment, must be in
|
|
3866
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
3867
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
3868
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
3869
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
3870
|
-
*/
|
|
3871
|
-
timezone?: string;
|
|
3872
|
-
}
|
|
3873
3577
|
interface AgentSwapTool {
|
|
3874
3578
|
/**
|
|
3875
3579
|
* The id of the agent to swap to.
|
|
@@ -4508,7 +4212,7 @@ export interface LlmUpdateParams {
|
|
|
4508
4212
|
* - Tools of LLM (with state) = general tools + state tools + state transitions
|
|
4509
4213
|
* - Tools of LLM (no state) = general tools
|
|
4510
4214
|
*/
|
|
4511
|
-
general_tools?: Array<LlmUpdateParams.EndCallTool | LlmUpdateParams.TransferCallTool | LlmUpdateParams.
|
|
4215
|
+
general_tools?: Array<LlmUpdateParams.EndCallTool | LlmUpdateParams.TransferCallTool | LlmUpdateParams.AgentSwapTool | LlmUpdateParams.PressDigitTool | LlmUpdateParams.SendSMSTool | LlmUpdateParams.CustomTool | LlmUpdateParams.CodeTool | LlmUpdateParams.ExtractDynamicVariableTool | LlmUpdateParams.BridgeTransferTool | LlmUpdateParams.CancelTransferTool | LlmUpdateParams.McpTool> | null;
|
|
4512
4216
|
/**
|
|
4513
4217
|
* Body param: Whether this Retell LLM is used for warm transfer. Can only be set
|
|
4514
4218
|
* at creation, and is ignored on update.
|
|
@@ -4528,9 +4232,9 @@ export interface LlmUpdateParams {
|
|
|
4528
4232
|
mcps?: Array<LlmUpdateParams.Mcp> | null;
|
|
4529
4233
|
/**
|
|
4530
4234
|
* Body param: Select the underlying text LLM. If not set, would default to
|
|
4531
|
-
* gpt-
|
|
4235
|
+
* gpt-5.6-terra.
|
|
4532
4236
|
*/
|
|
4533
|
-
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-5-sonnet' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | null;
|
|
4237
|
+
model?: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-5-sonnet' | 'claude-4.5-haiku' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.5-flash-lite' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
|
|
4534
4238
|
/**
|
|
4535
4239
|
* Body param: If set to true, will use high priority pool with more dedicated
|
|
4536
4240
|
* resource to ensure lower and more consistent latency, default to false. This
|
|
@@ -4897,80 +4601,6 @@ export declare namespace LlmUpdateParams {
|
|
|
4897
4601
|
}
|
|
4898
4602
|
}
|
|
4899
4603
|
}
|
|
4900
|
-
/**
|
|
4901
|
-
* @deprecated
|
|
4902
|
-
*/
|
|
4903
|
-
interface CheckAvailabilityCalTool {
|
|
4904
|
-
/**
|
|
4905
|
-
* Cal.com Api key that have access to the cal.com event you want to check
|
|
4906
|
-
* availability for.
|
|
4907
|
-
*/
|
|
4908
|
-
cal_api_key: string;
|
|
4909
|
-
/**
|
|
4910
|
-
* Cal.com event type id number for the cal.com event you want to check
|
|
4911
|
-
* availability for. Can be a number or a dynamic variable in the format
|
|
4912
|
-
* `{{variable_name}}` that will be resolved at runtime.
|
|
4913
|
-
*/
|
|
4914
|
-
event_type_id: number | string;
|
|
4915
|
-
/**
|
|
4916
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
4917
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
4918
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
4919
|
-
* (no space allowed).
|
|
4920
|
-
*/
|
|
4921
|
-
name: string;
|
|
4922
|
-
type: 'check_availability_cal';
|
|
4923
|
-
/**
|
|
4924
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
4925
|
-
* to call the tool.
|
|
4926
|
-
*/
|
|
4927
|
-
description?: string;
|
|
4928
|
-
/**
|
|
4929
|
-
* Timezone to be used when checking availability, must be in
|
|
4930
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
4931
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
4932
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
4933
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
4934
|
-
*/
|
|
4935
|
-
timezone?: string;
|
|
4936
|
-
}
|
|
4937
|
-
/**
|
|
4938
|
-
* @deprecated
|
|
4939
|
-
*/
|
|
4940
|
-
interface BookAppointmentCalTool {
|
|
4941
|
-
/**
|
|
4942
|
-
* Cal.com Api key that have access to the cal.com event you want to book
|
|
4943
|
-
* appointment.
|
|
4944
|
-
*/
|
|
4945
|
-
cal_api_key: string;
|
|
4946
|
-
/**
|
|
4947
|
-
* Cal.com event type id number for the cal.com event you want to book appointment.
|
|
4948
|
-
* Can be a number or a dynamic variable in the format `{{variable_name}}` that
|
|
4949
|
-
* will be resolved at runtime.
|
|
4950
|
-
*/
|
|
4951
|
-
event_type_id: number | string;
|
|
4952
|
-
/**
|
|
4953
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
4954
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
4955
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
4956
|
-
* (no space allowed).
|
|
4957
|
-
*/
|
|
4958
|
-
name: string;
|
|
4959
|
-
type: 'book_appointment_cal';
|
|
4960
|
-
/**
|
|
4961
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
4962
|
-
* to call the tool.
|
|
4963
|
-
*/
|
|
4964
|
-
description?: string;
|
|
4965
|
-
/**
|
|
4966
|
-
* Timezone to be used when booking appointment, must be in
|
|
4967
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
4968
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
4969
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
4970
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
4971
|
-
*/
|
|
4972
|
-
timezone?: string;
|
|
4973
|
-
}
|
|
4974
4604
|
interface AgentSwapTool {
|
|
4975
4605
|
/**
|
|
4976
4606
|
* The id of the agent to swap to.
|
|
@@ -5620,7 +5250,7 @@ export declare namespace LlmUpdateParams {
|
|
|
5620
5250
|
*
|
|
5621
5251
|
* - Tools of LLM = general tools + state tools + state transitions
|
|
5622
5252
|
*/
|
|
5623
|
-
tools?: Array<State.EndCallTool | State.TransferCallTool | State.
|
|
5253
|
+
tools?: Array<State.EndCallTool | State.TransferCallTool | State.AgentSwapTool | State.PressDigitTool | State.SendSMSTool | State.CustomTool | State.CodeTool | State.ExtractDynamicVariableTool | State.BridgeTransferTool | State.CancelTransferTool | State.McpTool>;
|
|
5624
5254
|
}
|
|
5625
5255
|
namespace State {
|
|
5626
5256
|
interface Edge {
|
|
@@ -5997,80 +5627,6 @@ export declare namespace LlmUpdateParams {
|
|
|
5997
5627
|
}
|
|
5998
5628
|
}
|
|
5999
5629
|
}
|
|
6000
|
-
/**
|
|
6001
|
-
* @deprecated
|
|
6002
|
-
*/
|
|
6003
|
-
interface CheckAvailabilityCalTool {
|
|
6004
|
-
/**
|
|
6005
|
-
* Cal.com Api key that have access to the cal.com event you want to check
|
|
6006
|
-
* availability for.
|
|
6007
|
-
*/
|
|
6008
|
-
cal_api_key: string;
|
|
6009
|
-
/**
|
|
6010
|
-
* Cal.com event type id number for the cal.com event you want to check
|
|
6011
|
-
* availability for. Can be a number or a dynamic variable in the format
|
|
6012
|
-
* `{{variable_name}}` that will be resolved at runtime.
|
|
6013
|
-
*/
|
|
6014
|
-
event_type_id: number | string;
|
|
6015
|
-
/**
|
|
6016
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
6017
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
6018
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
6019
|
-
* (no space allowed).
|
|
6020
|
-
*/
|
|
6021
|
-
name: string;
|
|
6022
|
-
type: 'check_availability_cal';
|
|
6023
|
-
/**
|
|
6024
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
6025
|
-
* to call the tool.
|
|
6026
|
-
*/
|
|
6027
|
-
description?: string;
|
|
6028
|
-
/**
|
|
6029
|
-
* Timezone to be used when checking availability, must be in
|
|
6030
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
6031
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
6032
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
6033
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
6034
|
-
*/
|
|
6035
|
-
timezone?: string;
|
|
6036
|
-
}
|
|
6037
|
-
/**
|
|
6038
|
-
* @deprecated
|
|
6039
|
-
*/
|
|
6040
|
-
interface BookAppointmentCalTool {
|
|
6041
|
-
/**
|
|
6042
|
-
* Cal.com Api key that have access to the cal.com event you want to book
|
|
6043
|
-
* appointment.
|
|
6044
|
-
*/
|
|
6045
|
-
cal_api_key: string;
|
|
6046
|
-
/**
|
|
6047
|
-
* Cal.com event type id number for the cal.com event you want to book appointment.
|
|
6048
|
-
* Can be a number or a dynamic variable in the format `{{variable_name}}` that
|
|
6049
|
-
* will be resolved at runtime.
|
|
6050
|
-
*/
|
|
6051
|
-
event_type_id: number | string;
|
|
6052
|
-
/**
|
|
6053
|
-
* Name of the tool. Must be unique within all tools available to LLM at any given
|
|
6054
|
-
* time (general tools + state tools + state transitions). Must be consisted of
|
|
6055
|
-
* a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
|
|
6056
|
-
* (no space allowed).
|
|
6057
|
-
*/
|
|
6058
|
-
name: string;
|
|
6059
|
-
type: 'book_appointment_cal';
|
|
6060
|
-
/**
|
|
6061
|
-
* Describes what the tool does, sometimes can also include information about when
|
|
6062
|
-
* to call the tool.
|
|
6063
|
-
*/
|
|
6064
|
-
description?: string;
|
|
6065
|
-
/**
|
|
6066
|
-
* Timezone to be used when booking appointment, must be in
|
|
6067
|
-
* [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
6068
|
-
* Can also be a dynamic variable in the format `{{variable_name}}` that will be
|
|
6069
|
-
* resolved at runtime. If not specified, will check if user specified timezone in
|
|
6070
|
-
* call, and if not, will use the timezone of the Retell servers.
|
|
6071
|
-
*/
|
|
6072
|
-
timezone?: string;
|
|
6073
|
-
}
|
|
6074
5630
|
interface AgentSwapTool {
|
|
6075
5631
|
/**
|
|
6076
5632
|
* The id of the agent to swap to.
|