@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
|
@@ -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.ts","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,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E,MAAM,CAAC;IAEX,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,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.ts","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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B,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;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -18,7 +18,7 @@ class MemoryStores extends resource_1.APIResource {
|
|
|
18
18
|
this.memoryVersions = new MemoryVersionsAPI.MemoryVersions(this._client);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Create a memory store
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```ts
|
|
@@ -38,7 +38,7 @@ class MemoryStores extends resource_1.APIResource {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Retrieve a memory store
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
@@ -59,7 +59,7 @@ class MemoryStores extends resource_1.APIResource {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Update a memory store
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
@@ -79,7 +79,7 @@ class MemoryStores extends resource_1.APIResource {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* List memory stores
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* ```ts
|
|
@@ -101,7 +101,7 @@ class MemoryStores extends resource_1.APIResource {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Delete a memory store
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
107
|
* ```ts
|
|
@@ -120,7 +120,7 @@ class MemoryStores extends resource_1.APIResource {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Archive a memory store
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-stores.js","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,mEAA0C;AAC1C,4CAmBoB;AACpB,gFAAuD;AACvD,0DAY2B;AAE3B,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsJxG,CAAC;IApJC;;;;;;;;OAQG;IACH,MAAM,CACJ,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACl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,sBAAY,EAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAxJD,oCAwJC;
|
|
1
|
+
{"version":3,"file":"memory-stores.js","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-stores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,mEAA0C;AAC1C,4CAmBoB;AACpB,gFAAuD;AACvD,0DAY2B;AAE3B,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsJxG,CAAC;IApJC;;;;;;;;OAQG;IACH,MAAM,CACJ,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,aAAqB,EACrB,SAAuD,EAAE,EACzD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI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gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,aAAqB,EACrB,SAAqD,EAAE,EACvD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,aAAa,YAAY,EAAE;YAC7E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,OAAO,CACL,aAAqB,EACrB,SAAsD,EAAE,EACxD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,aAAa,oBAAoB,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAxJD,oCAwJC;AA0KD,YAAY,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACjC,YAAY,CAAC,cAAc,GAAG,gCAAc,CAAC"}
|
|
@@ -14,7 +14,7 @@ export class MemoryStores extends APIResource {
|
|
|
14
14
|
this.memoryVersions = new MemoryVersionsAPI.MemoryVersions(this._client);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Create a memory store
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```ts
|
|
@@ -34,7 +34,7 @@ export class MemoryStores extends APIResource {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Retrieve a memory store
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```ts
|
|
@@ -55,7 +55,7 @@ export class MemoryStores extends APIResource {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Update a memory store
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```ts
|
|
@@ -75,7 +75,7 @@ export class MemoryStores extends APIResource {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* List memory stores
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```ts
|
|
@@ -97,7 +97,7 @@ export class MemoryStores extends APIResource {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Delete a memory store
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* ```ts
|
|
@@ -116,7 +116,7 @@ export class MemoryStores extends APIResource {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Archive a memory store
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
122
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-stores.mjs","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,WAAW;OAChB,EAaL,QAAQ,GAMT;OACM,KAAK,iBAAiB;OACtB,EAWL,cAAc,GACf;OAEM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CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,OAAO,CACL,aAAqB,EACrB,SAAsD,EAAE,EACxD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,aAAa,oBAAoB,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"memory-stores.mjs","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-stores.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,WAAW;OAChB,EAaL,QAAQ,GAMT;OACM,KAAK,iBAAiB;OACtB,EAWL,cAAc,GACf;OAEM,EAAE,UAAU,EAAsC;OAClD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsJxG,CAAC;IApJC;;;;;;;;OAQG;IACH,MAAM,CACJ,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,C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B,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAChF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA0KD,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACjC,YAAY,CAAC,cAAc,GAAG,cAAc,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { PageCursor, type PageCursorParams, PagePromise } from "../../../core/pa
|
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
7
|
export declare class MemoryVersions extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Retrieve a memory version
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -19,7 +19,7 @@ export declare class MemoryVersions extends APIResource {
|
|
|
19
19
|
*/
|
|
20
20
|
retrieve(memoryVersionID: string, params: MemoryVersionRetrieveParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryVersion>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* List memory versions
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
@@ -33,7 +33,7 @@ export declare class MemoryVersions extends APIResource {
|
|
|
33
33
|
*/
|
|
34
34
|
list(memoryStoreID: string, params?: MemoryVersionListParams | null | undefined, options?: RequestOptions): PagePromise<BetaManagedAgentsMemoryVersionsPageCursor, BetaManagedAgentsMemoryVersion>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Redact a memory version
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
@@ -47,45 +47,128 @@ export declare class MemoryVersions extends APIResource {
|
|
|
47
47
|
redact(memoryVersionID: string, params: MemoryVersionRedactParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryVersion>;
|
|
48
48
|
}
|
|
49
49
|
export type BetaManagedAgentsMemoryVersionsPageCursor = PageCursor<BetaManagedAgentsMemoryVersion>;
|
|
50
|
+
/**
|
|
51
|
+
* Identifies who performed a write or redact operation. Captured at write time on
|
|
52
|
+
* the `memory_version` row. The API key that created a session is not recorded on
|
|
53
|
+
* agent writes; attribution answers who made the write, not who is ultimately
|
|
54
|
+
* responsible. Look up session provenance separately via the
|
|
55
|
+
* [Sessions API](/en/api/sessions-retrieve).
|
|
56
|
+
*/
|
|
50
57
|
export type BetaManagedAgentsActor = BetaManagedAgentsSessionActor | BetaManagedAgentsAPIActor | BetaManagedAgentsUserActor;
|
|
58
|
+
/**
|
|
59
|
+
* Attribution for a write made directly via the public API (outside of any
|
|
60
|
+
* session).
|
|
61
|
+
*/
|
|
51
62
|
export interface BetaManagedAgentsAPIActor {
|
|
63
|
+
/**
|
|
64
|
+
* ID of the API key that performed the write. This identifies the key, not the
|
|
65
|
+
* secret.
|
|
66
|
+
*/
|
|
52
67
|
api_key_id: string;
|
|
53
68
|
type: 'api_actor';
|
|
54
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* A `memory_version` object: one immutable, attributed row in a memory's
|
|
72
|
+
* append-only history. Every non-no-op mutation to a memory produces a new
|
|
73
|
+
* version. Versions belong to the store (not the individual memory) and persist
|
|
74
|
+
* after the memory is deleted. Retrieving a redacted version returns 200 with
|
|
75
|
+
* `content`, `path`, `content_size_bytes`, and `content_sha256` set to `null`;
|
|
76
|
+
* branch on `redacted_at`, not HTTP status.
|
|
77
|
+
*/
|
|
55
78
|
export interface BetaManagedAgentsMemoryVersion {
|
|
79
|
+
/**
|
|
80
|
+
* Unique identifier for this version (a `memver_...` value).
|
|
81
|
+
*/
|
|
56
82
|
id: string;
|
|
57
83
|
/**
|
|
58
84
|
* A timestamp in RFC 3339 format
|
|
59
85
|
*/
|
|
60
86
|
created_at: string;
|
|
87
|
+
/**
|
|
88
|
+
* ID of the memory this version snapshots (a `mem_...` value). Remains valid after
|
|
89
|
+
* the memory is deleted; pass it as `memory_id` to
|
|
90
|
+
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list) to
|
|
91
|
+
* retrieve the full lineage including the `deleted` row.
|
|
92
|
+
*/
|
|
61
93
|
memory_id: string;
|
|
94
|
+
/**
|
|
95
|
+
* ID of the memory store this version belongs to (a `memstore_...` value).
|
|
96
|
+
*/
|
|
62
97
|
memory_store_id: string;
|
|
63
98
|
/**
|
|
64
|
-
*
|
|
99
|
+
* The kind of mutation a `memory_version` records. Every non-no-op mutation to a
|
|
100
|
+
* memory appends exactly one version row with one of these values.
|
|
65
101
|
*/
|
|
66
102
|
operation: BetaManagedAgentsMemoryVersionOperation;
|
|
67
103
|
type: 'memory_version';
|
|
104
|
+
/**
|
|
105
|
+
* The memory's UTF-8 text content as of this version. `null` when `view=basic`,
|
|
106
|
+
* when `operation` is `deleted`, or when `redacted_at` is set.
|
|
107
|
+
*/
|
|
68
108
|
content?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Lowercase hex SHA-256 digest of `content` as of this version (64 characters).
|
|
111
|
+
* `null` when `redacted_at` is set or `operation` is `deleted`. Populated
|
|
112
|
+
* regardless of `view` otherwise.
|
|
113
|
+
*/
|
|
69
114
|
content_sha256?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Size of `content` in bytes as of this version. `null` when `redacted_at` is set
|
|
117
|
+
* or `operation` is `deleted`. Populated regardless of `view` otherwise.
|
|
118
|
+
*/
|
|
70
119
|
content_size_bytes?: number | null;
|
|
120
|
+
/**
|
|
121
|
+
* Identifies who performed a write or redact operation. Captured at write time on
|
|
122
|
+
* the `memory_version` row. The API key that created a session is not recorded on
|
|
123
|
+
* agent writes; attribution answers who made the write, not who is ultimately
|
|
124
|
+
* responsible. Look up session provenance separately via the
|
|
125
|
+
* [Sessions API](/en/api/sessions-retrieve).
|
|
126
|
+
*/
|
|
71
127
|
created_by?: BetaManagedAgentsActor;
|
|
128
|
+
/**
|
|
129
|
+
* The memory's path at the time of this write. `null` if and only if `redacted_at`
|
|
130
|
+
* is set.
|
|
131
|
+
*/
|
|
72
132
|
path?: string | null;
|
|
73
133
|
/**
|
|
74
134
|
* A timestamp in RFC 3339 format
|
|
75
135
|
*/
|
|
76
136
|
redacted_at?: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Identifies who performed a write or redact operation. Captured at write time on
|
|
139
|
+
* the `memory_version` row. The API key that created a session is not recorded on
|
|
140
|
+
* agent writes; attribution answers who made the write, not who is ultimately
|
|
141
|
+
* responsible. Look up session provenance separately via the
|
|
142
|
+
* [Sessions API](/en/api/sessions-retrieve).
|
|
143
|
+
*/
|
|
77
144
|
redacted_by?: BetaManagedAgentsActor;
|
|
78
145
|
}
|
|
79
146
|
/**
|
|
80
|
-
*
|
|
147
|
+
* The kind of mutation a `memory_version` records. Every non-no-op mutation to a
|
|
148
|
+
* memory appends exactly one version row with one of these values.
|
|
81
149
|
*/
|
|
82
150
|
export type BetaManagedAgentsMemoryVersionOperation = 'created' | 'modified' | 'deleted';
|
|
151
|
+
/**
|
|
152
|
+
* Attribution for a write made by an agent during a session, through the mounted
|
|
153
|
+
* filesystem at `/mnt/memory/`.
|
|
154
|
+
*/
|
|
83
155
|
export interface BetaManagedAgentsSessionActor {
|
|
156
|
+
/**
|
|
157
|
+
* ID of the session that performed the write (a `sesn_...` value). Look up the
|
|
158
|
+
* session via [Retrieve a session](/en/api/sessions-retrieve) for further
|
|
159
|
+
* provenance.
|
|
160
|
+
*/
|
|
84
161
|
session_id: string;
|
|
85
162
|
type: 'session_actor';
|
|
86
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Attribution for a write made by a human user through the Anthropic Console.
|
|
166
|
+
*/
|
|
87
167
|
export interface BetaManagedAgentsUserActor {
|
|
88
168
|
type: 'user_actor';
|
|
169
|
+
/**
|
|
170
|
+
* ID of the user who performed the write (a `user_...` value).
|
|
171
|
+
*/
|
|
89
172
|
user_id: string;
|
|
90
173
|
}
|
|
91
174
|
export interface MemoryVersionRetrieveParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-versions.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-versions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAe7C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,8BAA8B,CAAC;IAgBzF;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAa9C;AAED,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAEnG,MAAM,MAAM,sBAAsB,GAC9B,6BAA6B,GAC7B,yBAAyB,GACzB,0BAA0B,CAAC;AAE/B,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,8BAA8B;IAC7C,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,SAAS,EAAE,MAAM,CAAC;IAElB,eAAe,EAAE,MAAM,CAAC;IAExB
|
|
1
|
+
{"version":3,"file":"memory-versions.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/memory-stores/memory-versions.ts"],"names":[],"m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AAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,uCAAuC,CAAC;IAEpD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,2BAA2B,CAAC;IAE/C;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -6,7 +6,7 @@ import { PageCursor, type PageCursorParams, PagePromise } from "../../../core/pa
|
|
|
6
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
7
|
export declare class MemoryVersions extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Retrieve a memory version
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
@@ -19,7 +19,7 @@ export declare class MemoryVersions extends APIResource {
|
|
|
19
19
|
*/
|
|
20
20
|
retrieve(memoryVersionID: string, params: MemoryVersionRetrieveParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryVersion>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* List memory versions
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```ts
|
|
@@ -33,7 +33,7 @@ export declare class MemoryVersions extends APIResource {
|
|
|
33
33
|
*/
|
|
34
34
|
list(memoryStoreID: string, params?: MemoryVersionListParams | null | undefined, options?: RequestOptions): PagePromise<BetaManagedAgentsMemoryVersionsPageCursor, BetaManagedAgentsMemoryVersion>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Redact a memory version
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
@@ -47,45 +47,128 @@ export declare class MemoryVersions extends APIResource {
|
|
|
47
47
|
redact(memoryVersionID: string, params: MemoryVersionRedactParams, options?: RequestOptions): APIPromise<BetaManagedAgentsMemoryVersion>;
|
|
48
48
|
}
|
|
49
49
|
export type BetaManagedAgentsMemoryVersionsPageCursor = PageCursor<BetaManagedAgentsMemoryVersion>;
|
|
50
|
+
/**
|
|
51
|
+
* Identifies who performed a write or redact operation. Captured at write time on
|
|
52
|
+
* the `memory_version` row. The API key that created a session is not recorded on
|
|
53
|
+
* agent writes; attribution answers who made the write, not who is ultimately
|
|
54
|
+
* responsible. Look up session provenance separately via the
|
|
55
|
+
* [Sessions API](/en/api/sessions-retrieve).
|
|
56
|
+
*/
|
|
50
57
|
export type BetaManagedAgentsActor = BetaManagedAgentsSessionActor | BetaManagedAgentsAPIActor | BetaManagedAgentsUserActor;
|
|
58
|
+
/**
|
|
59
|
+
* Attribution for a write made directly via the public API (outside of any
|
|
60
|
+
* session).
|
|
61
|
+
*/
|
|
51
62
|
export interface BetaManagedAgentsAPIActor {
|
|
63
|
+
/**
|
|
64
|
+
* ID of the API key that performed the write. This identifies the key, not the
|
|
65
|
+
* secret.
|
|
66
|
+
*/
|
|
52
67
|
api_key_id: string;
|
|
53
68
|
type: 'api_actor';
|
|
54
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* A `memory_version` object: one immutable, attributed row in a memory's
|
|
72
|
+
* append-only history. Every non-no-op mutation to a memory produces a new
|
|
73
|
+
* version. Versions belong to the store (not the individual memory) and persist
|
|
74
|
+
* after the memory is deleted. Retrieving a redacted version returns 200 with
|
|
75
|
+
* `content`, `path`, `content_size_bytes`, and `content_sha256` set to `null`;
|
|
76
|
+
* branch on `redacted_at`, not HTTP status.
|
|
77
|
+
*/
|
|
55
78
|
export interface BetaManagedAgentsMemoryVersion {
|
|
79
|
+
/**
|
|
80
|
+
* Unique identifier for this version (a `memver_...` value).
|
|
81
|
+
*/
|
|
56
82
|
id: string;
|
|
57
83
|
/**
|
|
58
84
|
* A timestamp in RFC 3339 format
|
|
59
85
|
*/
|
|
60
86
|
created_at: string;
|
|
87
|
+
/**
|
|
88
|
+
* ID of the memory this version snapshots (a `mem_...` value). Remains valid after
|
|
89
|
+
* the memory is deleted; pass it as `memory_id` to
|
|
90
|
+
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list) to
|
|
91
|
+
* retrieve the full lineage including the `deleted` row.
|
|
92
|
+
*/
|
|
61
93
|
memory_id: string;
|
|
94
|
+
/**
|
|
95
|
+
* ID of the memory store this version belongs to (a `memstore_...` value).
|
|
96
|
+
*/
|
|
62
97
|
memory_store_id: string;
|
|
63
98
|
/**
|
|
64
|
-
*
|
|
99
|
+
* The kind of mutation a `memory_version` records. Every non-no-op mutation to a
|
|
100
|
+
* memory appends exactly one version row with one of these values.
|
|
65
101
|
*/
|
|
66
102
|
operation: BetaManagedAgentsMemoryVersionOperation;
|
|
67
103
|
type: 'memory_version';
|
|
104
|
+
/**
|
|
105
|
+
* The memory's UTF-8 text content as of this version. `null` when `view=basic`,
|
|
106
|
+
* when `operation` is `deleted`, or when `redacted_at` is set.
|
|
107
|
+
*/
|
|
68
108
|
content?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Lowercase hex SHA-256 digest of `content` as of this version (64 characters).
|
|
111
|
+
* `null` when `redacted_at` is set or `operation` is `deleted`. Populated
|
|
112
|
+
* regardless of `view` otherwise.
|
|
113
|
+
*/
|
|
69
114
|
content_sha256?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Size of `content` in bytes as of this version. `null` when `redacted_at` is set
|
|
117
|
+
* or `operation` is `deleted`. Populated regardless of `view` otherwise.
|
|
118
|
+
*/
|
|
70
119
|
content_size_bytes?: number | null;
|
|
120
|
+
/**
|
|
121
|
+
* Identifies who performed a write or redact operation. Captured at write time on
|
|
122
|
+
* the `memory_version` row. The API key that created a session is not recorded on
|
|
123
|
+
* agent writes; attribution answers who made the write, not who is ultimately
|
|
124
|
+
* responsible. Look up session provenance separately via the
|
|
125
|
+
* [Sessions API](/en/api/sessions-retrieve).
|
|
126
|
+
*/
|
|
71
127
|
created_by?: BetaManagedAgentsActor;
|
|
128
|
+
/**
|
|
129
|
+
* The memory's path at the time of this write. `null` if and only if `redacted_at`
|
|
130
|
+
* is set.
|
|
131
|
+
*/
|
|
72
132
|
path?: string | null;
|
|
73
133
|
/**
|
|
74
134
|
* A timestamp in RFC 3339 format
|
|
75
135
|
*/
|
|
76
136
|
redacted_at?: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Identifies who performed a write or redact operation. Captured at write time on
|
|
139
|
+
* the `memory_version` row. The API key that created a session is not recorded on
|
|
140
|
+
* agent writes; attribution answers who made the write, not who is ultimately
|
|
141
|
+
* responsible. Look up session provenance separately via the
|
|
142
|
+
* [Sessions API](/en/api/sessions-retrieve).
|
|
143
|
+
*/
|
|
77
144
|
redacted_by?: BetaManagedAgentsActor;
|
|
78
145
|
}
|
|
79
146
|
/**
|
|
80
|
-
*
|
|
147
|
+
* The kind of mutation a `memory_version` records. Every non-no-op mutation to a
|
|
148
|
+
* memory appends exactly one version row with one of these values.
|
|
81
149
|
*/
|
|
82
150
|
export type BetaManagedAgentsMemoryVersionOperation = 'created' | 'modified' | 'deleted';
|
|
151
|
+
/**
|
|
152
|
+
* Attribution for a write made by an agent during a session, through the mounted
|
|
153
|
+
* filesystem at `/mnt/memory/`.
|
|
154
|
+
*/
|
|
83
155
|
export interface BetaManagedAgentsSessionActor {
|
|
156
|
+
/**
|
|
157
|
+
* ID of the session that performed the write (a `sesn_...` value). Look up the
|
|
158
|
+
* session via [Retrieve a session](/en/api/sessions-retrieve) for further
|
|
159
|
+
* provenance.
|
|
160
|
+
*/
|
|
84
161
|
session_id: string;
|
|
85
162
|
type: 'session_actor';
|
|
86
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Attribution for a write made by a human user through the Anthropic Console.
|
|
166
|
+
*/
|
|
87
167
|
export interface BetaManagedAgentsUserActor {
|
|
88
168
|
type: 'user_actor';
|
|
169
|
+
/**
|
|
170
|
+
* ID of the user who performed the write (a `user_...` value).
|
|
171
|
+
*/
|
|
89
172
|
user_id: string;
|
|
90
173
|
}
|
|
91
174
|
export interface MemoryVersionRetrieveParams {
|