@anthropic-ai/sdk 0.91.0 → 0.92.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.
- package/CHANGELOG.md +33 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/beta/environments.d.mts +1 -1
- package/resources/beta/environments.d.ts +1 -1
- package/resources/beta/files.js +5 -5
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +5 -5
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memories.d.mts +126 -11
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +126 -11
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memories.js +5 -5
- package/resources/beta/memory-stores/memories.mjs +5 -5
- package/resources/beta/memory-stores/memory-stores.d.mts +58 -14
- package/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.ts +58 -14
- package/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js +6 -6
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs +6 -6
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +88 -5
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +88 -5
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.js +3 -3
- package/resources/beta/memory-stores/memory-versions.mjs +3 -3
- package/resources/beta/messages/batches.d.mts +4 -0
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +4 -0
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +5 -1
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +5 -1
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +5 -0
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +5 -0
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/messages/messages.d.mts +4 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +4 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/beta/environments.ts +1 -1
- package/src/resources/beta/files.ts +5 -5
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/memory-stores/memories.ts +126 -11
- package/src/resources/beta/memory-stores/memory-stores.ts +58 -14
- package/src/resources/beta/memory-stores/memory-versions.ts +88 -5
- package/src/resources/beta/messages/batches.ts +4 -0
- package/src/resources/beta/messages/index.ts +1 -0
- package/src/resources/beta/messages/messages.ts +5 -1
- package/src/resources/beta/sessions/sessions.ts +6 -0
- package/src/resources/messages/messages.ts +4 -0
- package/src/tools/memory/node.ts +13 -5
- package/src/version.ts +1 -1
- package/tools/memory/node.d.mts.map +1 -1
- package/tools/memory/node.d.ts.map +1 -1
- package/tools/memory/node.js +12 -5
- package/tools/memory/node.js.map +1 -1
- package/tools/memory/node.mjs +12 -5
- package/tools/memory/node.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -5,7 +5,7 @@ import { PageCursor, type PageCursorParams, PagePromise } from "../../../core/pa
|
|
|
5
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
6
|
export declare class Memories extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Create a memory
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
@@ -18,7 +18,7 @@ export declare class Memories extends APIResource {
|
|
|
18
18
|
*/
|
|
19
19
|
create(memoryStoreID: string, params: MemoryCreateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemory>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Retrieve a memory
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```ts
|
|
@@ -31,7 +31,7 @@ export declare class Memories extends APIResource {
|
|
|
31
31
|
*/
|
|
32
32
|
retrieve(memoryID: string, params: MemoryRetrieveParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemory>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Update a memory
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
@@ -44,7 +44,7 @@ export declare class Memories extends APIResource {
|
|
|
44
44
|
*/
|
|
45
45
|
update(memoryID: string, params: MemoryUpdateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemory>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* List memories
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* ```ts
|
|
@@ -58,7 +58,7 @@ export declare class Memories extends APIResource {
|
|
|
58
58
|
*/
|
|
59
59
|
list(memoryStoreID: string, params?: MemoryListParams | null | undefined, options?: RequestOptions): PagePromise<BetaManagedAgentsMemoryListItemsPageCursor, BetaManagedAgentsMemoryListItem>;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Delete a memory
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
@@ -76,33 +76,103 @@ export interface BetaManagedAgentsConflictError {
|
|
|
76
76
|
type: 'conflict_error';
|
|
77
77
|
message?: string;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Optimistic-concurrency precondition: the update applies only if the memory's
|
|
81
|
+
* stored `content_sha256` equals the supplied value. On mismatch, the request
|
|
82
|
+
* returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and
|
|
83
|
+
* retry against the fresh state. If the precondition fails but the stored state
|
|
84
|
+
* already exactly matches the requested `content` and `path`, the server returns
|
|
85
|
+
* 200 instead of 409.
|
|
86
|
+
*/
|
|
79
87
|
export interface BetaManagedAgentsContentSha256Precondition {
|
|
80
88
|
type: 'content_sha256';
|
|
89
|
+
/**
|
|
90
|
+
* Expected `content_sha256` of the stored memory (64 lowercase hexadecimal
|
|
91
|
+
* characters). Typically the `content_sha256` returned by a prior read or list
|
|
92
|
+
* call. Because the server applies no content normalization, clients can also
|
|
93
|
+
* compute this locally as the SHA-256 of the UTF-8 content bytes.
|
|
94
|
+
*/
|
|
81
95
|
content_sha256?: string;
|
|
82
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Tombstone returned by
|
|
99
|
+
* [Delete a memory](/en/api/beta/memory_stores/memories/delete). The memory's
|
|
100
|
+
* version history persists and remains listable via
|
|
101
|
+
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list) until
|
|
102
|
+
* the store itself is deleted.
|
|
103
|
+
*/
|
|
83
104
|
export interface BetaManagedAgentsDeletedMemory {
|
|
105
|
+
/**
|
|
106
|
+
* ID of the deleted memory (a `mem_...` value).
|
|
107
|
+
*/
|
|
84
108
|
id: string;
|
|
85
109
|
type: 'memory_deleted';
|
|
86
110
|
}
|
|
87
111
|
export type BetaManagedAgentsError = BetaAPI.BetaInvalidRequestError | BetaAPI.BetaAuthenticationError | BetaAPI.BetaBillingError | BetaAPI.BetaPermissionError | BetaAPI.BetaNotFoundError | BetaAPI.BetaRateLimitError | BetaAPI.BetaGatewayTimeoutError | BetaAPI.BetaAPIError | BetaAPI.BetaOverloadedError | BetaManagedAgentsMemoryPreconditionFailedError | BetaManagedAgentsMemoryPathConflictError | BetaManagedAgentsConflictError;
|
|
112
|
+
/**
|
|
113
|
+
* A `memory` object: a single text document at a hierarchical path inside a memory
|
|
114
|
+
* store. The `content` field is populated when `view=full` and `null` when
|
|
115
|
+
* `view=basic`; the `content_size_bytes` and `content_sha256` fields are always
|
|
116
|
+
* populated so sync clients can diff without fetching content. Memories are
|
|
117
|
+
* addressed by their `mem_...` ID; the path is the create key and can be changed
|
|
118
|
+
* via update.
|
|
119
|
+
*/
|
|
88
120
|
export interface BetaManagedAgentsMemory {
|
|
121
|
+
/**
|
|
122
|
+
* Unique identifier for this memory (a `mem_...` value). Stable across renames;
|
|
123
|
+
* use this ID, not the path, to read, update, or delete the memory.
|
|
124
|
+
*/
|
|
89
125
|
id: string;
|
|
126
|
+
/**
|
|
127
|
+
* Lowercase hex SHA-256 digest of the UTF-8 `content` bytes (64 characters). The
|
|
128
|
+
* server applies no normalization, so clients can compute the same hash locally
|
|
129
|
+
* for staleness checks and as the value for a `content_sha256` precondition on
|
|
130
|
+
* update. Always populated, regardless of `view`.
|
|
131
|
+
*/
|
|
90
132
|
content_sha256: string;
|
|
133
|
+
/**
|
|
134
|
+
* Size of `content` in bytes (the UTF-8 plaintext length). Always populated,
|
|
135
|
+
* regardless of `view`.
|
|
136
|
+
*/
|
|
91
137
|
content_size_bytes: number;
|
|
92
138
|
/**
|
|
93
139
|
* A timestamp in RFC 3339 format
|
|
94
140
|
*/
|
|
95
141
|
created_at: string;
|
|
142
|
+
/**
|
|
143
|
+
* ID of the memory store this memory belongs to (a `memstore_...` value).
|
|
144
|
+
*/
|
|
96
145
|
memory_store_id: string;
|
|
146
|
+
/**
|
|
147
|
+
* ID of the `memory_version` representing this memory's current content (a
|
|
148
|
+
* `memver_...` value). This is the authoritative head pointer; `memory_version`
|
|
149
|
+
* objects do not carry an `is_latest` flag, so compare against this field instead.
|
|
150
|
+
* Enumerate the full history via
|
|
151
|
+
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list).
|
|
152
|
+
*/
|
|
97
153
|
memory_version_id: string;
|
|
154
|
+
/**
|
|
155
|
+
* Hierarchical path of the memory within the store, e.g. `/projects/foo/notes.md`.
|
|
156
|
+
* Always starts with `/`. Paths are case-sensitive and unique within a store.
|
|
157
|
+
* Maximum 1,024 bytes.
|
|
158
|
+
*/
|
|
98
159
|
path: string;
|
|
99
160
|
type: 'memory';
|
|
100
161
|
/**
|
|
101
162
|
* A timestamp in RFC 3339 format
|
|
102
163
|
*/
|
|
103
164
|
updated_at: string;
|
|
165
|
+
/**
|
|
166
|
+
* The memory's UTF-8 text content. Populated when `view=full`; `null` when
|
|
167
|
+
* `view=basic`. Maximum 100 kB (102,400 bytes).
|
|
168
|
+
*/
|
|
104
169
|
content?: string | null;
|
|
105
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* One item in a [List memories](/en/api/beta/memory_stores/memories/list)
|
|
173
|
+
* response: either a `memory` object or, when `depth` is set, a `memory_prefix`
|
|
174
|
+
* rollup marker.
|
|
175
|
+
*/
|
|
106
176
|
export type BetaManagedAgentsMemoryListItem = BetaManagedAgentsMemory | BetaManagedAgentsMemoryPrefix;
|
|
107
177
|
export interface BetaManagedAgentsMemoryPathConflictError {
|
|
108
178
|
type: 'memory_path_conflict_error';
|
|
@@ -114,25 +184,60 @@ export interface BetaManagedAgentsMemoryPreconditionFailedError {
|
|
|
114
184
|
type: 'memory_precondition_failed_error';
|
|
115
185
|
message?: string;
|
|
116
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* A rolled-up directory marker returned by
|
|
189
|
+
* [List memories](/en/api/beta/memory_stores/memories/list) when `depth` is set.
|
|
190
|
+
* Indicates that one or more memories exist deeper than the requested depth under
|
|
191
|
+
* this prefix. This is a list-time rollup, not a stored resource; it has no ID and
|
|
192
|
+
* no lifecycle. Each prefix counts toward the page `limit` and interleaves with
|
|
193
|
+
* `memory` items in path order.
|
|
194
|
+
*/
|
|
117
195
|
export interface BetaManagedAgentsMemoryPrefix {
|
|
196
|
+
/**
|
|
197
|
+
* The rolled-up path prefix, including a trailing `/` (e.g. `/projects/foo/`).
|
|
198
|
+
* Pass this value as `path_prefix` on a subsequent list call to drill into the
|
|
199
|
+
* directory.
|
|
200
|
+
*/
|
|
118
201
|
path: string;
|
|
119
202
|
type: 'memory_prefix';
|
|
120
203
|
}
|
|
121
204
|
/**
|
|
122
|
-
*
|
|
205
|
+
* Selects which projection of a `memory` or `memory_version` the server returns.
|
|
206
|
+
* `basic` returns the object with `content` set to `null`; `full` populates
|
|
207
|
+
* `content`. When omitted, the default is endpoint-specific: retrieve operations
|
|
208
|
+
* default to `full`; list, create, and update operations default to `basic`.
|
|
209
|
+
* Listing with `view=full` caps `limit` at 20.
|
|
123
210
|
*/
|
|
124
211
|
export type BetaManagedAgentsMemoryView = 'basic' | 'full';
|
|
212
|
+
/**
|
|
213
|
+
* Optimistic-concurrency precondition: the update applies only if the memory's
|
|
214
|
+
* stored `content_sha256` equals the supplied value. On mismatch, the request
|
|
215
|
+
* returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and
|
|
216
|
+
* retry against the fresh state. If the precondition fails but the stored state
|
|
217
|
+
* already exactly matches the requested `content` and `path`, the server returns
|
|
218
|
+
* 200 instead of 409.
|
|
219
|
+
*/
|
|
125
220
|
export interface BetaManagedAgentsPrecondition {
|
|
126
221
|
type: 'content_sha256';
|
|
222
|
+
/**
|
|
223
|
+
* Expected `content_sha256` of the stored memory (64 lowercase hexadecimal
|
|
224
|
+
* characters). Typically the `content_sha256` returned by a prior read or list
|
|
225
|
+
* call. Because the server applies no content normalization, clients can also
|
|
226
|
+
* compute this locally as the SHA-256 of the UTF-8 content bytes.
|
|
227
|
+
*/
|
|
127
228
|
content_sha256?: string;
|
|
128
229
|
}
|
|
129
230
|
export interface MemoryCreateParams {
|
|
130
231
|
/**
|
|
131
|
-
* Body param
|
|
232
|
+
* Body param: UTF-8 text content for the new memory. Maximum 100 kB (102,400
|
|
233
|
+
* bytes). Required; pass `""` explicitly to create an empty memory.
|
|
132
234
|
*/
|
|
133
235
|
content: string | null;
|
|
134
236
|
/**
|
|
135
|
-
* Body param
|
|
237
|
+
* Body param: Hierarchical path for the new memory, e.g. `/projects/foo/notes.md`.
|
|
238
|
+
* Must start with `/`, contain at least one non-empty segment, and be at most
|
|
239
|
+
* 1,024 bytes. Must not contain empty segments, `.` or `..` segments, control or
|
|
240
|
+
* format characters, and must be NFC-normalized. Paths are case-sensitive.
|
|
136
241
|
*/
|
|
137
242
|
path: string;
|
|
138
243
|
/**
|
|
@@ -168,15 +273,25 @@ export interface MemoryUpdateParams {
|
|
|
168
273
|
*/
|
|
169
274
|
view?: BetaManagedAgentsMemoryView;
|
|
170
275
|
/**
|
|
171
|
-
* Body param
|
|
276
|
+
* Body param: New UTF-8 text content for the memory. Maximum 100 kB (102,400
|
|
277
|
+
* bytes). Omit to leave the content unchanged (e.g., for a rename-only update).
|
|
172
278
|
*/
|
|
173
279
|
content?: string | null;
|
|
174
280
|
/**
|
|
175
|
-
* Body param
|
|
281
|
+
* Body param: New path for the memory (a rename). Must start with `/`, contain at
|
|
282
|
+
* least one non-empty segment, and be at most 1,024 bytes. Must not contain empty
|
|
283
|
+
* segments, `.` or `..` segments, control or format characters, and must be
|
|
284
|
+
* NFC-normalized. Paths are case-sensitive. The memory's `id` is preserved across
|
|
285
|
+
* renames. Omit to leave the path unchanged.
|
|
176
286
|
*/
|
|
177
287
|
path?: string | null;
|
|
178
288
|
/**
|
|
179
|
-
* Body param
|
|
289
|
+
* Body param: Optimistic-concurrency precondition: the update applies only if the
|
|
290
|
+
* memory's stored `content_sha256` equals the supplied value. On mismatch, the
|
|
291
|
+
* request returns `memory_precondition_failed_error` (HTTP 409); re-read the
|
|
292
|
+
* memory and retry against the fresh state. If the precondition fails but the
|
|
293
|
+
* stored state already exactly matches the requested `content` and `path`, the
|
|
294
|
+
* server returns 200 instead of 409.
|
|
180
295
|
*/
|
|
181
296
|
precondition?: BetaManagedAgentsPrecondition;
|
|
182
297
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memories.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memories.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAatC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAYtC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAA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AAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -8,7 +8,7 @@ const headers_1 = require("../../../internal/headers.js");
|
|
|
8
8
|
const path_1 = require("../../../internal/utils/path.js");
|
|
9
9
|
class Memories extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Create a memory
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -32,7 +32,7 @@ class Memories extends resource_1.APIResource {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Retrieve a memory
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
@@ -55,7 +55,7 @@ class Memories extends resource_1.APIResource {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Update a memory
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```ts
|
|
@@ -79,7 +79,7 @@ class Memories extends resource_1.APIResource {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* List memories
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* ```ts
|
|
@@ -103,7 +103,7 @@ class Memories extends resource_1.APIResource {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Delete a memory
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
109
|
* ```ts
|
|
@@ -5,7 +5,7 @@ import { buildHeaders } from "../../../internal/headers.mjs";
|
|
|
5
5
|
import { path } from "../../../internal/utils/path.mjs";
|
|
6
6
|
export class Memories extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Create a memory
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
@@ -29,7 +29,7 @@ export class Memories extends APIResource {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Retrieve a memory
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ```ts
|
|
@@ -52,7 +52,7 @@ export class Memories extends APIResource {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Update a memory
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```ts
|
|
@@ -76,7 +76,7 @@ export class Memories extends APIResource {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* List memories
|
|
80
80
|
*
|
|
81
81
|
* @example
|
|
82
82
|
* ```ts
|
|
@@ -100,7 +100,7 @@ export class Memories extends APIResource {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Delete a memory
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
106
|
* ```ts
|
|
@@ -11,7 +11,7 @@ export declare class MemoryStores extends APIResource {
|
|
|
11
11
|
memories: MemoriesAPI.Memories;
|
|
12
12
|
memoryVersions: MemoryVersionsAPI.MemoryVersions;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Create a memory store
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
@@ -21,7 +21,7 @@ export declare class MemoryStores extends APIResource {
|
|
|
21
21
|
*/
|
|
22
22
|
create(params: MemoryStoreCreateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryStore>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Retrieve a memory store
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
@@ -33,7 +33,7 @@ export declare class MemoryStores extends APIResource {
|
|
|
33
33
|
*/
|
|
34
34
|
retrieve(memoryStoreID: string, params?: MemoryStoreRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryStore>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Update a memory store
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
@@ -43,7 +43,7 @@ export declare class MemoryStores extends APIResource {
|
|
|
43
43
|
*/
|
|
44
44
|
update(memoryStoreID: string, params: MemoryStoreUpdateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryStore>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* List memory stores
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* ```ts
|
|
@@ -55,7 +55,7 @@ export declare class MemoryStores extends APIResource {
|
|
|
55
55
|
*/
|
|
56
56
|
list(params?: MemoryStoreListParams | null | undefined, options?: RequestOptions): PagePromise<BetaManagedAgentsMemoryStoresPageCursor, BetaManagedAgentsMemoryStore>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Delete a memory store
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```ts
|
|
@@ -65,7 +65,7 @@ export declare class MemoryStores extends APIResource {
|
|
|
65
65
|
*/
|
|
66
66
|
delete(memoryStoreID: string, params?: MemoryStoreDeleteParams | null | undefined, options?: RequestOptions): APIPromise<BetaManagedAgentsDeletedMemoryStore>;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Archive a memory store
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* ```ts
|
|
@@ -76,16 +76,37 @@ export declare class MemoryStores extends APIResource {
|
|
|
76
76
|
archive(memoryStoreID: string, params?: MemoryStoreArchiveParams | null | undefined, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryStore>;
|
|
77
77
|
}
|
|
78
78
|
export type BetaManagedAgentsMemoryStoresPageCursor = PageCursor<BetaManagedAgentsMemoryStore>;
|
|
79
|
+
/**
|
|
80
|
+
* Confirmation that a `memory_store` was deleted.
|
|
81
|
+
*/
|
|
79
82
|
export interface BetaManagedAgentsDeletedMemoryStore {
|
|
83
|
+
/**
|
|
84
|
+
* ID of the deleted memory store (a `memstore_...` identifier). The store and all
|
|
85
|
+
* its memories and versions are no longer retrievable.
|
|
86
|
+
*/
|
|
80
87
|
id: string;
|
|
81
88
|
type: 'memory_store_deleted';
|
|
82
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* A `memory_store`: a named container for agent memories, scoped to a workspace.
|
|
92
|
+
* Attach a store to a session via `resources[]` to mount it as a directory the
|
|
93
|
+
* agent can read and write.
|
|
94
|
+
*/
|
|
83
95
|
export interface BetaManagedAgentsMemoryStore {
|
|
96
|
+
/**
|
|
97
|
+
* Unique identifier for the memory store (a `memstore_...` tagged ID). Use this
|
|
98
|
+
* when attaching the store to a session, or in the `{memory_store_id}` path
|
|
99
|
+
* parameter of subsequent calls.
|
|
100
|
+
*/
|
|
84
101
|
id: string;
|
|
85
102
|
/**
|
|
86
103
|
* A timestamp in RFC 3339 format
|
|
87
104
|
*/
|
|
88
105
|
created_at: string;
|
|
106
|
+
/**
|
|
107
|
+
* Human-readable name for the store. 1–255 characters. The store's mount-path slug
|
|
108
|
+
* under `/mnt/memory/` is derived from this name.
|
|
109
|
+
*/
|
|
89
110
|
name: string;
|
|
90
111
|
type: 'memory_store';
|
|
91
112
|
/**
|
|
@@ -96,22 +117,39 @@ export interface BetaManagedAgentsMemoryStore {
|
|
|
96
117
|
* A timestamp in RFC 3339 format
|
|
97
118
|
*/
|
|
98
119
|
archived_at?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* Free-text description of what the store contains, up to 1024 characters.
|
|
122
|
+
* Included in the agent's system prompt when the store is attached, so word it to
|
|
123
|
+
* be useful to the agent. Empty string when unset.
|
|
124
|
+
*/
|
|
99
125
|
description?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Arbitrary key-value tags for your own bookkeeping (such as the end user a store
|
|
128
|
+
* belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters.
|
|
129
|
+
* Returned on retrieve/list but not filterable.
|
|
130
|
+
*/
|
|
100
131
|
metadata?: {
|
|
101
132
|
[key: string]: string;
|
|
102
133
|
};
|
|
103
134
|
}
|
|
104
135
|
export interface MemoryStoreCreateParams {
|
|
105
136
|
/**
|
|
106
|
-
* Body param
|
|
137
|
+
* Body param: Human-readable name for the store. Required; 1–255 characters; no
|
|
138
|
+
* control characters. The mount-path slug under `/mnt/memory/` is derived from
|
|
139
|
+
* this name (lowercased, non-alphanumeric runs collapsed to a hyphen). Names need
|
|
140
|
+
* not be unique within a workspace.
|
|
107
141
|
*/
|
|
108
142
|
name: string;
|
|
109
143
|
/**
|
|
110
|
-
* Body param
|
|
144
|
+
* Body param: Free-text description of what the store contains, up to 1024
|
|
145
|
+
* characters. Included in the agent's system prompt when the store is attached, so
|
|
146
|
+
* word it to be useful to the agent.
|
|
111
147
|
*/
|
|
112
148
|
description?: string;
|
|
113
149
|
/**
|
|
114
|
-
* Body param
|
|
150
|
+
* Body param: Arbitrary key-value tags for your own bookkeeping (such as the end
|
|
151
|
+
* user a store belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512
|
|
152
|
+
* characters. Not visible to the agent.
|
|
115
153
|
*/
|
|
116
154
|
metadata?: {
|
|
117
155
|
[key: string]: string;
|
|
@@ -129,7 +167,8 @@ export interface MemoryStoreRetrieveParams {
|
|
|
129
167
|
}
|
|
130
168
|
export interface MemoryStoreUpdateParams {
|
|
131
169
|
/**
|
|
132
|
-
* Body param
|
|
170
|
+
* Body param: New description for the store, up to 1024 characters. Pass an empty
|
|
171
|
+
* string to clear it.
|
|
133
172
|
*/
|
|
134
173
|
description?: string | null;
|
|
135
174
|
/**
|
|
@@ -141,7 +180,9 @@ export interface MemoryStoreUpdateParams {
|
|
|
141
180
|
[key: string]: string | null;
|
|
142
181
|
} | null;
|
|
143
182
|
/**
|
|
144
|
-
* Body param
|
|
183
|
+
* Body param: New human-readable name for the store. 1–255 characters; no control
|
|
184
|
+
* characters. Renaming changes the slug used for the store's `mount_path` in
|
|
185
|
+
* sessions created after the update.
|
|
145
186
|
*/
|
|
146
187
|
name?: string | null;
|
|
147
188
|
/**
|
|
@@ -151,15 +192,18 @@ export interface MemoryStoreUpdateParams {
|
|
|
151
192
|
}
|
|
152
193
|
export interface MemoryStoreListParams extends PageCursorParams {
|
|
153
194
|
/**
|
|
154
|
-
* Query param: Return stores
|
|
195
|
+
* Query param: Return only stores whose `created_at` is at or after this time
|
|
196
|
+
* (inclusive). Sent on the wire as `created_at[gte]`.
|
|
155
197
|
*/
|
|
156
198
|
'created_at[gte]'?: string;
|
|
157
199
|
/**
|
|
158
|
-
* Query param: Return stores
|
|
200
|
+
* Query param: Return only stores whose `created_at` is at or before this time
|
|
201
|
+
* (inclusive). Sent on the wire as `created_at[lte]`.
|
|
159
202
|
*/
|
|
160
203
|
'created_at[lte]'?: string;
|
|
161
204
|
/**
|
|
162
|
-
* Query param:
|
|
205
|
+
* Query param: When `true`, archived stores are included in the results. Defaults
|
|
206
|
+
* to `false` (archived stores are excluded).
|
|
163
207
|
*/
|
|
164
208
|
include_archived?: boolean;
|
|
165
209
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-stores.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,EACL,8BAA8B,EAC9B,0CAA0C,EAC1C,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,0CAA0C,EAC1C,wCAAwC,EACxC,8CAA8C,EAC9C,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EACnB;OACM,KAAK,iBAAiB;OACtB,EACL,yBAAyB,EACzB,sBAAsB,EACtB,8BAA8B,EAC9B,uCAAuC,EACvC,yCAAyC,EACzC,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,cAAc,EACf;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAs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AM,CAAC;IAEb,IAAI,EAAE,cAAc,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC
|
|
1
|
+
{"version":3,"file":"memory-stores.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,EACL,8BAA8B,EAC9B,0CAA0C,EAC1C,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAC/B,0CAA0C,EAC1C,wCAAwC,EACxC,8CAA8C,EAC9C,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EACnB;OACM,KAAK,iBAAiB;OACtB,EACL,yBAAyB,EACzB,sBAAsB,EACtB,8BAA8B,EAC9B,uCAAuC,EACvC,yCAAyC,EACzC,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,cAAc,EACf;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAsD;IAEtG;;;;;;;;OAQG;IACH,MAAM,CACJ,MAAM,EAAE,uBAAuB,EAC/B,OAAO,C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