@@ -128,21 +128,15 @@ export namespace MemoryListResponse {
128
128
id : string ;
129
129
130
130
/**
131
- * The content to extract and process into a memory. This can be a URL to a
132
- * website, a PDF, an image, or a video.
133
- *
134
- * Plaintext: Any plaintext format
135
- *
136
- * URL: A URL to a website, PDF, image, or video
137
- *
138
- * We automatically detect the content type from the url's response format.
131
+ * Creation timestamp
139
132
*/
140
- content : string | null ;
133
+ createdAt : string ;
141
134
142
135
/**
143
- * Creation timestamp
136
+ * Optional custom ID of the memory. This could be an ID from your database that
137
+ * will uniquely identify this memory.
144
138
*/
145
- createdAt : string ;
139
+ customId : string | null ;
146
140
147
141
/**
148
142
* Optional metadata for the memory. This is used to store additional information
@@ -174,9 +168,10 @@ export namespace MemoryListResponse {
174
168
updatedAt : string ;
175
169
176
170
/**
177
- * URL of the memory
171
+ * Optional tags this memory should be containerized by. This can be an ID for your
172
+ * user, a project ID, or any other identifier you wish to use to group memories.
178
173
*/
179
- url : string | null ;
174
+ containerTags ?: Array < string > ;
180
175
}
181
176
182
177
/**
@@ -199,76 +194,94 @@ export interface MemoryAddResponse {
199
194
status : string ;
200
195
}
201
196
197
+ /**
198
+ * Memory object
199
+ */
202
200
export interface MemoryGetResponse {
203
201
/**
204
- * Memory object
202
+ * Unique identifier of the memory.
205
203
*/
206
- doc : MemoryGetResponse . Doc ;
204
+ id : string ;
207
205
208
- status : string ;
209
- }
206
+ /**
207
+ * The content to extract and process into a memory. This can be a URL to a
208
+ * website, a PDF, an image, or a video.
209
+ *
210
+ * Plaintext: Any plaintext format
211
+ *
212
+ * URL: A URL to a website, PDF, image, or video
213
+ *
214
+ * We automatically detect the content type from the url's response format.
215
+ */
216
+ content : string | null ;
210
217
211
- export namespace MemoryGetResponse {
212
218
/**
213
- * Memory object
219
+ * Creation timestamp
214
220
*/
215
- export interface Doc {
216
- /**
217
- * Unique identifier of the memory.
218
- */
219
- id : string ;
221
+ createdAt : string ;
220
222
221
- /**
222
- * The content to extract and process into a memory. This can be a URL to a
223
- * website, a PDF, an image, or a video.
224
- *
225
- * Plaintext: Any plaintext format
226
- *
227
- * URL: A URL to a website, PDF, image, or video
228
- *
229
- * We automatically detect the content type from the url's response format.
230
- */
231
- content : string | null ;
223
+ /**
224
+ * Optional custom ID of the memory. This could be an ID from your database that
225
+ * will uniquely identify this memory.
226
+ */
227
+ customId : string | null ;
232
228
233
- /**
234
- * Creation timestamp
235
- */
236
- createdAt : string ;
229
+ /**
230
+ * Optional metadata for the memory. This is used to store additional information
231
+ * about the memory. You can use this to store any additional information you need
232
+ * about the memory. Metadata can be filtered through. Keys must be strings and are
233
+ * case sensitive. Values can be strings, numbers, or booleans. You cannot nest
234
+ * objects.
235
+ */
236
+ metadata : string | number | boolean | Record < string , unknown > | Array < unknown > | null ;
237
237
238
- /**
239
- * Optional metadata for the memory. This is used to store additional information
240
- * about the memory. You can use this to store any additional information you need
241
- * about the memory. Metadata can be filtered through. Keys must be strings and are
242
- * case sensitive. Values can be strings, numbers, or booleans. You cannot nest
243
- * objects.
244
- */
245
- metadata : string | number | boolean | Record < string , unknown > | Array < unknown > | null ;
238
+ ogImage : string | null ;
246
239
247
- /**
248
- * Status of the memory
249
- */
250
- status : 'unknown' | 'queued' | 'extracting' | 'chunking' | 'embedding' | 'indexing' | 'done' | 'failed' ;
240
+ /**
241
+ * Source of the memory
242
+ */
243
+ source : string | null ;
251
244
252
- /**
253
- * Summary of the memory content
254
- */
255
- summary : string | null ;
245
+ /**
246
+ * Status of the memory
247
+ */
248
+ status : 'unknown' | 'queued' | 'extracting' | 'chunking' | 'embedding' | 'indexing' | 'done' | 'failed' ;
256
249
257
- /**
258
- * Title of the memory
259
- */
260
- title : string | null ;
250
+ /**
251
+ * Summary of the memory content
252
+ */
253
+ summary : string | null ;
261
254
262
- /**
263
- * Last update timestamp
264
- */
265
- updatedAt : string ;
255
+ /**
256
+ * Title of the memory
257
+ */
258
+ title : string | null ;
266
259
267
- /**
268
- * URL of the memory
269
- */
270
- url : string | null ;
271
- }
260
+ /**
261
+ * Type of the memory
262
+ */
263
+ type : 'text' | 'pdf' | 'tweet' | 'google_doc' | 'image' | 'video' | 'notion_doc' | 'webpage' ;
264
+
265
+ /**
266
+ * Last update timestamp
267
+ */
268
+ updatedAt : string ;
269
+
270
+ /**
271
+ * URL of the memory
272
+ */
273
+ url : string | null ;
274
+
275
+ /**
276
+ * Optional tags this memory should be containerized by. This can be an ID for your
277
+ * user, a project ID, or any other identifier you wish to use to group memories.
278
+ */
279
+ containerTags ?: Array < string > ;
280
+
281
+ /**
282
+ * Raw content of the memory
283
+ */
284
+ raw ?: null ;
272
285
}
273
286
274
287
export interface MemoryUploadFileResponse {
0 commit comments