@letta-ai/letta-client 1.0.0-alpha.19 → 1.0.0-alpha.20
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 +14 -0
- package/README.md +15 -56
- package/client.d.mts +16 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -16
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +139 -129
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +139 -129
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +6 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +6 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/blocks.d.mts +21 -21
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +21 -21
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +10 -10
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +10 -10
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/index.d.mts +3 -3
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +3 -3
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/messages.d.mts +136 -136
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +136 -136
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +21 -21
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +21 -21
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/archives/archives.d.mts +16 -12
- package/resources/archives/archives.d.mts.map +1 -1
- package/resources/archives/archives.d.ts +16 -12
- package/resources/archives/archives.d.ts.map +1 -1
- package/resources/archives/archives.js +6 -6
- package/resources/archives/archives.js.map +1 -1
- package/resources/archives/archives.mjs +6 -6
- package/resources/archives/archives.mjs.map +1 -1
- package/resources/archives/index.d.mts +1 -1
- package/resources/archives/index.d.mts.map +1 -1
- package/resources/archives/index.d.ts +1 -1
- package/resources/archives/index.d.ts.map +1 -1
- package/resources/blocks/blocks.d.mts +61 -61
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +61 -61
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +6 -6
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +6 -6
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +1 -1
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +1 -1
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/folders/folders.d.mts +12 -12
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +12 -12
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +6 -6
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +6 -6
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +1 -1
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +1 -1
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/groups/groups.d.mts +20 -20
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +20 -20
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -6
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -6
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/messages.d.mts +84 -84
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +84 -84
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +15 -15
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +15 -15
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/identities.d.mts +15 -15
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +15 -15
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +6 -6
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +6 -6
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +1 -1
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +1 -1
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/mcp-servers/index.d.mts +1 -1
- package/resources/mcp-servers/index.d.mts.map +1 -1
- package/resources/mcp-servers/index.d.ts +1 -1
- package/resources/mcp-servers/index.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +10 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +10 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.js +6 -6
- package/resources/mcp-servers/mcp-servers.js.map +1 -1
- package/resources/mcp-servers/mcp-servers.mjs +6 -6
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
- package/resources/models/models.d.mts +5 -0
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +5 -0
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/tools.d.mts +36 -36
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +36 -36
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +18 -18
- package/src/resources/agents/agents.ts +187 -177
- package/src/resources/agents/blocks.ts +35 -35
- package/src/resources/agents/index.ts +9 -9
- package/src/resources/agents/messages.ts +200 -200
- package/src/resources/archives/archives.ts +22 -17
- package/src/resources/archives/index.ts +1 -1
- package/src/resources/blocks/blocks.ts +69 -69
- package/src/resources/blocks/index.ts +1 -1
- package/src/resources/folders/folders.ts +16 -16
- package/src/resources/folders/index.ts +1 -1
- package/src/resources/groups/groups.ts +33 -33
- package/src/resources/groups/index.ts +4 -4
- package/src/resources/groups/messages.ts +126 -126
- package/src/resources/identities/identities.ts +22 -22
- package/src/resources/identities/index.ts +1 -1
- package/src/resources/index.ts +9 -9
- package/src/resources/mcp-servers/index.ts +2 -2
- package/src/resources/mcp-servers/mcp-servers.ts +23 -23
- package/src/resources/models/models.ts +5 -0
- package/src/resources/tools.ts +46 -46
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -13,49 +13,49 @@ import { path } from '../../internal/utils/path';
|
|
|
13
13
|
|
|
14
14
|
export class Messages extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Process a user message and return the group's response. This endpoint accepts a
|
|
17
|
+
* message from a user and processes it through through agents in the group based
|
|
18
|
+
* on the specified pattern
|
|
17
19
|
*/
|
|
18
|
-
|
|
20
|
+
create(
|
|
19
21
|
groupID: string,
|
|
20
|
-
|
|
22
|
+
body: MessageCreateParams,
|
|
21
23
|
options?: RequestOptions,
|
|
22
|
-
):
|
|
23
|
-
return this._client.
|
|
24
|
-
query,
|
|
25
|
-
...options,
|
|
26
|
-
});
|
|
24
|
+
): APIPromise<MessagesAPI.LettaResponse> {
|
|
25
|
+
return this._client.post(path`/v1/groups/${groupID}/messages`, { body, ...options });
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Update the details of a message associated with an agent.
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
update(
|
|
33
32
|
messageID: string,
|
|
34
|
-
params:
|
|
33
|
+
params: MessageUpdateParams,
|
|
35
34
|
options?: RequestOptions,
|
|
36
|
-
): APIPromise<
|
|
35
|
+
): APIPromise<MessageUpdateResponse> {
|
|
37
36
|
const { group_id, ...body } = params;
|
|
38
37
|
return this._client.patch(path`/v1/groups/${group_id}/messages/${messageID}`, { body, ...options });
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
|
-
*
|
|
41
|
+
* Retrieve message history for an agent.
|
|
43
42
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
list(
|
|
44
|
+
groupID: string,
|
|
45
|
+
query: MessageListParams | null | undefined = {},
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): PagePromise<MessagesArrayPage, MessagesAPI.Message> {
|
|
48
|
+
return this._client.getAPIList(path`/v1/groups/${groupID}/messages`, ArrayPage<MessagesAPI.Message>, {
|
|
49
|
+
query,
|
|
50
|
+
...options,
|
|
51
|
+
});
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
49
|
-
*
|
|
50
|
-
* message from a user and processes it through through agents in the group based
|
|
51
|
-
* on the specified pattern
|
|
55
|
+
* Delete the group messages for all agents that are part of the multi-agent group.
|
|
52
56
|
*/
|
|
53
|
-
|
|
54
|
-
groupID
|
|
55
|
-
body: MessageSendParams,
|
|
56
|
-
options?: RequestOptions,
|
|
57
|
-
): APIPromise<MessagesAPI.LettaResponse> {
|
|
58
|
-
return this._client.post(path`/v1/groups/${groupID}/messages`, { body, ...options });
|
|
57
|
+
reset(groupID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
58
|
+
return this._client.patch(path`/v1/groups/${groupID}/reset-messages`, options);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -85,7 +85,7 @@ export class Messages extends APIResource {
|
|
|
85
85
|
* created in ISO format name (Optional[str]): The name of the sender of the
|
|
86
86
|
* message content (str): The message content sent by the system
|
|
87
87
|
*/
|
|
88
|
-
export type
|
|
88
|
+
export type MessageUpdateResponse =
|
|
89
89
|
| MessagesAPI.SystemMessage
|
|
90
90
|
| MessagesAPI.UserMessage
|
|
91
91
|
| MessagesAPI.ReasoningMessage
|
|
@@ -102,103 +102,7 @@ export type MessageResetResponse = unknown;
|
|
|
102
102
|
|
|
103
103
|
export type MessageStreamResponse = unknown;
|
|
104
104
|
|
|
105
|
-
export interface
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated The name of the message argument.
|
|
108
|
-
*/
|
|
109
|
-
assistant_message_tool_kwarg?: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @deprecated The name of the designated message tool.
|
|
113
|
-
*/
|
|
114
|
-
assistant_message_tool_name?: string;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @deprecated Whether to use assistant messages
|
|
118
|
-
*/
|
|
119
|
-
use_assistant_message?: boolean;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type MessageModifyParams =
|
|
123
|
-
| MessageModifyParams.UpdateSystemMessage
|
|
124
|
-
| MessageModifyParams.UpdateUserMessage
|
|
125
|
-
| MessageModifyParams.UpdateReasoningMessage
|
|
126
|
-
| MessageModifyParams.UpdateAssistantMessage;
|
|
127
|
-
|
|
128
|
-
export declare namespace MessageModifyParams {
|
|
129
|
-
export interface UpdateSystemMessage {
|
|
130
|
-
/**
|
|
131
|
-
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
132
|
-
*/
|
|
133
|
-
group_id: string;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Body param: The message content sent by the system (can be a string or an array
|
|
137
|
-
* of multi-modal content parts)
|
|
138
|
-
*/
|
|
139
|
-
content: string;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Body param:
|
|
143
|
-
*/
|
|
144
|
-
message_type?: 'system_message';
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface UpdateUserMessage {
|
|
148
|
-
/**
|
|
149
|
-
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
150
|
-
*/
|
|
151
|
-
group_id: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Body param: The message content sent by the user (can be a string or an array of
|
|
155
|
-
* multi-modal content parts)
|
|
156
|
-
*/
|
|
157
|
-
content: Array<MessagesAPI.LettaUserMessageContentUnion> | string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Body param:
|
|
161
|
-
*/
|
|
162
|
-
message_type?: 'user_message';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface UpdateReasoningMessage {
|
|
166
|
-
/**
|
|
167
|
-
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
168
|
-
*/
|
|
169
|
-
group_id: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Body param:
|
|
173
|
-
*/
|
|
174
|
-
reasoning: string;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Body param:
|
|
178
|
-
*/
|
|
179
|
-
message_type?: 'reasoning_message';
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface UpdateAssistantMessage {
|
|
183
|
-
/**
|
|
184
|
-
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
185
|
-
*/
|
|
186
|
-
group_id: string;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Body param: The message content sent by the assistant (can be a string or an
|
|
190
|
-
* array of content parts)
|
|
191
|
-
*/
|
|
192
|
-
content: Array<MessagesAPI.LettaAssistantMessageContentUnion> | string;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Body param:
|
|
196
|
-
*/
|
|
197
|
-
message_type?: 'assistant_message';
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export interface MessageSendParams {
|
|
105
|
+
export interface MessageCreateParams {
|
|
202
106
|
/**
|
|
203
107
|
* @deprecated The name of the message argument in the designated message tool.
|
|
204
108
|
* Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
@@ -238,7 +142,7 @@ export interface MessageSendParams {
|
|
|
238
142
|
| MessagesAPI.ReasoningContent
|
|
239
143
|
| MessagesAPI.RedactedReasoningContent
|
|
240
144
|
| MessagesAPI.OmittedReasoningContent
|
|
241
|
-
|
|
|
145
|
+
| MessageCreateParams.SummarizedReasoningContent
|
|
242
146
|
>
|
|
243
147
|
| null;
|
|
244
148
|
|
|
@@ -260,7 +164,7 @@ export interface MessageSendParams {
|
|
|
260
164
|
use_assistant_message?: boolean;
|
|
261
165
|
}
|
|
262
166
|
|
|
263
|
-
export namespace
|
|
167
|
+
export namespace MessageCreateParams {
|
|
264
168
|
/**
|
|
265
169
|
* The style of reasoning content returned by the OpenAI Responses API
|
|
266
170
|
*/
|
|
@@ -301,6 +205,102 @@ export namespace MessageSendParams {
|
|
|
301
205
|
}
|
|
302
206
|
}
|
|
303
207
|
|
|
208
|
+
export type MessageUpdateParams =
|
|
209
|
+
| MessageUpdateParams.UpdateSystemMessage
|
|
210
|
+
| MessageUpdateParams.UpdateUserMessage
|
|
211
|
+
| MessageUpdateParams.UpdateReasoningMessage
|
|
212
|
+
| MessageUpdateParams.UpdateAssistantMessage;
|
|
213
|
+
|
|
214
|
+
export declare namespace MessageUpdateParams {
|
|
215
|
+
export interface UpdateSystemMessage {
|
|
216
|
+
/**
|
|
217
|
+
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
218
|
+
*/
|
|
219
|
+
group_id: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Body param: The message content sent by the system (can be a string or an array
|
|
223
|
+
* of multi-modal content parts)
|
|
224
|
+
*/
|
|
225
|
+
content: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Body param:
|
|
229
|
+
*/
|
|
230
|
+
message_type?: 'system_message';
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface UpdateUserMessage {
|
|
234
|
+
/**
|
|
235
|
+
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
236
|
+
*/
|
|
237
|
+
group_id: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Body param: The message content sent by the user (can be a string or an array of
|
|
241
|
+
* multi-modal content parts)
|
|
242
|
+
*/
|
|
243
|
+
content: Array<MessagesAPI.LettaUserMessageContentUnion> | string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Body param:
|
|
247
|
+
*/
|
|
248
|
+
message_type?: 'user_message';
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface UpdateReasoningMessage {
|
|
252
|
+
/**
|
|
253
|
+
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
254
|
+
*/
|
|
255
|
+
group_id: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Body param:
|
|
259
|
+
*/
|
|
260
|
+
reasoning: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Body param:
|
|
264
|
+
*/
|
|
265
|
+
message_type?: 'reasoning_message';
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface UpdateAssistantMessage {
|
|
269
|
+
/**
|
|
270
|
+
* Path param: The ID of the group in the format 'group-<uuid4>'
|
|
271
|
+
*/
|
|
272
|
+
group_id: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Body param: The message content sent by the assistant (can be a string or an
|
|
276
|
+
* array of content parts)
|
|
277
|
+
*/
|
|
278
|
+
content: Array<MessagesAPI.LettaAssistantMessageContentUnion> | string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Body param:
|
|
282
|
+
*/
|
|
283
|
+
message_type?: 'assistant_message';
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface MessageListParams extends ArrayPageParams {
|
|
288
|
+
/**
|
|
289
|
+
* @deprecated The name of the message argument.
|
|
290
|
+
*/
|
|
291
|
+
assistant_message_tool_kwarg?: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @deprecated The name of the designated message tool.
|
|
295
|
+
*/
|
|
296
|
+
assistant_message_tool_name?: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @deprecated Whether to use assistant messages
|
|
300
|
+
*/
|
|
301
|
+
use_assistant_message?: boolean;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
304
|
export interface MessageStreamParams {
|
|
305
305
|
/**
|
|
306
306
|
* @deprecated The name of the message argument in the designated message tool.
|
|
@@ -430,12 +430,12 @@ export namespace MessageStreamParams {
|
|
|
430
430
|
|
|
431
431
|
export declare namespace Messages {
|
|
432
432
|
export {
|
|
433
|
-
type
|
|
433
|
+
type MessageUpdateResponse as MessageUpdateResponse,
|
|
434
434
|
type MessageResetResponse as MessageResetResponse,
|
|
435
435
|
type MessageStreamResponse as MessageStreamResponse,
|
|
436
|
+
type MessageCreateParams as MessageCreateParams,
|
|
437
|
+
type MessageUpdateParams as MessageUpdateParams,
|
|
436
438
|
type MessageListParams as MessageListParams,
|
|
437
|
-
type MessageModifyParams as MessageModifyParams,
|
|
438
|
-
type MessageSendParams as MessageSendParams,
|
|
439
439
|
type MessageStreamParams as MessageStreamParams,
|
|
440
440
|
};
|
|
441
441
|
}
|
|
@@ -31,6 +31,13 @@ export class Identities extends APIResource {
|
|
|
31
31
|
return this._client.get(path`/v1/identities/${identityID}`, options);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Update Identity
|
|
36
|
+
*/
|
|
37
|
+
update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity> {
|
|
38
|
+
return this._client.patch(path`/v1/identities/${identityID}`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
/**
|
|
35
42
|
* Get a list of all identities in the database
|
|
36
43
|
*/
|
|
@@ -48,13 +55,6 @@ export class Identities extends APIResource {
|
|
|
48
55
|
return this._client.delete(path`/v1/identities/${identityID}`, options);
|
|
49
56
|
}
|
|
50
57
|
|
|
51
|
-
/**
|
|
52
|
-
* Modify Identity
|
|
53
|
-
*/
|
|
54
|
-
modify(identityID: string, body: IdentityModifyParams, options?: RequestOptions): APIPromise<Identity> {
|
|
55
|
-
return this._client.patch(path`/v1/identities/${identityID}`, { body, ...options });
|
|
56
|
-
}
|
|
57
|
-
|
|
58
58
|
/**
|
|
59
59
|
* Upsert Identity
|
|
60
60
|
*/
|
|
@@ -171,20 +171,7 @@ export interface IdentityCreateParams {
|
|
|
171
171
|
properties?: Array<IdentityProperty> | null;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
export interface
|
|
175
|
-
identifier_key?: string | null;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Enum to represent the type of the identity.
|
|
179
|
-
*/
|
|
180
|
-
identity_type?: IdentityType | null;
|
|
181
|
-
|
|
182
|
-
name?: string | null;
|
|
183
|
-
|
|
184
|
-
project_id?: string | null;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface IdentityModifyParams {
|
|
174
|
+
export interface IdentityUpdateParams {
|
|
188
175
|
/**
|
|
189
176
|
* @deprecated The agent ids that are associated with the identity.
|
|
190
177
|
*/
|
|
@@ -216,6 +203,19 @@ export interface IdentityModifyParams {
|
|
|
216
203
|
properties?: Array<IdentityProperty> | null;
|
|
217
204
|
}
|
|
218
205
|
|
|
206
|
+
export interface IdentityListParams extends ArrayPageParams {
|
|
207
|
+
identifier_key?: string | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Enum to represent the type of the identity.
|
|
211
|
+
*/
|
|
212
|
+
identity_type?: IdentityType | null;
|
|
213
|
+
|
|
214
|
+
name?: string | null;
|
|
215
|
+
|
|
216
|
+
project_id?: string | null;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
219
|
export interface IdentityUpsertParams {
|
|
220
220
|
/**
|
|
221
221
|
* External, user-generated identifier key of the identity.
|
|
@@ -265,8 +265,8 @@ export declare namespace Identities {
|
|
|
265
265
|
type IdentityDeleteResponse as IdentityDeleteResponse,
|
|
266
266
|
type IdentitiesArrayPage as IdentitiesArrayPage,
|
|
267
267
|
type IdentityCreateParams as IdentityCreateParams,
|
|
268
|
+
type IdentityUpdateParams as IdentityUpdateParams,
|
|
268
269
|
type IdentityListParams as IdentityListParams,
|
|
269
|
-
type IdentityModifyParams as IdentityModifyParams,
|
|
270
270
|
type IdentityUpsertParams as IdentityUpsertParams,
|
|
271
271
|
};
|
|
272
272
|
|
|
@@ -9,8 +9,8 @@ export {
|
|
|
9
9
|
type IdentityType,
|
|
10
10
|
type IdentityDeleteResponse,
|
|
11
11
|
type IdentityCreateParams,
|
|
12
|
+
type IdentityUpdateParams,
|
|
12
13
|
type IdentityListParams,
|
|
13
|
-
type IdentityModifyParams,
|
|
14
14
|
type IdentityUpsertParams,
|
|
15
15
|
type IdentitiesArrayPage,
|
|
16
16
|
} from './identities';
|
package/src/resources/index.ts
CHANGED
|
@@ -34,10 +34,10 @@ export {
|
|
|
34
34
|
type AgentImportFileResponse,
|
|
35
35
|
type AgentCreateParams,
|
|
36
36
|
type AgentRetrieveParams,
|
|
37
|
+
type AgentUpdateParams,
|
|
37
38
|
type AgentListParams,
|
|
38
39
|
type AgentExportFileParams,
|
|
39
40
|
type AgentImportFileParams,
|
|
40
|
-
type AgentModifyParams,
|
|
41
41
|
type AgentStatesArrayPage,
|
|
42
42
|
} from './agents/agents';
|
|
43
43
|
export {
|
|
@@ -45,8 +45,8 @@ export {
|
|
|
45
45
|
type Archive,
|
|
46
46
|
type VectorDBProvider,
|
|
47
47
|
type ArchiveCreateParams,
|
|
48
|
+
type ArchiveUpdateParams,
|
|
48
49
|
type ArchiveListParams,
|
|
49
|
-
type ArchiveModifyParams,
|
|
50
50
|
type ArchivesArrayPage,
|
|
51
51
|
} from './archives/archives';
|
|
52
52
|
export {
|
|
@@ -63,8 +63,8 @@ export {
|
|
|
63
63
|
type CreateBlock,
|
|
64
64
|
type BlockDeleteResponse,
|
|
65
65
|
type BlockCreateParams,
|
|
66
|
+
type BlockUpdateParams,
|
|
66
67
|
type BlockListParams,
|
|
67
|
-
type BlockModifyParams,
|
|
68
68
|
type BlockResponsesArrayPage,
|
|
69
69
|
} from './blocks/blocks';
|
|
70
70
|
export {
|
|
@@ -72,8 +72,8 @@ export {
|
|
|
72
72
|
type Folder,
|
|
73
73
|
type FolderDeleteResponse,
|
|
74
74
|
type FolderCreateParams,
|
|
75
|
+
type FolderUpdateParams,
|
|
75
76
|
type FolderListParams,
|
|
76
|
-
type FolderModifyParams,
|
|
77
77
|
type FoldersArrayPage,
|
|
78
78
|
} from './folders/folders';
|
|
79
79
|
export {
|
|
@@ -87,8 +87,8 @@ export {
|
|
|
87
87
|
type VoiceSleeptimeManager,
|
|
88
88
|
type GroupDeleteResponse,
|
|
89
89
|
type GroupCreateParams,
|
|
90
|
+
type GroupUpdateParams,
|
|
90
91
|
type GroupListParams,
|
|
91
|
-
type GroupModifyParams,
|
|
92
92
|
type GroupsArrayPage,
|
|
93
93
|
} from './groups/groups';
|
|
94
94
|
export {
|
|
@@ -98,8 +98,8 @@ export {
|
|
|
98
98
|
type IdentityType,
|
|
99
99
|
type IdentityDeleteResponse,
|
|
100
100
|
type IdentityCreateParams,
|
|
101
|
+
type IdentityUpdateParams,
|
|
101
102
|
type IdentityListParams,
|
|
102
|
-
type IdentityModifyParams,
|
|
103
103
|
type IdentityUpsertParams,
|
|
104
104
|
type IdentitiesArrayPage,
|
|
105
105
|
} from './identities/identities';
|
|
@@ -118,12 +118,12 @@ export {
|
|
|
118
118
|
type UpdateStreamableHTTPMcpServer,
|
|
119
119
|
type McpServerCreateResponse,
|
|
120
120
|
type McpServerRetrieveResponse,
|
|
121
|
+
type McpServerUpdateResponse,
|
|
121
122
|
type McpServerListResponse,
|
|
122
123
|
type McpServerConnectResponse,
|
|
123
|
-
type McpServerModifyResponse,
|
|
124
124
|
type McpServerRefreshResponse,
|
|
125
125
|
type McpServerCreateParams,
|
|
126
|
-
type
|
|
126
|
+
type McpServerUpdateParams,
|
|
127
127
|
type McpServerRefreshParams,
|
|
128
128
|
} from './mcp-servers/mcp-servers';
|
|
129
129
|
export {
|
|
@@ -158,8 +158,8 @@ export {
|
|
|
158
158
|
type ToolDeleteResponse,
|
|
159
159
|
type ToolUpsertBaseToolsResponse,
|
|
160
160
|
type ToolCreateParams,
|
|
161
|
+
type ToolUpdateParams,
|
|
161
162
|
type ToolListParams,
|
|
162
|
-
type ToolModifyParams,
|
|
163
163
|
type ToolUpsertParams,
|
|
164
164
|
type ToolsArrayPage,
|
|
165
165
|
} from './tools';
|
|
@@ -15,12 +15,12 @@ export {
|
|
|
15
15
|
type UpdateStreamableHTTPMcpServer,
|
|
16
16
|
type McpServerCreateResponse,
|
|
17
17
|
type McpServerRetrieveResponse,
|
|
18
|
+
type McpServerUpdateResponse,
|
|
18
19
|
type McpServerListResponse,
|
|
19
20
|
type McpServerConnectResponse,
|
|
20
|
-
type McpServerModifyResponse,
|
|
21
21
|
type McpServerRefreshResponse,
|
|
22
22
|
type McpServerCreateParams,
|
|
23
|
-
type
|
|
23
|
+
type McpServerUpdateParams,
|
|
24
24
|
type McpServerRefreshParams,
|
|
25
25
|
} from './mcp-servers';
|
|
26
26
|
export { Tools, type ToolListResponse, type ToolRetrieveParams, type ToolRunParams } from './tools';
|
|
@@ -26,6 +26,17 @@ export class McpServers extends APIResource {
|
|
|
26
26
|
return this._client.get(path`/v1/mcp-servers/${mcpServerID}`, options);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Update an existing MCP server configuration
|
|
31
|
+
*/
|
|
32
|
+
update(
|
|
33
|
+
mcpServerID: string,
|
|
34
|
+
body: McpServerUpdateParams,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<McpServerUpdateResponse> {
|
|
37
|
+
return this._client.patch(path`/v1/mcp-servers/${mcpServerID}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
|
|
29
40
|
/**
|
|
30
41
|
* Get a list of all configured MCP servers
|
|
31
42
|
*/
|
|
@@ -51,17 +62,6 @@ export class McpServers extends APIResource {
|
|
|
51
62
|
return this._client.get(path`/v1/mcp-servers/connect/${mcpServerID}`, options);
|
|
52
63
|
}
|
|
53
64
|
|
|
54
|
-
/**
|
|
55
|
-
* Update an existing MCP server configuration
|
|
56
|
-
*/
|
|
57
|
-
modify(
|
|
58
|
-
mcpServerID: string,
|
|
59
|
-
body: McpServerModifyParams,
|
|
60
|
-
options?: RequestOptions,
|
|
61
|
-
): APIPromise<McpServerModifyResponse> {
|
|
62
|
-
return this._client.patch(path`/v1/mcp-servers/${mcpServerID}`, { body, ...options });
|
|
63
|
-
}
|
|
64
|
-
|
|
65
65
|
/**
|
|
66
66
|
* Refresh tools for an MCP server by:
|
|
67
67
|
*
|
|
@@ -431,14 +431,14 @@ export type McpServerCreateResponse = StdioMcpServer | SseMcpServer | Streamable
|
|
|
431
431
|
*/
|
|
432
432
|
export type McpServerRetrieveResponse = StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer;
|
|
433
433
|
|
|
434
|
-
export type McpServerListResponse = Array<StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer>;
|
|
435
|
-
|
|
436
|
-
export type McpServerConnectResponse = unknown;
|
|
437
|
-
|
|
438
434
|
/**
|
|
439
435
|
* A Stdio MCP server
|
|
440
436
|
*/
|
|
441
|
-
export type
|
|
437
|
+
export type McpServerUpdateResponse = StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer;
|
|
438
|
+
|
|
439
|
+
export type McpServerListResponse = Array<StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer>;
|
|
440
|
+
|
|
441
|
+
export type McpServerConnectResponse = unknown;
|
|
442
442
|
|
|
443
443
|
export type McpServerRefreshResponse = unknown;
|
|
444
444
|
|
|
@@ -531,12 +531,12 @@ export declare namespace McpServerCreateParams {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
export type
|
|
535
|
-
|
|
|
536
|
-
|
|
|
537
|
-
|
|
|
534
|
+
export type McpServerUpdateParams =
|
|
535
|
+
| McpServerUpdateParams.UpdateStdioMcpServer
|
|
536
|
+
| McpServerUpdateParams.UpdateSseMcpServer
|
|
537
|
+
| McpServerUpdateParams.UpdateStreamableHTTPMcpServer;
|
|
538
538
|
|
|
539
|
-
export declare namespace
|
|
539
|
+
export declare namespace McpServerUpdateParams {
|
|
540
540
|
export interface UpdateStdioMcpServer {
|
|
541
541
|
/**
|
|
542
542
|
* The arguments to pass to the command
|
|
@@ -645,12 +645,12 @@ export declare namespace McpServers {
|
|
|
645
645
|
type UpdateStreamableHTTPMcpServer as UpdateStreamableHTTPMcpServer,
|
|
646
646
|
type McpServerCreateResponse as McpServerCreateResponse,
|
|
647
647
|
type McpServerRetrieveResponse as McpServerRetrieveResponse,
|
|
648
|
+
type McpServerUpdateResponse as McpServerUpdateResponse,
|
|
648
649
|
type McpServerListResponse as McpServerListResponse,
|
|
649
650
|
type McpServerConnectResponse as McpServerConnectResponse,
|
|
650
|
-
type McpServerModifyResponse as McpServerModifyResponse,
|
|
651
651
|
type McpServerRefreshResponse as McpServerRefreshResponse,
|
|
652
652
|
type McpServerCreateParams as McpServerCreateParams,
|
|
653
|
-
type
|
|
653
|
+
type McpServerUpdateParams as McpServerUpdateParams,
|
|
654
654
|
type McpServerRefreshParams as McpServerRefreshParams,
|
|
655
655
|
};
|
|
656
656
|
|
|
@@ -198,6 +198,11 @@ export interface EmbeddingModel {
|
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
201
|
+
*
|
|
202
|
+
* .. deprecated:: LLMConfig is deprecated and should not be used as an input or
|
|
203
|
+
* return type in API calls. Use the schemas in letta.schemas.model (ModelSettings,
|
|
204
|
+
* OpenAIModelSettings, etc.) instead. For conversion, use the \_to_model() method
|
|
205
|
+
* or Model.\_from_llm_config() method.
|
|
201
206
|
*/
|
|
202
207
|
export interface LlmConfig {
|
|
203
208
|
/**
|