@cadenya/cadenya 0.124.0 → 0.126.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 +17 -0
- package/README.md +18 -7
- package/client.d.mts +17 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -11
- package/client.d.ts.map +1 -1
- package/client.js +7 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +115 -28
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +115 -28
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +93 -13
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +93 -13
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +13 -2
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +13 -2
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +13 -2
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +13 -2
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +100 -52
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +100 -52
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +99 -21
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +99 -21
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +252 -105
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +252 -105
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +138 -27
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +138 -27
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +13 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +13 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +13 -2
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +13 -2
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/ai-provider-keys.d.mts +125 -110
- package/resources/ai-provider-keys.d.mts.map +1 -1
- package/resources/ai-provider-keys.d.ts +125 -110
- package/resources/ai-provider-keys.d.ts.map +1 -1
- package/resources/ai-provider-keys.js +11 -9
- package/resources/ai-provider-keys.js.map +1 -1
- package/resources/ai-provider-keys.mjs +11 -9
- package/resources/ai-provider-keys.mjs.map +1 -1
- package/resources/api-keys.d.mts +28 -20
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +28 -20
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +14 -12
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +14 -12
- package/resources/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +27 -30
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +27 -30
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +12 -12
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +12 -12
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +34 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +34 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +11 -9
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +11 -9
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +32 -24
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +32 -24
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +10 -8
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +10 -8
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +27 -3
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +27 -3
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +27 -3
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +27 -3
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +2 -2
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +2 -2
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +273 -102
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +273 -102
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +112 -17
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +112 -17
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +25 -8
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +25 -8
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +26 -5
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +26 -5
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +99 -42
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +99 -42
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +73 -14
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +73 -14
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +13 -2
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +13 -2
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +13 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +13 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +11 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +11 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +3 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +3 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +2 -2
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +2 -2
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/secrets.d.mts +9 -24
- package/resources/tool-sets/secrets.d.mts.map +1 -1
- package/resources/tool-sets/secrets.d.ts +9 -24
- package/resources/tool-sets/secrets.d.ts.map +1 -1
- package/resources/tool-sets/secrets.js +12 -12
- package/resources/tool-sets/secrets.js.map +1 -1
- package/resources/tool-sets/secrets.mjs +12 -12
- package/resources/tool-sets/secrets.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +149 -64
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +149 -64
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +17 -15
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +17 -15
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +33 -43
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +33 -43
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +18 -18
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +18 -18
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +14 -6
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +14 -6
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +5 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +5 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-admin/index.d.mts +1 -1
- package/resources/workspace-admin/index.d.mts.map +1 -1
- package/resources/workspace-admin/index.d.ts +1 -1
- package/resources/workspace-admin/index.d.ts.map +1 -1
- package/resources/workspace-admin/index.js.map +1 -1
- package/resources/workspace-admin/index.mjs.map +1 -1
- package/resources/workspace-admin/members.d.mts +41 -6
- package/resources/workspace-admin/members.d.mts.map +1 -1
- package/resources/workspace-admin/members.d.ts +41 -6
- package/resources/workspace-admin/members.d.ts.map +1 -1
- package/resources/workspace-admin/members.js +34 -6
- package/resources/workspace-admin/members.js.map +1 -1
- package/resources/workspace-admin/members.mjs +34 -6
- package/resources/workspace-admin/members.mjs.map +1 -1
- package/resources/workspace-admin/profiles.d.mts +8 -0
- package/resources/workspace-admin/profiles.d.mts.map +1 -1
- package/resources/workspace-admin/profiles.d.ts +8 -0
- package/resources/workspace-admin/profiles.d.ts.map +1 -1
- package/resources/workspace-admin/profiles.js +8 -0
- package/resources/workspace-admin/profiles.js.map +1 -1
- package/resources/workspace-admin/profiles.mjs +8 -0
- package/resources/workspace-admin/profiles.mjs.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.mts +65 -9
- package/resources/workspace-admin/workspace-admin.d.mts.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.ts +65 -9
- package/resources/workspace-admin/workspace-admin.d.ts.map +1 -1
- package/resources/workspace-admin/workspace-admin.js +46 -6
- package/resources/workspace-admin/workspace-admin.js.map +1 -1
- package/resources/workspace-admin/workspace-admin.mjs +46 -6
- package/resources/workspace-admin/workspace-admin.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +27 -15
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +27 -15
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +11 -9
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +11 -9
- package/resources/workspace-secrets.mjs.map +1 -1
- package/src/client.ts +102 -5
- package/src/internal/request-options.ts +1 -1
- package/src/resources/agents/agents.ts +147 -37
- package/src/resources/agents/feedback.ts +14 -3
- package/src/resources/agents/index.ts +6 -0
- package/src/resources/agents/schedules.ts +143 -71
- package/src/resources/agents/variations.ts +319 -125
- package/src/resources/agents/webhook-deliveries.ts +14 -3
- package/src/resources/ai-provider-keys.ts +155 -127
- package/src/resources/api-keys.ts +48 -29
- package/src/resources/index.ts +44 -1
- package/src/resources/memory-layers/entries.ts +56 -40
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -30
- package/src/resources/models.ts +46 -31
- package/src/resources/objectives/feedback.ts +29 -5
- package/src/resources/objectives/index.ts +26 -0
- package/src/resources/objectives/objectives.ts +373 -125
- package/src/resources/objectives/tasks.ts +33 -12
- package/src/resources/objectives/tool-calls.ts +123 -46
- package/src/resources/objectives/tools.ts +14 -3
- package/src/resources/search.ts +14 -4
- package/src/resources/tool-sets/index.ts +23 -3
- package/src/resources/tool-sets/secrets.ts +32 -35
- package/src/resources/tool-sets/tool-sets.ts +239 -79
- package/src/resources/tool-sets/tools.ts +79 -61
- package/src/resources/uploads.ts +22 -8
- package/src/resources/workspace-admin/index.ts +2 -0
- package/src/resources/workspace-admin/members.ts +53 -12
- package/src/resources/workspace-admin/profiles.ts +8 -0
- package/src/resources/workspace-admin/workspace-admin.ts +80 -11
- package/src/resources/workspace-secrets.ts +40 -25
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as AccountAPI from "../account.mjs";
|
|
3
3
|
import * as Shared from "../shared.mjs";
|
|
4
4
|
import * as EntriesAPI from "./entries.mjs";
|
|
5
|
-
import { Entries, EntryCreateParams, EntryDeleteParams, EntryListParams, EntryRetrieveParams, EntryUpdateParams, MemoryEntriesCursorPagination, MemoryEntry, MemoryEntryCreateSpec, MemoryEntryDetail, MemoryEntryInfo, MemoryEntrySpec, MemoryEntryUpdateSpec } from "./entries.mjs";
|
|
5
|
+
import { Entries, EntryCreateParams, EntryDeleteParams, EntryListParams, EntryRetrieveParams, EntryUpdateParams, MemoryEntriesCursorPagination, MemoryEntry, MemoryEntryCreateSpec, MemoryEntryCreateSpecContent, MemoryEntryCreateSpecUploadID, MemoryEntryDetail, MemoryEntryInfo, MemoryEntrySpec, MemoryEntryUpdateSpec } from "./entries.mjs";
|
|
6
6
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
7
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
8
8
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -17,11 +17,11 @@ export declare class MemoryLayers extends APIResource {
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates a new memory layer in the workspace
|
|
19
19
|
*/
|
|
20
|
-
create(
|
|
20
|
+
create(params: MemoryLayerCreateParams, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves a memory layer by ID from the workspace
|
|
23
23
|
*/
|
|
24
|
-
retrieve(id: string, params
|
|
24
|
+
retrieve(id: string, params?: MemoryLayerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
25
25
|
/**
|
|
26
26
|
* Updates a memory layer in the workspace
|
|
27
27
|
*/
|
|
@@ -29,11 +29,11 @@ export declare class MemoryLayers extends APIResource {
|
|
|
29
29
|
/**
|
|
30
30
|
* Lists all memory layers in the workspace
|
|
31
31
|
*/
|
|
32
|
-
list(
|
|
32
|
+
list(params?: MemoryLayerListParams | null | undefined, options?: RequestOptions): PagePromise<MemoryLayersCursorPagination, MemoryLayer>;
|
|
33
33
|
/**
|
|
34
34
|
* Deletes a memory layer from the workspace
|
|
35
35
|
*/
|
|
36
|
-
delete(id: string, params
|
|
36
|
+
delete(id: string, params?: MemoryLayerDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
37
37
|
}
|
|
38
38
|
export type MemoryLayersCursorPagination = CursorPagination<MemoryLayer>;
|
|
39
39
|
/**
|
|
@@ -105,21 +105,29 @@ export interface MemoryLayerSpec {
|
|
|
105
105
|
}
|
|
106
106
|
export interface MemoryLayerCreateParams {
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
* Path param
|
|
109
|
+
*/
|
|
110
|
+
workspaceId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
113
|
+
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
114
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
115
|
+
* server.
|
|
111
116
|
*/
|
|
112
117
|
metadata: Shared.CreateResourceMetadata;
|
|
118
|
+
/**
|
|
119
|
+
* Body param
|
|
120
|
+
*/
|
|
113
121
|
spec: MemoryLayerSpec;
|
|
114
122
|
}
|
|
115
123
|
export interface MemoryLayerRetrieveParams {
|
|
116
|
-
workspaceId
|
|
124
|
+
workspaceId?: string;
|
|
117
125
|
}
|
|
118
126
|
export interface MemoryLayerUpdateParams {
|
|
119
127
|
/**
|
|
120
128
|
* Path param
|
|
121
129
|
*/
|
|
122
|
-
workspaceId
|
|
130
|
+
workspaceId?: string;
|
|
123
131
|
/**
|
|
124
132
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
125
133
|
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -138,47 +146,51 @@ export interface MemoryLayerUpdateParams {
|
|
|
138
146
|
}
|
|
139
147
|
export interface MemoryLayerListParams extends CursorPaginationParams {
|
|
140
148
|
/**
|
|
141
|
-
*
|
|
149
|
+
* Path param
|
|
150
|
+
*/
|
|
151
|
+
workspaceId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Query param: Filter to episodic layers belonging to this agent.
|
|
142
154
|
*/
|
|
143
155
|
agentId?: string;
|
|
144
156
|
/**
|
|
145
|
-
* Filter to episodic layers whose episodic key starts with this
|
|
146
|
-
* "customer/" matches "customer/42" and "customer/43"). Useful for
|
|
147
|
-
* keys, similar to a redis key scan.
|
|
157
|
+
* Query param: Filter to episodic layers whose episodic key starts with this
|
|
158
|
+
* prefix (e.g. "customer/" matches "customer/42" and "customer/43"). Useful for
|
|
159
|
+
* namespaced keys, similar to a redis key scan.
|
|
148
160
|
*/
|
|
149
161
|
episodicKeyPrefix?: string;
|
|
150
162
|
/**
|
|
151
|
-
* When set to true you may use more of your alloted API rate-limit
|
|
163
|
+
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
152
164
|
*/
|
|
153
165
|
includeInfo?: boolean;
|
|
154
166
|
/**
|
|
155
|
-
* Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
167
|
+
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
156
168
|
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
157
169
|
* semantics).
|
|
158
170
|
*/
|
|
159
171
|
labels?: string;
|
|
160
172
|
/**
|
|
161
|
-
* Filter expression (query param: prefix)
|
|
173
|
+
* Query param: Filter expression (query param: prefix)
|
|
162
174
|
*/
|
|
163
175
|
prefix?: string;
|
|
164
176
|
/**
|
|
165
|
-
* Free-form search query
|
|
177
|
+
* Query param: Free-form search query
|
|
166
178
|
*/
|
|
167
179
|
query?: string;
|
|
168
180
|
/**
|
|
169
|
-
* Sort order for results (asc or desc by creation time)
|
|
181
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
170
182
|
*/
|
|
171
183
|
sortOrder?: string;
|
|
172
184
|
/**
|
|
173
|
-
* Filter by layer type
|
|
185
|
+
* Query param: Filter by layer type
|
|
174
186
|
*/
|
|
175
187
|
type?: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
176
188
|
}
|
|
177
189
|
export interface MemoryLayerDeleteParams {
|
|
178
|
-
workspaceId
|
|
190
|
+
workspaceId?: string;
|
|
179
191
|
}
|
|
180
192
|
export declare namespace MemoryLayers {
|
|
181
193
|
export { type MemoryLayer as MemoryLayer, type MemoryLayerInfo as MemoryLayerInfo, type MemoryLayerSpec as MemoryLayerSpec, type MemoryLayersCursorPagination as MemoryLayersCursorPagination, type MemoryLayerCreateParams as MemoryLayerCreateParams, type MemoryLayerRetrieveParams as MemoryLayerRetrieveParams, type MemoryLayerUpdateParams as MemoryLayerUpdateParams, type MemoryLayerListParams as MemoryLayerListParams, type MemoryLayerDeleteParams as MemoryLayerDeleteParams, };
|
|
182
|
-
export { Entries as Entries, type MemoryEntry as MemoryEntry, type MemoryEntryCreateSpec as MemoryEntryCreateSpec, type MemoryEntryDetail as MemoryEntryDetail, type MemoryEntryInfo as MemoryEntryInfo, type MemoryEntrySpec as MemoryEntrySpec, type MemoryEntryUpdateSpec as MemoryEntryUpdateSpec, type MemoryEntriesCursorPagination as MemoryEntriesCursorPagination, type EntryCreateParams as EntryCreateParams, type EntryRetrieveParams as EntryRetrieveParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, };
|
|
194
|
+
export { Entries as Entries, type MemoryEntry as MemoryEntry, type MemoryEntryCreateSpec as MemoryEntryCreateSpec, type MemoryEntryCreateSpecContent as MemoryEntryCreateSpecContent, type MemoryEntryCreateSpecUploadID as MemoryEntryCreateSpecUploadID, type MemoryEntryDetail as MemoryEntryDetail, type MemoryEntryInfo as MemoryEntryInfo, type MemoryEntrySpec as MemoryEntrySpec, type MemoryEntryUpdateSpec as MemoryEntryUpdateSpec, type MemoryEntriesCursorPagination as MemoryEntriesCursorPagination, type EntryCreateParams as EntryCreateParams, type EntryRetrieveParams as EntryRetrieveParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, };
|
|
183
195
|
}
|
|
184
196
|
//# sourceMappingURL=memory-layers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-layers.d.mts","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACtB,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"memory-layers.d.mts","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,EACX,qBAAqB,EACrB,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACtB,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAK1F;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,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O,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import * as AccountAPI from "../account.js";
|
|
3
3
|
import * as Shared from "../shared.js";
|
|
4
4
|
import * as EntriesAPI from "./entries.js";
|
|
5
|
-
import { Entries, EntryCreateParams, EntryDeleteParams, EntryListParams, EntryRetrieveParams, EntryUpdateParams, MemoryEntriesCursorPagination, MemoryEntry, MemoryEntryCreateSpec, MemoryEntryDetail, MemoryEntryInfo, MemoryEntrySpec, MemoryEntryUpdateSpec } from "./entries.js";
|
|
5
|
+
import { Entries, EntryCreateParams, EntryDeleteParams, EntryListParams, EntryRetrieveParams, EntryUpdateParams, MemoryEntriesCursorPagination, MemoryEntry, MemoryEntryCreateSpec, MemoryEntryCreateSpecContent, MemoryEntryCreateSpecUploadID, MemoryEntryDetail, MemoryEntryInfo, MemoryEntrySpec, MemoryEntryUpdateSpec } from "./entries.js";
|
|
6
6
|
import { APIPromise } from "../../core/api-promise.js";
|
|
7
7
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
8
8
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
@@ -17,11 +17,11 @@ export declare class MemoryLayers extends APIResource {
|
|
|
17
17
|
/**
|
|
18
18
|
* Creates a new memory layer in the workspace
|
|
19
19
|
*/
|
|
20
|
-
create(
|
|
20
|
+
create(params: MemoryLayerCreateParams, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
21
21
|
/**
|
|
22
22
|
* Retrieves a memory layer by ID from the workspace
|
|
23
23
|
*/
|
|
24
|
-
retrieve(id: string, params
|
|
24
|
+
retrieve(id: string, params?: MemoryLayerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
25
25
|
/**
|
|
26
26
|
* Updates a memory layer in the workspace
|
|
27
27
|
*/
|
|
@@ -29,11 +29,11 @@ export declare class MemoryLayers extends APIResource {
|
|
|
29
29
|
/**
|
|
30
30
|
* Lists all memory layers in the workspace
|
|
31
31
|
*/
|
|
32
|
-
list(
|
|
32
|
+
list(params?: MemoryLayerListParams | null | undefined, options?: RequestOptions): PagePromise<MemoryLayersCursorPagination, MemoryLayer>;
|
|
33
33
|
/**
|
|
34
34
|
* Deletes a memory layer from the workspace
|
|
35
35
|
*/
|
|
36
|
-
delete(id: string, params
|
|
36
|
+
delete(id: string, params?: MemoryLayerDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
37
37
|
}
|
|
38
38
|
export type MemoryLayersCursorPagination = CursorPagination<MemoryLayer>;
|
|
39
39
|
/**
|
|
@@ -105,21 +105,29 @@ export interface MemoryLayerSpec {
|
|
|
105
105
|
}
|
|
106
106
|
export interface MemoryLayerCreateParams {
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
* Path param
|
|
109
|
+
*/
|
|
110
|
+
workspaceId?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
113
|
+
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
114
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
115
|
+
* server.
|
|
111
116
|
*/
|
|
112
117
|
metadata: Shared.CreateResourceMetadata;
|
|
118
|
+
/**
|
|
119
|
+
* Body param
|
|
120
|
+
*/
|
|
113
121
|
spec: MemoryLayerSpec;
|
|
114
122
|
}
|
|
115
123
|
export interface MemoryLayerRetrieveParams {
|
|
116
|
-
workspaceId
|
|
124
|
+
workspaceId?: string;
|
|
117
125
|
}
|
|
118
126
|
export interface MemoryLayerUpdateParams {
|
|
119
127
|
/**
|
|
120
128
|
* Path param
|
|
121
129
|
*/
|
|
122
|
-
workspaceId
|
|
130
|
+
workspaceId?: string;
|
|
123
131
|
/**
|
|
124
132
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
125
133
|
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -138,47 +146,51 @@ export interface MemoryLayerUpdateParams {
|
|
|
138
146
|
}
|
|
139
147
|
export interface MemoryLayerListParams extends CursorPaginationParams {
|
|
140
148
|
/**
|
|
141
|
-
*
|
|
149
|
+
* Path param
|
|
150
|
+
*/
|
|
151
|
+
workspaceId?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Query param: Filter to episodic layers belonging to this agent.
|
|
142
154
|
*/
|
|
143
155
|
agentId?: string;
|
|
144
156
|
/**
|
|
145
|
-
* Filter to episodic layers whose episodic key starts with this
|
|
146
|
-
* "customer/" matches "customer/42" and "customer/43"). Useful for
|
|
147
|
-
* keys, similar to a redis key scan.
|
|
157
|
+
* Query param: Filter to episodic layers whose episodic key starts with this
|
|
158
|
+
* prefix (e.g. "customer/" matches "customer/42" and "customer/43"). Useful for
|
|
159
|
+
* namespaced keys, similar to a redis key scan.
|
|
148
160
|
*/
|
|
149
161
|
episodicKeyPrefix?: string;
|
|
150
162
|
/**
|
|
151
|
-
* When set to true you may use more of your alloted API rate-limit
|
|
163
|
+
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
152
164
|
*/
|
|
153
165
|
includeInfo?: boolean;
|
|
154
166
|
/**
|
|
155
|
-
* Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
167
|
+
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
156
168
|
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
157
169
|
* semantics).
|
|
158
170
|
*/
|
|
159
171
|
labels?: string;
|
|
160
172
|
/**
|
|
161
|
-
* Filter expression (query param: prefix)
|
|
173
|
+
* Query param: Filter expression (query param: prefix)
|
|
162
174
|
*/
|
|
163
175
|
prefix?: string;
|
|
164
176
|
/**
|
|
165
|
-
* Free-form search query
|
|
177
|
+
* Query param: Free-form search query
|
|
166
178
|
*/
|
|
167
179
|
query?: string;
|
|
168
180
|
/**
|
|
169
|
-
* Sort order for results (asc or desc by creation time)
|
|
181
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
170
182
|
*/
|
|
171
183
|
sortOrder?: string;
|
|
172
184
|
/**
|
|
173
|
-
* Filter by layer type
|
|
185
|
+
* Query param: Filter by layer type
|
|
174
186
|
*/
|
|
175
187
|
type?: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
176
188
|
}
|
|
177
189
|
export interface MemoryLayerDeleteParams {
|
|
178
|
-
workspaceId
|
|
190
|
+
workspaceId?: string;
|
|
179
191
|
}
|
|
180
192
|
export declare namespace MemoryLayers {
|
|
181
193
|
export { type MemoryLayer as MemoryLayer, type MemoryLayerInfo as MemoryLayerInfo, type MemoryLayerSpec as MemoryLayerSpec, type MemoryLayersCursorPagination as MemoryLayersCursorPagination, type MemoryLayerCreateParams as MemoryLayerCreateParams, type MemoryLayerRetrieveParams as MemoryLayerRetrieveParams, type MemoryLayerUpdateParams as MemoryLayerUpdateParams, type MemoryLayerListParams as MemoryLayerListParams, type MemoryLayerDeleteParams as MemoryLayerDeleteParams, };
|
|
182
|
-
export { Entries as Entries, type MemoryEntry as MemoryEntry, type MemoryEntryCreateSpec as MemoryEntryCreateSpec, type MemoryEntryDetail as MemoryEntryDetail, type MemoryEntryInfo as MemoryEntryInfo, type MemoryEntrySpec as MemoryEntrySpec, type MemoryEntryUpdateSpec as MemoryEntryUpdateSpec, type MemoryEntriesCursorPagination as MemoryEntriesCursorPagination, type EntryCreateParams as EntryCreateParams, type EntryRetrieveParams as EntryRetrieveParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, };
|
|
194
|
+
export { Entries as Entries, type MemoryEntry as MemoryEntry, type MemoryEntryCreateSpec as MemoryEntryCreateSpec, type MemoryEntryCreateSpecContent as MemoryEntryCreateSpecContent, type MemoryEntryCreateSpecUploadID as MemoryEntryCreateSpecUploadID, type MemoryEntryDetail as MemoryEntryDetail, type MemoryEntryInfo as MemoryEntryInfo, type MemoryEntrySpec as MemoryEntrySpec, type MemoryEntryUpdateSpec as MemoryEntryUpdateSpec, type MemoryEntriesCursorPagination as MemoryEntriesCursorPagination, type EntryCreateParams as EntryCreateParams, type EntryRetrieveParams as EntryRetrieveParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, };
|
|
183
195
|
}
|
|
184
196
|
//# sourceMappingURL=memory-layers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-layers.d.ts","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACtB,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,MAAM,
|
|
1
|
+
{"version":3,"file":"memory-layers.d.ts","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,EACX,qBAAqB,EACrB,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACtB,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;GAKG;AAC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
* Creates a new memory layer in the workspace
|
|
25
25
|
*/
|
|
26
|
-
create(
|
|
27
|
-
|
|
26
|
+
create(params, options) {
|
|
27
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
28
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers`, { body, ...options });
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Retrieves a memory layer by ID from the workspace
|
|
31
32
|
*/
|
|
32
|
-
retrieve(id, params, options) {
|
|
33
|
-
const { workspaceId } = params;
|
|
33
|
+
retrieve(id, params = {}, options) {
|
|
34
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
34
35
|
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${id}`, options);
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Updates a memory layer in the workspace
|
|
38
39
|
*/
|
|
39
40
|
update(id, params, options) {
|
|
40
|
-
const { workspaceId, ...body } = params;
|
|
41
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
41
42
|
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${id}`, { body, ...options });
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
45
|
* Lists all memory layers in the workspace
|
|
45
46
|
*/
|
|
46
|
-
list(
|
|
47
|
-
|
|
47
|
+
list(params = {}, options) {
|
|
48
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
49
|
+
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers`, (pagination_1.CursorPagination), { query, ...options });
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Deletes a memory layer from the workspace
|
|
51
53
|
*/
|
|
52
|
-
delete(id, params, options) {
|
|
53
|
-
const { workspaceId } = params;
|
|
54
|
+
delete(id, params = {}, options) {
|
|
55
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
54
56
|
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${id}`, {
|
|
55
57
|
...options,
|
|
56
58
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-layers.js","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,iEAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"memory-layers.js","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAGlD,iEAAwC;AACxC,0CAgBmB;AAEnB,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;GAKG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2DrE,CAAC;IAzDC;;OAEG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,SAAuD,EAAE,EACzD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC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{
|
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new memory layer in the workspace
|
|
21
21
|
*/
|
|
22
|
-
create(
|
|
23
|
-
|
|
22
|
+
create(params, options) {
|
|
23
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
24
|
+
return this._client.post(path `/v1/workspaces/${workspaceId}/memory_layers`, { body, ...options });
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Retrieves a memory layer by ID from the workspace
|
|
27
28
|
*/
|
|
28
|
-
retrieve(id, params, options) {
|
|
29
|
-
const { workspaceId } = params;
|
|
29
|
+
retrieve(id, params = {}, options) {
|
|
30
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
30
31
|
return this._client.get(path `/v1/workspaces/${workspaceId}/memory_layers/${id}`, options);
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* Updates a memory layer in the workspace
|
|
34
35
|
*/
|
|
35
36
|
update(id, params, options) {
|
|
36
|
-
const { workspaceId, ...body } = params;
|
|
37
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
37
38
|
return this._client.patch(path `/v1/workspaces/${workspaceId}/memory_layers/${id}`, { body, ...options });
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* Lists all memory layers in the workspace
|
|
41
42
|
*/
|
|
42
|
-
list(
|
|
43
|
-
|
|
43
|
+
list(params = {}, options) {
|
|
44
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
45
|
+
return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/memory_layers`, (CursorPagination), { query, ...options });
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Deletes a memory layer from the workspace
|
|
47
49
|
*/
|
|
48
|
-
delete(id, params, options) {
|
|
49
|
-
const { workspaceId } = params;
|
|
50
|
+
delete(id, params = {}, options) {
|
|
51
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
50
52
|
return this._client.delete(path `/v1/workspaces/${workspaceId}/memory_layers/${id}`, {
|
|
51
53
|
...options,
|
|
52
54
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-layers.mjs","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"memory-layers.mjs","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,GAeR,sBAAkB;AAEnB,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;GAKG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2DrE,CAAC;IAzDC;;OAEG;IACH,MAAM,CAAC,MAA+B,EAAE,OAAwB;QAC9D,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,WAAW,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,SAAuD,EAAE,EACzD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW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D,CAAC,CAAC;IACL,CAAC;CACF;AA4LD,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
package/resources/models.d.mts
CHANGED
|
@@ -13,11 +13,11 @@ export declare class Models extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves a model by ID from the workspace
|
|
15
15
|
*/
|
|
16
|
-
retrieve(id: string, params
|
|
16
|
+
retrieve(id: string, params?: ModelRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Model>;
|
|
17
17
|
/**
|
|
18
18
|
* Lists all models in the workspace
|
|
19
19
|
*/
|
|
20
|
-
list(
|
|
20
|
+
list(params?: ModelListParams | null | undefined, options?: RequestOptions): PagePromise<ModelsCursorPagination, Model>;
|
|
21
21
|
/**
|
|
22
22
|
* Transitions a model to STATE_DISABLED. Fails while agent variations are still
|
|
23
23
|
* provisioned on the model; use :swapModelOnVariations to move them first.
|
|
@@ -32,7 +32,7 @@ export declare class Models extends APIResource {
|
|
|
32
32
|
* Reassigns agent variations from one model to another in bulk. Runs
|
|
33
33
|
* asynchronously and returns immediately.
|
|
34
34
|
*/
|
|
35
|
-
swap(
|
|
35
|
+
swap(params?: ModelSwapParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
36
36
|
}
|
|
37
37
|
export type ModelsCursorPagination = CursorPagination<Model>;
|
|
38
38
|
export interface Model {
|
|
@@ -81,7 +81,11 @@ export interface ModelSpec {
|
|
|
81
81
|
/**
|
|
82
82
|
* The model family (e.g., "claude-sonnet-4.6", "gpt-5.4", "gemini-2.5-flash")
|
|
83
83
|
*/
|
|
84
|
-
family
|
|
84
|
+
family: string;
|
|
85
|
+
/**
|
|
86
|
+
* The model provider (e.g., "anthropic", "openai", "google")
|
|
87
|
+
*/
|
|
88
|
+
provider: string;
|
|
85
89
|
/**
|
|
86
90
|
* Cost per million input tokens in cents (e.g., 300 = $3.00)
|
|
87
91
|
*/
|
|
@@ -98,10 +102,6 @@ export interface ModelSpec {
|
|
|
98
102
|
* Cost per million output tokens in cents (e.g., 1500 = $15.00)
|
|
99
103
|
*/
|
|
100
104
|
outputPricePerMillionTokens?: string;
|
|
101
|
-
/**
|
|
102
|
-
* The model provider (e.g., "anthropic", "openai", "google")
|
|
103
|
-
*/
|
|
104
|
-
provider?: string;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Swap model on variations response. Empty: the work runs asynchronously, so no
|
|
@@ -112,47 +112,51 @@ export interface ModelRetrieveParams {
|
|
|
112
112
|
/**
|
|
113
113
|
* Workspace ID.
|
|
114
114
|
*/
|
|
115
|
-
workspaceId
|
|
115
|
+
workspaceId?: string;
|
|
116
116
|
}
|
|
117
117
|
export interface ModelListParams extends CursorPaginationParams {
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
120
|
-
|
|
119
|
+
* Path param: Workspace ID.
|
|
120
|
+
*/
|
|
121
|
+
workspaceId?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Query param: Filter to models provisioned on a specific AI provider key. Accepts
|
|
124
|
+
* the key's id or an "external_id:"-prefixed slug.
|
|
121
125
|
*/
|
|
122
126
|
aiProviderKeyId?: string;
|
|
123
127
|
/**
|
|
124
|
-
* When true, populate each item's info (e.g. the AI provider), at the
|
|
125
|
-
* extra lookups.
|
|
128
|
+
* Query param: When true, populate each item's info (e.g. the AI provider), at the
|
|
129
|
+
* cost of extra lookups.
|
|
126
130
|
*/
|
|
127
131
|
includeInfo?: boolean;
|
|
128
132
|
/**
|
|
129
|
-
* Filter models to only ones assigned to an active agent
|
|
130
|
-
* agents count as assigned; archived agents do not.
|
|
131
|
-
* recent traffic — see ModelInfo.last_used_at for that.
|
|
133
|
+
* Query param: Filter models to only ones assigned to an active agent
|
|
134
|
+
* variation/agent. Draft agents count as assigned; archived agents do not.
|
|
135
|
+
* Assignment does not imply recent traffic — see ModelInfo.last_used_at for that.
|
|
132
136
|
*/
|
|
133
137
|
isAssigned?: boolean;
|
|
134
138
|
/**
|
|
135
|
-
* Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
139
|
+
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
136
140
|
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
137
141
|
* semantics).
|
|
138
142
|
*/
|
|
139
143
|
labels?: string;
|
|
140
144
|
/**
|
|
141
|
-
* Filter by a prefix of the model's display name, external id, or id
|
|
145
|
+
* Query param: Filter by a prefix of the model's display name, external id, or id
|
|
142
146
|
* (case-insensitive). A model's external id is the form used in
|
|
143
147
|
* modelConfig.modelId, so a caller holding that can narrow the list by it.
|
|
144
148
|
*/
|
|
145
149
|
prefix?: string;
|
|
146
150
|
/**
|
|
147
|
-
* Free-form search query
|
|
151
|
+
* Query param: Free-form search query
|
|
148
152
|
*/
|
|
149
153
|
query?: string;
|
|
150
154
|
/**
|
|
151
|
-
* Sort order for results (asc or desc by creation time)
|
|
155
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
152
156
|
*/
|
|
153
157
|
sortOrder?: string;
|
|
154
158
|
/**
|
|
155
|
-
* Filter by model state
|
|
159
|
+
* Query param: Filter by model state
|
|
156
160
|
*/
|
|
157
161
|
state?: 'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED';
|
|
158
162
|
}
|
|
@@ -160,17 +164,21 @@ export interface ModelDisableParams {
|
|
|
160
164
|
/**
|
|
161
165
|
* Workspace ID.
|
|
162
166
|
*/
|
|
163
|
-
workspaceId
|
|
167
|
+
workspaceId?: string;
|
|
164
168
|
}
|
|
165
169
|
export interface ModelEnableParams {
|
|
166
170
|
/**
|
|
167
171
|
* Workspace ID.
|
|
168
172
|
*/
|
|
169
|
-
workspaceId
|
|
173
|
+
workspaceId?: string;
|
|
170
174
|
}
|
|
171
175
|
export interface ModelSwapParams {
|
|
172
176
|
/**
|
|
173
|
-
*
|
|
177
|
+
* Path param: Workspace ID.
|
|
178
|
+
*/
|
|
179
|
+
workspaceId?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Body param: The swaps to perform.
|
|
174
182
|
*/
|
|
175
183
|
modelSwaps?: Array<ModelSwapParams.ModelSwap>;
|
|
176
184
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,iBAAiB,+BAA2B;AACxD,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAChG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../src/resources/models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,iBAAiB,+BAA2B;AACxD,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAChG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAKpB;;OAEG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sBAAsB,EAAE,KAAK,CAAC;IAQ7C;;;OAGG;IACH,OAAO,C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