@letta-ai/letta-client 1.6.2 → 1.6.3

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.
@@ -799,6 +799,13 @@ export interface LettaRequest {
799
799
  */
800
800
  assistant_message_tool_name?: string;
801
801
 
802
+ /**
803
+ * Client-side tools that the agent can call. When the agent calls a client-side
804
+ * tool, execution pauses and returns control to the client to execute the tool and
805
+ * provide the result via a ToolReturn.
806
+ */
807
+ client_tools?: Array<LettaRequest.ClientTool> | null;
808
+
802
809
  /**
803
810
  * @deprecated If set to True, enables reasoning before responses or tool calls
804
811
  * from the agent.
@@ -848,6 +855,30 @@ export interface LettaRequest {
848
855
  }
849
856
 
850
857
  export namespace LettaRequest {
858
+ /**
859
+ * Schema for a client-side tool passed in the request.
860
+ *
861
+ * Client-side tools are executed by the client, not the server. When the agent
862
+ * calls a client-side tool, execution pauses and returns control to the client to
863
+ * execute the tool and provide the result.
864
+ */
865
+ export interface ClientTool {
866
+ /**
867
+ * The name of the tool function
868
+ */
869
+ name: string;
870
+
871
+ /**
872
+ * Description of what the tool does
873
+ */
874
+ description?: string | null;
875
+
876
+ /**
877
+ * JSON Schema for the function parameters
878
+ */
879
+ parameters?: { [key: string]: unknown } | null;
880
+ }
881
+
851
882
  /**
852
883
  * The style of reasoning content returned by the OpenAI Responses API
853
884
  */
@@ -1000,6 +1031,13 @@ export interface LettaStreamingRequest {
1000
1031
  */
1001
1032
  background?: boolean;
1002
1033
 
1034
+ /**
1035
+ * Client-side tools that the agent can call. When the agent calls a client-side
1036
+ * tool, execution pauses and returns control to the client to execute the tool and
1037
+ * provide the result via a ToolReturn.
1038
+ */
1039
+ client_tools?: Array<LettaStreamingRequest.ClientTool> | null;
1040
+
1003
1041
  /**
1004
1042
  * @deprecated If set to True, enables reasoning before responses or tool calls
1005
1043
  * from the agent.
@@ -1067,6 +1105,30 @@ export interface LettaStreamingRequest {
1067
1105
  }
1068
1106
 
1069
1107
  export namespace LettaStreamingRequest {
1108
+ /**
1109
+ * Schema for a client-side tool passed in the request.
1110
+ *
1111
+ * Client-side tools are executed by the client, not the server. When the agent
1112
+ * calls a client-side tool, execution pauses and returns control to the client to
1113
+ * execute the tool and provide the result.
1114
+ */
1115
+ export interface ClientTool {
1116
+ /**
1117
+ * The name of the tool function
1118
+ */
1119
+ name: string;
1120
+
1121
+ /**
1122
+ * Description of what the tool does
1123
+ */
1124
+ description?: string | null;
1125
+
1126
+ /**
1127
+ * JSON Schema for the function parameters
1128
+ */
1129
+ parameters?: { [key: string]: unknown } | null;
1130
+ }
1131
+
1070
1132
  /**
1071
1133
  * The style of reasoning content returned by the OpenAI Responses API
1072
1134
  */
@@ -1808,6 +1870,13 @@ export interface MessageCreateParamsBase {
1808
1870
  */
1809
1871
  background?: boolean;
1810
1872
 
1873
+ /**
1874
+ * Client-side tools that the agent can call. When the agent calls a client-side
1875
+ * tool, execution pauses and returns control to the client to execute the tool and
1876
+ * provide the result via a ToolReturn.
1877
+ */
1878
+ client_tools?: Array<MessageCreateParams.ClientTool> | null;
1879
+
1811
1880
  /**
1812
1881
  * @deprecated If set to True, enables reasoning before responses or tool calls
1813
1882
  * from the agent.
@@ -1875,6 +1944,30 @@ export interface MessageCreateParamsBase {
1875
1944
  }
1876
1945
 
1877
1946
  export namespace MessageCreateParams {
1947
+ /**
1948
+ * Schema for a client-side tool passed in the request.
1949
+ *
1950
+ * Client-side tools are executed by the client, not the server. When the agent
1951
+ * calls a client-side tool, execution pauses and returns control to the client to
1952
+ * execute the tool and provide the result.
1953
+ */
1954
+ export interface ClientTool {
1955
+ /**
1956
+ * The name of the tool function
1957
+ */
1958
+ name: string;
1959
+
1960
+ /**
1961
+ * Description of what the tool does
1962
+ */
1963
+ description?: string | null;
1964
+
1965
+ /**
1966
+ * JSON Schema for the function parameters
1967
+ */
1968
+ parameters?: { [key: string]: unknown } | null;
1969
+ }
1970
+
1878
1971
  /**
1879
1972
  * The style of reasoning content returned by the OpenAI Responses API
1880
1973
  */
@@ -2096,6 +2189,13 @@ export interface MessageCreateAsyncParams {
2096
2189
  */
2097
2190
  callback_url?: string | null;
2098
2191
 
2192
+ /**
2193
+ * Client-side tools that the agent can call. When the agent calls a client-side
2194
+ * tool, execution pauses and returns control to the client to execute the tool and
2195
+ * provide the result via a ToolReturn.
2196
+ */
2197
+ client_tools?: Array<MessageCreateAsyncParams.ClientTool> | null;
2198
+
2099
2199
  /**
2100
2200
  * @deprecated If set to True, enables reasoning before responses or tool calls
2101
2201
  * from the agent.
@@ -2145,6 +2245,30 @@ export interface MessageCreateAsyncParams {
2145
2245
  }
2146
2246
 
2147
2247
  export namespace MessageCreateAsyncParams {
2248
+ /**
2249
+ * Schema for a client-side tool passed in the request.
2250
+ *
2251
+ * Client-side tools are executed by the client, not the server. When the agent
2252
+ * calls a client-side tool, execution pauses and returns control to the client to
2253
+ * execute the tool and provide the result.
2254
+ */
2255
+ export interface ClientTool {
2256
+ /**
2257
+ * The name of the tool function
2258
+ */
2259
+ name: string;
2260
+
2261
+ /**
2262
+ * Description of what the tool does
2263
+ */
2264
+ description?: string | null;
2265
+
2266
+ /**
2267
+ * JSON Schema for the function parameters
2268
+ */
2269
+ parameters?: { [key: string]: unknown } | null;
2270
+ }
2271
+
2148
2272
  /**
2149
2273
  * The style of reasoning content returned by the OpenAI Responses API
2150
2274
  */
@@ -2212,6 +2336,13 @@ export interface MessageStreamParams {
2212
2336
  */
2213
2337
  background?: boolean;
2214
2338
 
2339
+ /**
2340
+ * Client-side tools that the agent can call. When the agent calls a client-side
2341
+ * tool, execution pauses and returns control to the client to execute the tool and
2342
+ * provide the result via a ToolReturn.
2343
+ */
2344
+ client_tools?: Array<MessageStreamParams.ClientTool> | null;
2345
+
2215
2346
  /**
2216
2347
  * @deprecated If set to True, enables reasoning before responses or tool calls
2217
2348
  * from the agent.
@@ -2279,6 +2410,30 @@ export interface MessageStreamParams {
2279
2410
  }
2280
2411
 
2281
2412
  export namespace MessageStreamParams {
2413
+ /**
2414
+ * Schema for a client-side tool passed in the request.
2415
+ *
2416
+ * Client-side tools are executed by the client, not the server. When the agent
2417
+ * calls a client-side tool, execution pauses and returns control to the client to
2418
+ * execute the tool and provide the result.
2419
+ */
2420
+ export interface ClientTool {
2421
+ /**
2422
+ * The name of the tool function
2423
+ */
2424
+ name: string;
2425
+
2426
+ /**
2427
+ * Description of what the tool does
2428
+ */
2429
+ description?: string | null;
2430
+
2431
+ /**
2432
+ * JSON Schema for the function parameters
2433
+ */
2434
+ parameters?: { [key: string]: unknown } | null;
2435
+ }
2436
+
2282
2437
  /**
2283
2438
  * The style of reasoning content returned by the OpenAI Responses API
2284
2439
  */
@@ -179,6 +179,13 @@ export namespace BatchCreateParams {
179
179
  */
180
180
  assistant_message_tool_name?: string;
181
181
 
182
+ /**
183
+ * Client-side tools that the agent can call. When the agent calls a client-side
184
+ * tool, execution pauses and returns control to the client to execute the tool and
185
+ * provide the result via a ToolReturn.
186
+ */
187
+ client_tools?: Array<Request.ClientTool> | null;
188
+
182
189
  /**
183
190
  * @deprecated If set to True, enables reasoning before responses or tool calls
184
191
  * from the agent.
@@ -228,6 +235,30 @@ export namespace BatchCreateParams {
228
235
  }
229
236
 
230
237
  export namespace Request {
238
+ /**
239
+ * Schema for a client-side tool passed in the request.
240
+ *
241
+ * Client-side tools are executed by the client, not the server. When the agent
242
+ * calls a client-side tool, execution pauses and returns control to the client to
243
+ * execute the tool and provide the result.
244
+ */
245
+ export interface ClientTool {
246
+ /**
247
+ * The name of the tool function
248
+ */
249
+ name: string;
250
+
251
+ /**
252
+ * Description of what the tool does
253
+ */
254
+ description?: string | null;
255
+
256
+ /**
257
+ * JSON Schema for the function parameters
258
+ */
259
+ parameters?: { [key: string]: unknown } | null;
260
+ }
261
+
231
262
  /**
232
263
  * The style of reasoning content returned by the OpenAI Responses API
233
264
  */
@@ -410,7 +410,7 @@ export interface BlockListParams extends ArrayPageParams {
410
410
  identity_id?: string | null;
411
411
 
412
412
  /**
413
- * Label to include (alphanumeric, hyphens, underscores only)
413
+ * Label to include (alphanumeric, hyphens, underscores, forward slashes)
414
414
  */
415
415
  label?: string | null;
416
416
 
@@ -116,6 +116,13 @@ export interface MessageCreateParams {
116
116
  */
117
117
  assistant_message_tool_name?: string;
118
118
 
119
+ /**
120
+ * Client-side tools that the agent can call. When the agent calls a client-side
121
+ * tool, execution pauses and returns control to the client to execute the tool and
122
+ * provide the result via a ToolReturn.
123
+ */
124
+ client_tools?: Array<MessageCreateParams.ClientTool> | null;
125
+
119
126
  /**
120
127
  * @deprecated If set to True, enables reasoning before responses or tool calls
121
128
  * from the agent.
@@ -165,6 +172,30 @@ export interface MessageCreateParams {
165
172
  }
166
173
 
167
174
  export namespace MessageCreateParams {
175
+ /**
176
+ * Schema for a client-side tool passed in the request.
177
+ *
178
+ * Client-side tools are executed by the client, not the server. When the agent
179
+ * calls a client-side tool, execution pauses and returns control to the client to
180
+ * execute the tool and provide the result.
181
+ */
182
+ export interface ClientTool {
183
+ /**
184
+ * The name of the tool function
185
+ */
186
+ name: string;
187
+
188
+ /**
189
+ * Description of what the tool does
190
+ */
191
+ description?: string | null;
192
+
193
+ /**
194
+ * JSON Schema for the function parameters
195
+ */
196
+ parameters?: { [key: string]: unknown } | null;
197
+ }
198
+
168
199
  /**
169
200
  * The style of reasoning content returned by the OpenAI Responses API
170
201
  */
@@ -321,6 +352,13 @@ export interface MessageStreamParams {
321
352
  */
322
353
  background?: boolean;
323
354
 
355
+ /**
356
+ * Client-side tools that the agent can call. When the agent calls a client-side
357
+ * tool, execution pauses and returns control to the client to execute the tool and
358
+ * provide the result via a ToolReturn.
359
+ */
360
+ client_tools?: Array<MessageStreamParams.ClientTool> | null;
361
+
324
362
  /**
325
363
  * @deprecated If set to True, enables reasoning before responses or tool calls
326
364
  * from the agent.
@@ -388,6 +426,30 @@ export interface MessageStreamParams {
388
426
  }
389
427
 
390
428
  export namespace MessageStreamParams {
429
+ /**
430
+ * Schema for a client-side tool passed in the request.
431
+ *
432
+ * Client-side tools are executed by the client, not the server. When the agent
433
+ * calls a client-side tool, execution pauses and returns control to the client to
434
+ * execute the tool and provide the result.
435
+ */
436
+ export interface ClientTool {
437
+ /**
438
+ * The name of the tool function
439
+ */
440
+ name: string;
441
+
442
+ /**
443
+ * Description of what the tool does
444
+ */
445
+ description?: string | null;
446
+
447
+ /**
448
+ * JSON Schema for the function parameters
449
+ */
450
+ parameters?: { [key: string]: unknown } | null;
451
+ }
452
+
391
453
  /**
392
454
  * The style of reasoning content returned by the OpenAI Responses API
393
455
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.6.2'; // x-release-please-version
1
+ export const VERSION = '1.6.3'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.6.2";
1
+ export declare const VERSION = "1.6.3";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.6.2";
1
+ export declare const VERSION = "1.6.3";
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 = '1.6.2'; // x-release-please-version
4
+ exports.VERSION = '1.6.3'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.6.2'; // x-release-please-version
1
+ export const VERSION = '1.6.3'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map