@letta-ai/letta-client 1.6.4 → 1.6.6

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.
Files changed (170) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +21 -4
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +21 -4
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js +4 -0
  16. package/resources/agents/agents.js.map +1 -1
  17. package/resources/agents/agents.mjs +4 -0
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/blocks.d.mts +12 -0
  20. package/resources/agents/blocks.d.mts.map +1 -1
  21. package/resources/agents/blocks.d.ts +12 -0
  22. package/resources/agents/blocks.d.ts.map +1 -1
  23. package/resources/agents/index.d.mts +1 -0
  24. package/resources/agents/index.d.mts.map +1 -1
  25. package/resources/agents/index.d.ts +1 -0
  26. package/resources/agents/index.d.ts.map +1 -1
  27. package/resources/agents/index.js +3 -1
  28. package/resources/agents/index.js.map +1 -1
  29. package/resources/agents/index.mjs +1 -0
  30. package/resources/agents/index.mjs.map +1 -1
  31. package/resources/agents/messages.d.mts +23 -3
  32. package/resources/agents/messages.d.mts.map +1 -1
  33. package/resources/agents/messages.d.ts +23 -3
  34. package/resources/agents/messages.d.ts.map +1 -1
  35. package/resources/agents/messages.js +10 -3
  36. package/resources/agents/messages.js.map +1 -1
  37. package/resources/agents/messages.mjs +10 -3
  38. package/resources/agents/messages.mjs.map +1 -1
  39. package/resources/agents/passages.d.mts +4 -0
  40. package/resources/agents/passages.d.mts.map +1 -1
  41. package/resources/agents/passages.d.ts +4 -0
  42. package/resources/agents/passages.d.ts.map +1 -1
  43. package/resources/agents/schedule.d.mts +197 -0
  44. package/resources/agents/schedule.d.mts.map +1 -0
  45. package/resources/agents/schedule.d.ts +197 -0
  46. package/resources/agents/schedule.d.ts.map +1 -0
  47. package/resources/agents/schedule.js +40 -0
  48. package/resources/agents/schedule.js.map +1 -0
  49. package/resources/agents/schedule.mjs +36 -0
  50. package/resources/agents/schedule.mjs.map +1 -0
  51. package/resources/blocks/agents.d.mts +1 -1
  52. package/resources/blocks/agents.d.mts.map +1 -1
  53. package/resources/blocks/agents.d.ts +1 -1
  54. package/resources/blocks/agents.d.ts.map +1 -1
  55. package/resources/blocks/blocks.d.mts +25 -0
  56. package/resources/blocks/blocks.d.mts.map +1 -1
  57. package/resources/blocks/blocks.d.ts +25 -0
  58. package/resources/blocks/blocks.d.ts.map +1 -1
  59. package/resources/blocks/blocks.js.map +1 -1
  60. package/resources/blocks/blocks.mjs.map +1 -1
  61. package/resources/conversations/conversations.d.mts +113 -0
  62. package/resources/conversations/conversations.d.mts.map +1 -0
  63. package/resources/conversations/conversations.d.ts +113 -0
  64. package/resources/conversations/conversations.d.ts.map +1 -0
  65. package/resources/conversations/conversations.js +37 -0
  66. package/resources/conversations/conversations.js.map +1 -0
  67. package/resources/conversations/conversations.mjs +32 -0
  68. package/resources/conversations/conversations.mjs.map +1 -0
  69. package/resources/conversations/index.d.mts +3 -0
  70. package/resources/conversations/index.d.mts.map +1 -0
  71. package/resources/conversations/index.d.ts +3 -0
  72. package/resources/conversations/index.d.ts.map +1 -0
  73. package/resources/conversations/index.js +9 -0
  74. package/resources/conversations/index.js.map +1 -0
  75. package/resources/conversations/index.mjs +4 -0
  76. package/resources/conversations/index.mjs.map +1 -0
  77. package/resources/conversations/messages.d.mts +198 -0
  78. package/resources/conversations/messages.d.mts.map +1 -0
  79. package/resources/conversations/messages.d.ts +198 -0
  80. package/resources/conversations/messages.d.ts.map +1 -0
  81. package/resources/conversations/messages.js +46 -0
  82. package/resources/conversations/messages.js.map +1 -0
  83. package/resources/conversations/messages.mjs +42 -0
  84. package/resources/conversations/messages.mjs.map +1 -0
  85. package/resources/conversations.d.mts +2 -0
  86. package/resources/conversations.d.mts.map +1 -0
  87. package/resources/conversations.d.ts +2 -0
  88. package/resources/conversations.d.ts.map +1 -0
  89. package/resources/conversations.js +6 -0
  90. package/resources/conversations.js.map +1 -0
  91. package/resources/conversations.mjs +3 -0
  92. package/resources/conversations.mjs.map +1 -0
  93. package/resources/folders/files.d.mts +1 -1
  94. package/resources/folders/files.d.ts +1 -1
  95. package/resources/groups/messages.d.mts +5 -5
  96. package/resources/groups/messages.d.ts +5 -5
  97. package/resources/identities/agents.d.mts +1 -1
  98. package/resources/identities/agents.d.mts.map +1 -1
  99. package/resources/identities/agents.d.ts +1 -1
  100. package/resources/identities/agents.d.ts.map +1 -1
  101. package/resources/index.d.mts +1 -0
  102. package/resources/index.d.mts.map +1 -1
  103. package/resources/index.d.ts +1 -0
  104. package/resources/index.d.ts.map +1 -1
  105. package/resources/index.js +3 -1
  106. package/resources/index.js.map +1 -1
  107. package/resources/index.mjs +1 -0
  108. package/resources/index.mjs.map +1 -1
  109. package/resources/mcp-servers/tools.d.mts +1 -1
  110. package/resources/mcp-servers/tools.d.ts +1 -1
  111. package/resources/messages.d.mts +12 -0
  112. package/resources/messages.d.mts.map +1 -1
  113. package/resources/messages.d.ts +12 -0
  114. package/resources/messages.d.ts.map +1 -1
  115. package/resources/runs/index.d.mts +1 -0
  116. package/resources/runs/index.d.mts.map +1 -1
  117. package/resources/runs/index.d.ts +1 -0
  118. package/resources/runs/index.d.ts.map +1 -1
  119. package/resources/runs/index.js +3 -1
  120. package/resources/runs/index.js.map +1 -1
  121. package/resources/runs/index.mjs +1 -0
  122. package/resources/runs/index.mjs.map +1 -1
  123. package/resources/runs/runs.d.mts +8 -0
  124. package/resources/runs/runs.d.mts.map +1 -1
  125. package/resources/runs/runs.d.ts +8 -0
  126. package/resources/runs/runs.d.ts.map +1 -1
  127. package/resources/runs/runs.js +4 -0
  128. package/resources/runs/runs.js.map +1 -1
  129. package/resources/runs/runs.mjs +4 -0
  130. package/resources/runs/runs.mjs.map +1 -1
  131. package/resources/runs/trace.d.mts +31 -0
  132. package/resources/runs/trace.d.mts.map +1 -0
  133. package/resources/runs/trace.d.ts +31 -0
  134. package/resources/runs/trace.d.ts.map +1 -0
  135. package/resources/runs/trace.js +25 -0
  136. package/resources/runs/trace.js.map +1 -0
  137. package/resources/runs/trace.mjs +21 -0
  138. package/resources/runs/trace.mjs.map +1 -0
  139. package/resources/tags.d.mts +1 -1
  140. package/resources/tags.d.ts +1 -1
  141. package/resources/tags.js +1 -1
  142. package/resources/tags.mjs +1 -1
  143. package/src/client.ts +19 -0
  144. package/src/resources/agents/agents.ts +45 -2
  145. package/src/resources/agents/blocks.ts +15 -0
  146. package/src/resources/agents/index.ts +11 -0
  147. package/src/resources/agents/messages.ts +26 -3
  148. package/src/resources/agents/passages.ts +5 -0
  149. package/src/resources/agents/schedule.ts +361 -0
  150. package/src/resources/blocks/agents.ts +1 -0
  151. package/src/resources/blocks/blocks.ts +31 -0
  152. package/src/resources/conversations/conversations.ts +168 -0
  153. package/src/resources/conversations/index.ts +18 -0
  154. package/src/resources/conversations/messages.ts +277 -0
  155. package/src/resources/conversations.ts +3 -0
  156. package/src/resources/folders/files.ts +1 -1
  157. package/src/resources/groups/messages.ts +5 -5
  158. package/src/resources/identities/agents.ts +1 -0
  159. package/src/resources/index.ts +8 -0
  160. package/src/resources/mcp-servers/tools.ts +1 -1
  161. package/src/resources/messages.ts +15 -0
  162. package/src/resources/runs/index.ts +1 -0
  163. package/src/resources/runs/runs.ts +15 -0
  164. package/src/resources/runs/trace.ts +44 -0
  165. package/src/resources/tags.ts +1 -1
  166. package/src/version.ts +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
