retell-sdk 4.20.0 → 4.22.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.
@@ -5,35 +5,36 @@ import * as Core from '../core';
5
5
 
6
6
  export class Llm extends APIResource {
7
7
  /**
8
- * Create a new Retell LLM
8
+ * Create a new Retell LLM Response Engine that can be attached to an agent. This
9
+ * is used to generate response output for the agent.
9
10
  */
10
11
  create(body: LlmCreateParams, options?: Core.RequestOptions): Core.APIPromise<LlmResponse> {
11
12
  return this._client.post('/create-retell-llm', { body, ...options });
12
13
  }
13
14
 
14
15
  /**
15
- * Retrieve details of a specific Retell LLM
16
+ * Retrieve details of a specific Retell LLM Response Engine
16
17
  */
17
18
  retrieve(llmId: string, options?: Core.RequestOptions): Core.APIPromise<LlmResponse> {
18
19
  return this._client.get(`/get-retell-llm/${llmId}`, options);
19
20
  }
20
21
 
21
22
  /**
22
- * Update an existing Retell LLM
23
+ * Update an existing Retell LLM Response Engine
23
24
  */
24
25
  update(llmId: string, body: LlmUpdateParams, options?: Core.RequestOptions): Core.APIPromise<LlmResponse> {
25
26
  return this._client.patch(`/update-retell-llm/${llmId}`, { body, ...options });
26
27
  }
27
28
 
28
29
  /**
29
- * List all retell LLM
30
+ * List all Retell LLM Response Engines that can be attached to an agent.
30
31
  */
31
32
  list(options?: Core.RequestOptions): Core.APIPromise<LlmListResponse> {
32
33
  return this._client.get('/list-retell-llms', options);
33
34
  }
34
35
 
35
36
  /**
36
- * Delete an existing Retell LLM
37
+ * Delete an existing Retell LLM Response Engine
37
38
  */
38
39
  delete(llmId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
39
40
  return this._client.delete(`/delete-retell-llm/${llmId}`, {
@@ -51,7 +52,7 @@ export interface LlmResponse {
51
52
  last_modification_timestamp: number;
52
53
 
53
54
  /**
54
- * Unique id of Retell LLM.
55
+ * Unique id of Retell LLM Response Engine.
55
56
  */
56
57
  llm_id: string;
57
58
 
@@ -61,6 +62,13 @@ export interface LlmResponse {
61
62
  */
62
63
  begin_message?: string | null;
63
64
 
65
+ /**
66
+ * Default dynamic variables represented as key-value pairs of strings. These are
67
+ * injected into your Retell LLM prompt and tool description when specific values
68
+ * are not provided in a request. Only applicable for Retell LLM.
69
+ */
70
+ default_dynamic_variables?: Record<string, string> | null;
71
+
64
72
  /**
65
73
  * General prompt appended to system prompt no matter what state the agent is in.
66
74
  *
@@ -97,7 +105,7 @@ export interface LlmResponse {
97
105
  /**
98
106
  * Select the underlying text LLM. If not set, would default to gpt-4o.
99
107
  */
100
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | 'claude-3.5-haiku' | null;
108
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | null;
101
109
 
102
110
  /**
103
111
  * If set to true, will use high priority pool with more dedicated resource to
@@ -848,6 +856,13 @@ export interface LlmCreateParams {
848
856
  */
849
857
  begin_message?: string | null;
850
858
 
859
+ /**
860
+ * Default dynamic variables represented as key-value pairs of strings. These are
861
+ * injected into your Retell LLM prompt and tool description when specific values
862
+ * are not provided in a request. Only applicable for Retell LLM.
863
+ */
864
+ default_dynamic_variables?: Record<string, string> | null;
865
+
851
866
  /**
852
867
  * General prompt appended to system prompt no matter what state the agent is in.
853
868
  *
@@ -884,7 +899,7 @@ export interface LlmCreateParams {
884
899
  /**
885
900
  * Select the underlying text LLM. If not set, would default to gpt-4o.
886
901
  */
887
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | 'claude-3.5-haiku' | null;
902
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | null;
888
903
 
889
904
  /**
890
905
  * If set to true, will use high priority pool with more dedicated resource to
@@ -1633,6 +1648,13 @@ export interface LlmUpdateParams {
1633
1648
  */
1634
1649
  begin_message?: string | null;
1635
1650
 
1651
+ /**
1652
+ * Default dynamic variables represented as key-value pairs of strings. These are
1653
+ * injected into your Retell LLM prompt and tool description when specific values
1654
+ * are not provided in a request. Only applicable for Retell LLM.
1655
+ */
1656
+ default_dynamic_variables?: Record<string, string> | null;
1657
+
1636
1658
  /**
1637
1659
  * General prompt appended to system prompt no matter what state the agent is in.
1638
1660
  *
@@ -1669,7 +1691,7 @@ export interface LlmUpdateParams {
1669
1691
  /**
1670
1692
  * Select the underlying text LLM. If not set, would default to gpt-4o.
1671
1693
  */
1672
- model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | 'claude-3.5-haiku' | null;
1694
+ model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.7-sonnet' | 'claude-3.5-haiku' | null;
1673
1695
 
1674
1696
  /**
1675
1697
  * If set to true, will use high priority pool with more dedicated resource to
@@ -102,6 +102,11 @@ export interface PhoneNumberResponse {
102
102
  * Pretty printed phone number, provided for your reference.
103
103
  */
104
104
  phone_number_pretty?: string;
105
+
106
+ /**
107
+ * Type of the phone number.
108
+ */
109
+ phone_number_type?: 'retell-twilio' | 'retell-telnyx' | 'custom';
105
110
  }
106
111
 
107
112
  export type PhoneNumberListResponse = Array<PhoneNumberResponse>;
@@ -131,6 +136,11 @@ export interface PhoneNumberCreateParams {
131
136
  */
132
137
  nickname?: string;
133
138
 
139
+ /**
140
+ * The provider to purchase the phone number from. Default to twilio.
141
+ */
142
+ number_provider?: 'twilio' | 'telnyx';
143
+
134
144
  /**
135
145
  * Unique id of agent to bind to the number. The number will automatically use the
136
146
  * agent when conducting outbound calls. If null, this number would not be able to
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.20.0'; // x-release-please-version
1
+ export const VERSION = '4.22.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.20.0";
1
+ export declare const VERSION = "4.22.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.20.0'; // x-release-please-version
4
+ exports.VERSION = '4.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.20.0'; // x-release-please-version
1
+ export const VERSION = '4.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map