@@ -133,6 +133,11 @@ export interface BlockResponse {
133
133
  */
134
134
  read_only?: boolean;
135
135
 
136
+ /**
137
+ * The tags associated with the block.
138
+ */
139
+ tags?: Array<string> | null;
140
+
136
141
  /**
137
142
  * @deprecated (Deprecated) The id of the template.
138
143
  */
@@ -210,6 +215,11 @@ export interface CreateBlock {
210
215
  */
211
216
  read_only?: boolean;
212
217
 
218
+ /**
219
+ * The tags to associate with the block.
220
+ */
221
+ tags?: Array<string> | null;
222
+
213
223
  /**
214
224
  * The id of the template.
215
225
  */
@@ -286,6 +296,11 @@ export interface BlockCreateParams {
286
296
  */
287
297
  read_only?: boolean;
288
298
 
299
+ /**
300
+ * The tags to associate with the block.
301
+ */
302
+ tags?: Array<string> | null;
303
+
289
304
  /**
290
305
  * The id of the template.
291
306
  */
@@ -358,6 +373,11 @@ export interface BlockUpdateParams {
358
373
  */
359
374
  read_only?: boolean;
360
375
 
376
+ /**
377
+ * The tags to associate with the block.
378
+ */
379
+ tags?: Array<string> | null;
380
+
361
381
  /**
362
382
  * The id of the template.
363
383
  */
@@ -420,6 +440,12 @@ export interface BlockListParams extends ArrayPageParams {
420
440
  */
421
441
  label_search?: string | null;
422
442
 
443
+ /**
444
+ * If True, only returns blocks that match ALL given tags. Otherwise, return blocks
445
+ * that have ANY of the passed-in tags.
446
+ */
447
+ match_all_tags?: boolean;
448
+
423
449
  /**
424
450
  * Name filter (alphanumeric, spaces, hyphens, underscores)
425
451
  */
@@ -430,6 +456,11 @@ export interface BlockListParams extends ArrayPageParams {
430
456
  */
431
457
  project_id?: string | null;
432
458
 
459
+ /**
460
+ * List of tags to filter blocks by
461
+ */
462
+ tags?: Array<string> | null;
463
+
433
464
  /**
434
465
  * Whether to include only templates
435
466
  */
@@ -0,0 +1,168 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as MessagesAPI from './messages';
5
+ import {
6
+ MessageCreateParams,
7
+ MessageListParams,
8
+ MessageListResponse,
9
+ MessageStreamParams,
10
+ MessageStreamResponse,
11
+ Messages,
12
+ } from './messages';
13
+ import { APIPromise } from '../../core/api-promise';
14
+ import { RequestOptions } from '../../internal/request-options';
15
+ import { path } from '../../internal/utils/path';
16
+
17
+ export class Conversations extends APIResource {
18
+ messages: MessagesAPI.Messages = new MessagesAPI.Messages(this._client);
19
+
20
+ /**
21
+ * Create a new conversation for an agent.
22
+ */
23
+ create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<Conversation> {
24
+ const { agent_id, ...body } = params;
25
+ return this._client.post('/v1/conversations/', { query: { agent_id }, body, ...options });
26
+ }
27
+
28
+ /**
29
+ * Retrieve a specific conversation.
30
+ */
31
+ retrieve(conversationID: string, options?: RequestOptions): APIPromise<Conversation> {
32
+ return this._client.get(path`/v1/conversations/${conversationID}`, options);
33
+ }
34
+
35
+ /**
36
+ * List all conversations for an agent.
37
+ */
38
+ list(query: ConversationListParams, options?: RequestOptions): APIPromise<ConversationListResponse> {
39
+ return this._client.get('/v1/conversations/', { query, ...options });
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Represents a conversation on an agent for concurrent messaging.
45
+ */
46
+ export interface Conversation {
47
+ /**
48
+ * The unique identifier of the conversation.
49
+ */
50
+ id: string;
51
+
52
+ /**
53
+ * The ID of the agent this conversation belongs to.
54
+ */
55
+ agent_id: string;
56
+
57
+ /**
58
+ * The timestamp when the object was created.
59
+ */
60
+ created_at?: string | null;
61
+
62
+ /**
63
+ * The id of the user that made this object.
64
+ */
65
+ created_by_id?: string | null;
66
+
67
+ /**
68
+ * The IDs of in-context messages for the conversation.
69
+ */
70
+ in_context_message_ids?: Array<string>;
71
+
72
+ /**
73
+ * IDs of blocks that are isolated (specific to this conversation, overriding agent
74
+ * defaults).
75
+ */
76
+ isolated_block_ids?: Array<string>;
77
+
78
+ /**
79
+ * The id of the user that made this object.
80
+ */
81
+ last_updated_by_id?: string | null;
82
+
83
+ /**
84
+ * A summary of the conversation.
85
+ */
86
+ summary?: string | null;
87
+
88
+ /**
89
+ * The timestamp when the object was last updated.
90
+ */
91
+ updated_at?: string | null;
92
+ }
93
+
94
+ /**
95
+ * Request model for creating a new conversation.
96
+ */
97
+ export interface CreateConversation {
98
+ /**
99
+ * List of block labels that should be isolated (conversation-specific) rather than
100
+ * shared across conversations. New blocks will be created as copies of the agent's
101
+ * blocks with these labels.
102
+ */
103
+ isolated_block_labels?: Array<string> | null;
104
+
105
+ /**
106
+ * A summary of the conversation.
107
+ */
108
+ summary?: string | null;
109
+ }
110
+
111
+ export type ConversationListResponse = Array<Conversation>;
112
+
113
+ export interface ConversationCreateParams {
114
+ /**
115
+ * Query param: The agent ID to create a conversation for
116
+ */
117
+ agent_id: string;
118
+
119
+ /**
120
+ * Body param: List of block labels that should be isolated (conversation-specific)
121
+ * rather than shared across conversations. New blocks will be created as copies of
122
+ * the agent's blocks with these labels.
123
+ */
124
+ isolated_block_labels?: Array<string> | null;
125
+
126
+ /**
127
+ * Body param: A summary of the conversation.
128
+ */
129
+ summary?: string | null;
130
+ }
131
+
132
+ export interface ConversationListParams {
133
+ /**
134
+ * The agent ID to list conversations for
135
+ */
136
+ agent_id: string;
137
+
138
+ /**
139
+ * Cursor for pagination (conversation ID)
140
+ */
141
+ after?: string | null;
142
+
143
+ /**
144
+ * Maximum number of conversations to return
145
+ */
146
+ limit?: number;
147
+ }
148
+
149
+ Conversations.Messages = Messages;
150
+
151
+ export declare namespace Conversations {
152
+ export {
153
+ type Conversation as Conversation,
154
+ type CreateConversation as CreateConversation,
155
+ type ConversationListResponse as ConversationListResponse,
156
+ type ConversationCreateParams as ConversationCreateParams,
157
+ type ConversationListParams as ConversationListParams,
158
+ };
159
+
160
+ export {
161
+ Messages as Messages,
162
+ type MessageListResponse as MessageListResponse,
163
+ type MessageStreamResponse as MessageStreamResponse,
164
+ type MessageCreateParams as MessageCreateParams,
165
+ type MessageListParams as MessageListParams,
166
+ type MessageStreamParams as MessageStreamParams,
167
+ };
168
+ }
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Conversations,
5
+ type Conversation,
6
+ type CreateConversation,
7
+ type ConversationListResponse,
8
+ type ConversationCreateParams,
9
+ type ConversationListParams,
10
+ } from './conversations';
11
+ export {
12
+ Messages,
13
+ type MessageListResponse,
14
+ type MessageStreamResponse,
15
+ type MessageCreateParams,
16
+ type MessageListParams,
17
+ type MessageStreamParams,
18
+ } from './messages';
@@ -0,0 +1,277 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as AgentsAPI from '../agents/agents';
5
+ import * as MessagesAPI from '../agents/messages';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { Stream } from '../../core/streaming';
8
+ import { RequestOptions } from '../../internal/request-options';
9
+ import { path } from '../../internal/utils/path';
10
+
11
+ export class Messages extends APIResource {
12
+ /**
13
+ * Send a message to a conversation and get a streaming response.
14
+ *
15
+ * This endpoint sends a message to an existing conversation and streams the
16
+ * agent's response back.
17
+ */
18
+ create(
19
+ conversationID: string,
20
+ body: MessageCreateParams,
21
+ options?: RequestOptions,
22
+ ): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>> {
23
+ return this._client.post(path`/v1/conversations/${conversationID}/messages`, {
24
+ body,
25
+ ...options,
26
+ stream: true,
27
+ }) as APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
28
+ }
29
+
30
+ /**
31
+ * List all messages in a conversation.
32
+ *
33
+ * Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all
34
+ * messages in the conversation, ordered by position (oldest first), with support
35
+ * for cursor-based pagination.
36
+ */
37
+ list(
38
+ conversationID: string,
39
+ query: MessageListParams | null | undefined = {},
40
+ options?: RequestOptions,
41
+ ): APIPromise<MessageListResponse> {
42
+ return this._client.get(path`/v1/conversations/${conversationID}/messages`, { query, ...options });
43
+ }
44
+
45
+ /**
46
+ * Resume the stream for the most recent active run in a conversation.
47
+ *
48
+ * This endpoint allows you to reconnect to an active background stream for a
49
+ * conversation, enabling recovery from network interruptions.
50
+ */
51
+ stream(
52
+ conversationID: string,
53
+ body: MessageStreamParams | undefined = {},
54
+ options?: RequestOptions,
55
+ ): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>> {
56
+ return this._client.post(path`/v1/conversations/${conversationID}/stream`, {
57
+ body,
58
+ ...options,
59
+ stream: true,
60
+ }) as APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
61
+ }
62
+ }
63
+
64
+ export type MessageListResponse = Array<MessagesAPI.Message>;
65
+
66
+ export type MessageStreamResponse = unknown;
67
+
68
+ export interface MessageCreateParams {
69
+ /**
70
+ * @deprecated The name of the message argument in the designated message tool.
71
+ * Still supported for legacy agent types, but deprecated for letta_v1_agent
72
+ * onward.
73
+ */
74
+ assistant_message_tool_kwarg?: string;
75
+
76
+ /**
77
+ * @deprecated The name of the designated message tool. Still supported for legacy
78
+ * agent types, but deprecated for letta_v1_agent onward.
79
+ */
80
+ assistant_message_tool_name?: string;
81
+
82
+ /**
83
+ * Whether to process the request in the background (only used when
84
+ * streaming=true).
85
+ */
86
+ background?: boolean;
87
+
88
+ /**
89
+ * Client-side tools that the agent can call. When the agent calls a client-side
90
+ * tool, execution pauses and returns control to the client to execute the tool and
91
+ * provide the result via a ToolReturn.
92
+ */
93
+ client_tools?: Array<MessageCreateParams.ClientTool> | null;
94
+
95
+ /**
96
+ * @deprecated If set to True, enables reasoning before responses or tool calls
97
+ * from the agent.
98
+ */
99
+ enable_thinking?: string;
100
+
101
+ /**
102
+ * Whether to include periodic keepalive ping messages in the stream to prevent
103
+ * connection timeouts (only used when streaming=true).
104
+ */
105
+ include_pings?: boolean;
106
+
107
+ /**
108
+ * Only return specified message types in the response. If `None` (default) returns
109
+ * all messages.
110
+ */
111
+ include_return_message_types?: Array<MessagesAPI.MessageType> | null;
112
+
113
+ /**
114
+ * Syntactic sugar for a single user message. Equivalent to messages=[{'role':
115
+ * 'user', 'content': input}].
116
+ */
117
+ input?:
118
+ | string
119
+ | Array<
120
+ | MessagesAPI.TextContent
121
+ | MessagesAPI.ImageContent
122
+ | MessagesAPI.ToolCallContent
123
+ | MessagesAPI.ToolReturnContent
124
+ | MessagesAPI.ReasoningContent
125
+ | MessagesAPI.RedactedReasoningContent
126
+ | MessagesAPI.OmittedReasoningContent
127
+ | MessageCreateParams.SummarizedReasoningContent
128
+ >
129
+ | null;
130
+
131
+ /**
132
+ * Maximum number of steps the agent should take to process the request.
133
+ */
134
+ max_steps?: number;
135
+
136
+ /**
137
+ * The messages to be sent to the agent.
138
+ */
139
+ messages?: Array<AgentsAPI.MessageCreate | MessagesAPI.ApprovalCreate> | null;
140
+
141
+ /**
142
+ * Flag to determine if individual tokens should be streamed, rather than streaming
143
+ * per step (only used when streaming=true).
144
+ */
145
+ stream_tokens?: boolean;
146
+
147
+ /**
148
+ * If True, returns a streaming response (Server-Sent Events). If False (default),
149
+ * returns a complete response.
150
+ */
151
+ streaming?: boolean;
152
+
153
+ /**
154
+ * @deprecated Whether the server should parse specific tool call arguments
155
+ * (default `send_message`) as `AssistantMessage` objects. Still supported for
156
+ * legacy agent types, but deprecated for letta_v1_agent onward.
157
+ */
158
+ use_assistant_message?: boolean;
159
+ }
160
+
161
+ export namespace MessageCreateParams {
162
+ /**
163
+ * Schema for a client-side tool passed in the request.
164
+ *
165
+ * Client-side tools are executed by the client, not the server. When the agent
166
+ * calls a client-side tool, execution pauses and returns control to the client to
167
+ * execute the tool and provide the result.
168
+ */
169
+ export interface ClientTool {
170
+ /**
171
+ * The name of the tool function
172
+ */
173
+ name: string;
174
+
175
+ /**
176
+ * Description of what the tool does
177
+ */
178
+ description?: string | null;
179
+
180
+ /**
181
+ * JSON Schema for the function parameters
182
+ */
183
+ parameters?: { [key: string]: unknown } | null;
184
+ }
185
+
186
+ /**
187
+ * The style of reasoning content returned by the OpenAI Responses API
188
+ */
189
+ export interface SummarizedReasoningContent {
190
+ /**
191
+ * The unique identifier for this reasoning step.
192
+ */
193
+ id: string;
194
+
195
+ /**
196
+ * Summaries of the reasoning content.
197
+ */
198
+ summary: Array<SummarizedReasoningContent.Summary>;
199
+
200
+ /**
201
+ * The encrypted reasoning content.
202
+ */
203
+ encrypted_content?: string;
204
+
205
+ /**
206
+ * Indicates this is a summarized reasoning step.
207
+ */
208
+ type?: 'summarized_reasoning';
209
+ }
210
+
211
+ export namespace SummarizedReasoningContent {
212
+ export interface Summary {
213
+ /**
214
+ * The index of the summary part.
215
+ */
216
+ index: number;
217
+
218
+ /**
219
+ * The text of the summary part.
220
+ */
221
+ text: string;
222
+ }
223
+ }
224
+ }
225
+
226
+ export interface MessageListParams {
227
+ /**
228
+ * Message ID cursor for pagination. Returns messages that come after this message
229
+ * ID in the conversation
230
+ */
231
+ after?: string | null;
232
+
233
+ /**
234
+ * Message ID cursor for pagination. Returns messages that come before this message
235
+ * ID in the conversation
236
+ */
237
+ before?: string | null;
238
+
239
+ /**
240
+ * Maximum number of messages to return
241
+ */
242
+ limit?: number | null;
243
+ }
244
+
245
+ export interface MessageStreamParams {
246
+ /**
247
+ * Number of entries to read per batch.
248
+ */
249
+ batch_size?: number | null;
250
+
251
+ /**
252
+ * Whether to include periodic keepalive ping messages in the stream to prevent
253
+ * connection timeouts.
254
+ */
255
+ include_pings?: boolean | null;
256
+
257
+ /**
258
+ * Seconds to wait between polls when no new data.
259
+ */
260
+ poll_interval?: number | null;
261
+
262
+ /**
263
+ * Sequence id to use as a cursor for pagination. Response will start streaming
264
+ * after this chunk sequence id
265
+ */
266
+ starting_after?: number;
267
+ }
268
+
269
+ export declare namespace Messages {
270
+ export {
271
+ type MessageListResponse as MessageListResponse,
272
+ type MessageStreamResponse as MessageStreamResponse,
273
+ type MessageCreateParams as MessageCreateParams,
274
+ type MessageListParams as MessageListParams,
275
+ type MessageStreamParams as MessageStreamParams,
276
+ };
277
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './conversations/index';
@@ -357,7 +357,7 @@ export interface FileDeleteParams {
357
357
 
358
358
  export interface FileUploadParams {
359
359
  /**
360
- * Body param:
360
+ * Body param
361
361
  */
362
362
  file: Uploadable;
363
363
 
@@ -256,7 +256,7 @@ export declare namespace MessageUpdateParams {
256
256
  content: string;
257
257
 
258
258
  /**
259
- * Body param:
259
+ * Body param
260
260
  */
261
261
  message_type?: 'system_message';
262
262
  }
@@ -274,7 +274,7 @@ export declare namespace MessageUpdateParams {
274
274
  content: Array<MessagesAPI.LettaUserMessageContentUnion> | string;
275
275
 
276
276
  /**
277
- * Body param:
277
+ * Body param
278
278
  */
279
279
  message_type?: 'user_message';
280
280
  }
@@ -286,12 +286,12 @@ export declare namespace MessageUpdateParams {
286
286
  group_id: string;
287
287
 
288
288
  /**
289
- * Body param:
289
+ * Body param
290
290
  */
291
291
  reasoning: string;
292
292
 
293
293
  /**
294
- * Body param:
294
+ * Body param
295
295
  */
296
296
  message_type?: 'reasoning_message';
297
297
  }
@@ -309,7 +309,7 @@ export declare namespace MessageUpdateParams {
309
309
  content: Array<MessagesAPI.LettaAssistantMessageContentUnion> | string;
310
310
 
311
311
  /**
312
- * Body param:
312
+ * Body param
313
313
  */
314
314
  message_type?: 'assistant_message';
315
315
  }
@@ -33,6 +33,7 @@ export interface AgentListParams extends ArrayPageParams {
33
33
  | 'agent.blocks'
34
34
  | 'agent.identities'
35
35
  | 'agent.managed_group'
36
+ | 'agent.pending_approval'
36
37
  | 'agent.secrets'
37
38
  | 'agent.sources'
38
39
  | 'agent.tags'
@@ -76,6 +76,14 @@ export {
76
76
  type BlockListParams,
77
77
  type BlockResponsesArrayPage,
78
78
  } from './blocks/blocks';
79
+ export {
80
+ Conversations,
81
+ type Conversation,
82
+ type CreateConversation,
83
+ type ConversationListResponse,
84
+ type ConversationCreateParams,
85
+ type ConversationListParams,
86
+ } from './conversations/conversations';
79
87
  export {
80
88
  Folders,
81
89
  type Folder,
@@ -50,7 +50,7 @@ export interface ToolRetrieveParams {
50
50
 
51
51
  export interface ToolRunParams {
52
52
  /**
53
- * Path param:
53
+ * Path param
54
54
  */
55
55
  mcp_server_id: string;
56
56
 
@@ -38,6 +38,11 @@ export interface MessageSearchRequest {
38
38
  */
39
39
  agent_id?: string | null;
40
40
 
41
+ /**
42
+ * Filter messages by conversation ID
43
+ */
44
+ conversation_id?: string | null;
45
+
41
46
  /**
42
47
  * Filter messages created on or before this date
43
48
  */
@@ -233,6 +238,11 @@ export interface MessageListParams {
233
238
  */
234
239
  before?: string | null;
235
240
 
241
+ /**
242
+ * Conversation ID to filter messages by
243
+ */
244
+ conversation_id?: string | null;
245
+
236
246
  /**
237
247
  * Maximum number of messages to return
238
248
  */
@@ -256,6 +266,11 @@ export interface MessageSearchParams {
256
266
  */
257
267
  agent_id?: string | null;
258
268
 
269
+ /**
270
+ * Filter messages by conversation ID
271
+ */
272
+ conversation_id?: string | null;
273
+
259
274
  /**
260
275
  * Filter messages created on or before this date
261
276
  */
@@ -8,4 +8,5 @@ export {
8
8
  } from './messages';
9
9
  export { Runs, type Job, type StopReasonType, type RunListParams } from './runs';
10
10
  export { Steps, type StepListParams } from './steps';
11
+ export { Trace, type TraceRetrieveResponse, type TraceRetrieveParams } from './trace';
11
12
  export { Usage, type UsageRetrieveResponse } from './usage';