@cadenya/cadenya 0.43.0 → 0.45.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 +16 -0
- package/client.d.mts +27 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +27 -0
- package/client.d.ts.map +1 -1
- package/client.js +27 -0
- package/client.js.map +1 -1
- package/client.mjs +27 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +241 -0
- package/resources/memory-layers/entries.d.mts.map +1 -0
- package/resources/memory-layers/entries.d.ts +241 -0
- package/resources/memory-layers/entries.d.ts.map +1 -0
- package/resources/memory-layers/entries.js +63 -0
- package/resources/memory-layers/entries.js.map +1 -0
- package/resources/memory-layers/entries.mjs +59 -0
- package/resources/memory-layers/entries.mjs.map +1 -0
- package/resources/memory-layers/index.d.mts +3 -0
- package/resources/memory-layers/index.d.mts.map +1 -0
- package/resources/memory-layers/index.d.ts +3 -0
- package/resources/memory-layers/index.d.ts.map +1 -0
- package/resources/memory-layers/index.js +9 -0
- package/resources/memory-layers/index.js.map +1 -0
- package/resources/memory-layers/index.mjs +4 -0
- package/resources/memory-layers/index.mjs.map +1 -0
- package/resources/memory-layers/memory-layers.d.mts +140 -0
- package/resources/memory-layers/memory-layers.d.mts.map +1 -0
- package/resources/memory-layers/memory-layers.d.ts +140 -0
- package/resources/memory-layers/memory-layers.d.ts.map +1 -0
- package/resources/memory-layers/memory-layers.js +65 -0
- package/resources/memory-layers/memory-layers.js.map +1 -0
- package/resources/memory-layers/memory-layers.mjs +60 -0
- package/resources/memory-layers/memory-layers.mjs.map +1 -0
- package/resources/memory-layers.d.mts +2 -0
- package/resources/memory-layers.d.mts.map +1 -0
- package/resources/memory-layers.d.ts +2 -0
- package/resources/memory-layers.d.ts.map +1 -0
- package/resources/memory-layers.js +6 -0
- package/resources/memory-layers.js.map +1 -0
- package/resources/memory-layers.mjs +3 -0
- package/resources/memory-layers.mjs.map +1 -0
- package/resources/objectives/tasks.d.mts +1 -1
- package/resources/objectives/tasks.d.ts +1 -1
- package/resources/objectives/tool-calls.d.mts +3 -2
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +3 -2
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/uploads.d.mts +97 -0
- package/resources/uploads.d.mts.map +1 -0
- package/resources/uploads.d.ts +97 -0
- package/resources/uploads.d.ts.map +1 -0
- package/resources/uploads.js +33 -0
- package/resources/uploads.js.map +1 -0
- package/resources/uploads.mjs +29 -0
- package/resources/uploads.mjs.map +1 -0
- package/src/client.ts +61 -0
- package/src/resources/index.ts +11 -0
- package/src/resources/memory-layers/entries.ts +325 -0
- package/src/resources/memory-layers/index.ts +27 -0
- package/src/resources/memory-layers/memory-layers.ts +225 -0
- package/src/resources/memory-layers.ts +3 -0
- package/src/resources/objectives/tasks.ts +1 -1
- package/src/resources/objectives/tool-calls.ts +3 -2
- package/src/resources/uploads.ts +128 -0
- 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
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPagination } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* MemoryService manages memory layers and their entries at the WORKSPACE level.
|
|
8
|
+
* Layers are named containers that can be composed into an objective's memory
|
|
9
|
+
* stack; entries are the keyed values within a layer.
|
|
10
|
+
*
|
|
11
|
+
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
12
|
+
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
13
|
+
* cannot be mutated through this API.
|
|
14
|
+
*
|
|
15
|
+
* Authentication: Bearer token (JWT)
|
|
16
|
+
* Scope: Workspace-level operations
|
|
17
|
+
*/
|
|
18
|
+
export class Entries extends APIResource {
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new entry in a memory layer. Returns the detail view, including the
|
|
21
|
+
* resolved content body.
|
|
22
|
+
*/
|
|
23
|
+
create(memoryLayerID, body, options) {
|
|
24
|
+
return this._client.post(path `/v1/memory_layers/${memoryLayerID}/entries`, { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves a memory entry by ID from a memory layer. Returns the detail view,
|
|
28
|
+
* including the content body.
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id, params, options) {
|
|
31
|
+
const { memoryLayerId } = params;
|
|
32
|
+
return this._client.get(path `/v1/memory_layers/${memoryLayerId}/entries/${id}`, options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Updates a memory entry in a memory layer. Returns the detail view, including the
|
|
36
|
+
* resolved content body.
|
|
37
|
+
*/
|
|
38
|
+
update(id, params, options) {
|
|
39
|
+
const { memoryLayerId, ...body } = params;
|
|
40
|
+
return this._client.patch(path `/v1/memory_layers/${memoryLayerId}/entries/${id}`, { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Lists all entries in a memory layer
|
|
44
|
+
*/
|
|
45
|
+
list(memoryLayerID, query = {}, options) {
|
|
46
|
+
return this._client.getAPIList(path `/v1/memory_layers/${memoryLayerID}/entries`, (CursorPagination), { query, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Deletes a memory entry from a memory layer
|
|
50
|
+
*/
|
|
51
|
+
delete(id, params, options) {
|
|
52
|
+
const { memoryLayerId } = params;
|
|
53
|
+
return this._client.delete(path `/v1/memory_layers/${memoryLayerId}/entries/${id}`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=entries.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entries.mjs","sourceRoot":"","sources":["../../src/resources/memory-layers/entries.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,aAAqB,EACrB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,aAAa,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,MAA2B,EAAE,OAAwB;QACxE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,aAAa,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACpE,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,aAAa,YAAY,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,IAAI,CACF,aAAqB,EACrB,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,aAAa,UAAU,EAChD,CAAA,gBAA6B,CAAA,EAC7B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACpE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,aAAa,YAAY,EAAE,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Entries, type MemoryEntry, type MemoryEntryCreateSpec, type MemoryEntryDetail, type MemoryEntryInfo, type MemoryEntrySpec, type MemoryEntryUpdateSpec, type EntryCreateParams, type EntryRetrieveParams, type EntryUpdateParams, type EntryListParams, type EntryDeleteParams, type MemoryEntriesCursorPagination, } from "./entries.mjs";
|
|
2
|
+
export { MemoryLayers, type MemoryLayer, type MemoryLayerInfo, type MemoryLayerSpec, type MemoryLayerCreateParams, type MemoryLayerUpdateParams, type MemoryLayerListParams, type MemoryLayersCursorPagination, } from "./memory-layers.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/memory-layers/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,GAClC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Entries, type MemoryEntry, type MemoryEntryCreateSpec, type MemoryEntryDetail, type MemoryEntryInfo, type MemoryEntrySpec, type MemoryEntryUpdateSpec, type EntryCreateParams, type EntryRetrieveParams, type EntryUpdateParams, type EntryListParams, type EntryDeleteParams, type MemoryEntriesCursorPagination, } from "./entries.js";
|
|
2
|
+
export { MemoryLayers, type MemoryLayer, type MemoryLayerInfo, type MemoryLayerSpec, type MemoryLayerCreateParams, type MemoryLayerUpdateParams, type MemoryLayerListParams, type MemoryLayersCursorPagination, } from "./memory-layers.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/memory-layers/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,GAClC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MemoryLayers = exports.Entries = void 0;
|
|
5
|
+
var entries_1 = require("./entries.js");
|
|
6
|
+
Object.defineProperty(exports, "Entries", { enumerable: true, get: function () { return entries_1.Entries; } });
|
|
7
|
+
var memory_layers_1 = require("./memory-layers.js");
|
|
8
|
+
Object.defineProperty(exports, "MemoryLayers", { enumerable: true, get: function () { return memory_layers_1.MemoryLayers; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/memory-layers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAcmB;AAbjB,kGAAA,OAAO,OAAA;AAcT,oDASyB;AARvB,6GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/memory-layers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAaR;OACM,EACL,YAAY,GAQb"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AccountAPI from "../account.mjs";
|
|
3
|
+
import * as Shared from "../shared.mjs";
|
|
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";
|
|
6
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
8
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
9
|
+
/**
|
|
10
|
+
* MemoryService manages memory layers and their entries at the WORKSPACE level.
|
|
11
|
+
* Layers are named containers that can be composed into an objective's memory
|
|
12
|
+
* stack; entries are the keyed values within a layer.
|
|
13
|
+
*
|
|
14
|
+
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
15
|
+
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
16
|
+
* cannot be mutated through this API.
|
|
17
|
+
*
|
|
18
|
+
* Authentication: Bearer token (JWT)
|
|
19
|
+
* Scope: Workspace-level operations
|
|
20
|
+
*/
|
|
21
|
+
export declare class MemoryLayers extends APIResource {
|
|
22
|
+
entries: EntriesAPI.Entries;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new memory layer in the workspace
|
|
25
|
+
*/
|
|
26
|
+
create(body: MemoryLayerCreateParams, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a memory layer by ID from the workspace
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates a memory layer in the workspace
|
|
33
|
+
*/
|
|
34
|
+
update(id: string, body: MemoryLayerUpdateParams, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
35
|
+
/**
|
|
36
|
+
* Lists all memory layers in the workspace
|
|
37
|
+
*/
|
|
38
|
+
list(query?: MemoryLayerListParams | null | undefined, options?: RequestOptions): PagePromise<MemoryLayersCursorPagination, MemoryLayer>;
|
|
39
|
+
/**
|
|
40
|
+
* Deletes a memory layer from the workspace
|
|
41
|
+
*/
|
|
42
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
43
|
+
}
|
|
44
|
+
export type MemoryLayersCursorPagination = CursorPagination<MemoryLayer>;
|
|
45
|
+
/**
|
|
46
|
+
* MemoryLayer is a named container of memory entries that can be composed into an
|
|
47
|
+
* objective's memory stack. Layers are workspace-scoped resources. The layer type
|
|
48
|
+
* controls how its entries participate in the agent loop — see MemoryLayerType for
|
|
49
|
+
* details.
|
|
50
|
+
*
|
|
51
|
+
* Memory stacks are LIFO: when an objective resolves a key, layers are walked from
|
|
52
|
+
* the top of the stack downward, and the first matching entry wins.
|
|
53
|
+
*/
|
|
54
|
+
export interface MemoryLayer {
|
|
55
|
+
/**
|
|
56
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
57
|
+
*/
|
|
58
|
+
metadata: Shared.ResourceMetadata;
|
|
59
|
+
spec: MemoryLayerSpec;
|
|
60
|
+
info?: MemoryLayerInfo;
|
|
61
|
+
}
|
|
62
|
+
export interface MemoryLayerInfo {
|
|
63
|
+
/**
|
|
64
|
+
* Profile represents a human user at the account level. Profiles are
|
|
65
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
66
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
67
|
+
*/
|
|
68
|
+
createdBy?: AccountAPI.Profile;
|
|
69
|
+
/**
|
|
70
|
+
* Number of entries currently in this layer.
|
|
71
|
+
*/
|
|
72
|
+
entryCount?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Timestamp of the most recent objective that resolved against this layer. Useful
|
|
75
|
+
* for surfacing unused layers in the dashboard.
|
|
76
|
+
*/
|
|
77
|
+
lastUsedAt?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface MemoryLayerSpec {
|
|
80
|
+
type: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
81
|
+
/**
|
|
82
|
+
* Human-readable description of the layer's purpose. Encouraged for user-created
|
|
83
|
+
* layers; system-managed layers may have a generated description.
|
|
84
|
+
*/
|
|
85
|
+
description?: string;
|
|
86
|
+
/**
|
|
87
|
+
* For layers with a finite lifetime (e.g., episodic), the time at which the layer
|
|
88
|
+
* becomes eligible for cleanup. Set by the system; unset for persistent layers.
|
|
89
|
+
*/
|
|
90
|
+
expiresAt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Server-set. True for layers managed by the system (e.g., episodic layers created
|
|
93
|
+
* automatically when an objective uses an episodic_key). System-managed layers
|
|
94
|
+
* cannot be assigned to objective stacks via the API and cannot be mutated by
|
|
95
|
+
* clients — their lifecycle is controlled entirely by the runtime.
|
|
96
|
+
*/
|
|
97
|
+
systemManaged?: boolean;
|
|
98
|
+
}
|
|
99
|
+
export interface MemoryLayerCreateParams {
|
|
100
|
+
/**
|
|
101
|
+
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
102
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
103
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
104
|
+
*/
|
|
105
|
+
metadata: Shared.CreateResourceMetadata;
|
|
106
|
+
spec: MemoryLayerSpec;
|
|
107
|
+
}
|
|
108
|
+
export interface MemoryLayerUpdateParams {
|
|
109
|
+
/**
|
|
110
|
+
* UpdateResourceMetadata contains the user-provided fields for updating a
|
|
111
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
112
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
113
|
+
*/
|
|
114
|
+
metadata?: Shared.UpdateResourceMetadata;
|
|
115
|
+
spec?: MemoryLayerSpec;
|
|
116
|
+
updateMask?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface MemoryLayerListParams extends CursorPaginationParams {
|
|
119
|
+
/**
|
|
120
|
+
* When set to true you may use more of your alloted API rate-limit
|
|
121
|
+
*/
|
|
122
|
+
includeInfo?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Filter expression (query param: prefix)
|
|
125
|
+
*/
|
|
126
|
+
prefix?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Sort order for results (asc or desc by creation time)
|
|
129
|
+
*/
|
|
130
|
+
sortOrder?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Filter by layer type
|
|
133
|
+
*/
|
|
134
|
+
type?: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
135
|
+
}
|
|
136
|
+
export declare namespace MemoryLayers {
|
|
137
|
+
export { type MemoryLayer as MemoryLayer, type MemoryLayerInfo as MemoryLayerInfo, type MemoryLayerSpec as MemoryLayerSpec, type MemoryLayersCursorPagination as MemoryLayersCursorPagination, type MemoryLayerCreateParams as MemoryLayerCreateParams, type MemoryLayerUpdateParams as MemoryLayerUpdateParams, type MemoryLayerListParams as MemoryLayerListParams, };
|
|
138
|
+
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, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=memory-layers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.d.mts","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EACL,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,EACX,qBAAqB,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ClB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,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"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AccountAPI from "../account.js";
|
|
3
|
+
import * as Shared from "../shared.js";
|
|
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";
|
|
6
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
7
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
8
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
9
|
+
/**
|
|
10
|
+
* MemoryService manages memory layers and their entries at the WORKSPACE level.
|
|
11
|
+
* Layers are named containers that can be composed into an objective's memory
|
|
12
|
+
* stack; entries are the keyed values within a layer.
|
|
13
|
+
*
|
|
14
|
+
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
15
|
+
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
16
|
+
* cannot be mutated through this API.
|
|
17
|
+
*
|
|
18
|
+
* Authentication: Bearer token (JWT)
|
|
19
|
+
* Scope: Workspace-level operations
|
|
20
|
+
*/
|
|
21
|
+
export declare class MemoryLayers extends APIResource {
|
|
22
|
+
entries: EntriesAPI.Entries;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new memory layer in the workspace
|
|
25
|
+
*/
|
|
26
|
+
create(body: MemoryLayerCreateParams, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a memory layer by ID from the workspace
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates a memory layer in the workspace
|
|
33
|
+
*/
|
|
34
|
+
update(id: string, body: MemoryLayerUpdateParams, options?: RequestOptions): APIPromise<MemoryLayer>;
|
|
35
|
+
/**
|
|
36
|
+
* Lists all memory layers in the workspace
|
|
37
|
+
*/
|
|
38
|
+
list(query?: MemoryLayerListParams | null | undefined, options?: RequestOptions): PagePromise<MemoryLayersCursorPagination, MemoryLayer>;
|
|
39
|
+
/**
|
|
40
|
+
* Deletes a memory layer from the workspace
|
|
41
|
+
*/
|
|
42
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
43
|
+
}
|
|
44
|
+
export type MemoryLayersCursorPagination = CursorPagination<MemoryLayer>;
|
|
45
|
+
/**
|
|
46
|
+
* MemoryLayer is a named container of memory entries that can be composed into an
|
|
47
|
+
* objective's memory stack. Layers are workspace-scoped resources. The layer type
|
|
48
|
+
* controls how its entries participate in the agent loop — see MemoryLayerType for
|
|
49
|
+
* details.
|
|
50
|
+
*
|
|
51
|
+
* Memory stacks are LIFO: when an objective resolves a key, layers are walked from
|
|
52
|
+
* the top of the stack downward, and the first matching entry wins.
|
|
53
|
+
*/
|
|
54
|
+
export interface MemoryLayer {
|
|
55
|
+
/**
|
|
56
|
+
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
57
|
+
*/
|
|
58
|
+
metadata: Shared.ResourceMetadata;
|
|
59
|
+
spec: MemoryLayerSpec;
|
|
60
|
+
info?: MemoryLayerInfo;
|
|
61
|
+
}
|
|
62
|
+
export interface MemoryLayerInfo {
|
|
63
|
+
/**
|
|
64
|
+
* Profile represents a human user at the account level. Profiles are
|
|
65
|
+
* account-scoped resources that can be associated with multiple workspaces through
|
|
66
|
+
* the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
|
|
67
|
+
*/
|
|
68
|
+
createdBy?: AccountAPI.Profile;
|
|
69
|
+
/**
|
|
70
|
+
* Number of entries currently in this layer.
|
|
71
|
+
*/
|
|
72
|
+
entryCount?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Timestamp of the most recent objective that resolved against this layer. Useful
|
|
75
|
+
* for surfacing unused layers in the dashboard.
|
|
76
|
+
*/
|
|
77
|
+
lastUsedAt?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface MemoryLayerSpec {
|
|
80
|
+
type: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
81
|
+
/**
|
|
82
|
+
* Human-readable description of the layer's purpose. Encouraged for user-created
|
|
83
|
+
* layers; system-managed layers may have a generated description.
|
|
84
|
+
*/
|
|
85
|
+
description?: string;
|
|
86
|
+
/**
|
|
87
|
+
* For layers with a finite lifetime (e.g., episodic), the time at which the layer
|
|
88
|
+
* becomes eligible for cleanup. Set by the system; unset for persistent layers.
|
|
89
|
+
*/
|
|
90
|
+
expiresAt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Server-set. True for layers managed by the system (e.g., episodic layers created
|
|
93
|
+
* automatically when an objective uses an episodic_key). System-managed layers
|
|
94
|
+
* cannot be assigned to objective stacks via the API and cannot be mutated by
|
|
95
|
+
* clients — their lifecycle is controlled entirely by the runtime.
|
|
96
|
+
*/
|
|
97
|
+
systemManaged?: boolean;
|
|
98
|
+
}
|
|
99
|
+
export interface MemoryLayerCreateParams {
|
|
100
|
+
/**
|
|
101
|
+
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
102
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
103
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
104
|
+
*/
|
|
105
|
+
metadata: Shared.CreateResourceMetadata;
|
|
106
|
+
spec: MemoryLayerSpec;
|
|
107
|
+
}
|
|
108
|
+
export interface MemoryLayerUpdateParams {
|
|
109
|
+
/**
|
|
110
|
+
* UpdateResourceMetadata contains the user-provided fields for updating a
|
|
111
|
+
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
112
|
+
* profile_id, created_at) are excluded since they are set by the server.
|
|
113
|
+
*/
|
|
114
|
+
metadata?: Shared.UpdateResourceMetadata;
|
|
115
|
+
spec?: MemoryLayerSpec;
|
|
116
|
+
updateMask?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface MemoryLayerListParams extends CursorPaginationParams {
|
|
119
|
+
/**
|
|
120
|
+
* When set to true you may use more of your alloted API rate-limit
|
|
121
|
+
*/
|
|
122
|
+
includeInfo?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Filter expression (query param: prefix)
|
|
125
|
+
*/
|
|
126
|
+
prefix?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Sort order for results (asc or desc by creation time)
|
|
129
|
+
*/
|
|
130
|
+
sortOrder?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Filter by layer type
|
|
133
|
+
*/
|
|
134
|
+
type?: 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
|
|
135
|
+
}
|
|
136
|
+
export declare namespace MemoryLayers {
|
|
137
|
+
export { type MemoryLayer as MemoryLayer, type MemoryLayerInfo as MemoryLayerInfo, type MemoryLayerSpec as MemoryLayerSpec, type MemoryLayersCursorPagination as MemoryLayersCursorPagination, type MemoryLayerCreateParams as MemoryLayerCreateParams, type MemoryLayerUpdateParams as MemoryLayerUpdateParams, type MemoryLayerListParams as MemoryLayerListParams, };
|
|
138
|
+
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, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=memory-layers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.d.ts","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,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;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;;GAWG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UA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strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MemoryLayers = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const EntriesAPI = tslib_1.__importStar(require("./entries.js"));
|
|
8
|
+
const entries_1 = require("./entries.js");
|
|
9
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
10
|
+
const headers_1 = require("../../internal/headers.js");
|
|
11
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
12
|
+
/**
|
|
13
|
+
* MemoryService manages memory layers and their entries at the WORKSPACE level.
|
|
14
|
+
* Layers are named containers that can be composed into an objective's memory
|
|
15
|
+
* stack; entries are the keyed values within a layer.
|
|
16
|
+
*
|
|
17
|
+
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
18
|
+
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
19
|
+
* cannot be mutated through this API.
|
|
20
|
+
*
|
|
21
|
+
* Authentication: Bearer token (JWT)
|
|
22
|
+
* Scope: Workspace-level operations
|
|
23
|
+
*/
|
|
24
|
+
class MemoryLayers extends resource_1.APIResource {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.entries = new EntriesAPI.Entries(this._client);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new memory layer in the workspace
|
|
31
|
+
*/
|
|
32
|
+
create(body, options) {
|
|
33
|
+
return this._client.post('/v1/memory_layers', { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves a memory layer by ID from the workspace
|
|
37
|
+
*/
|
|
38
|
+
retrieve(id, options) {
|
|
39
|
+
return this._client.get((0, path_1.path) `/v1/memory_layers/${id}`, options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Updates a memory layer in the workspace
|
|
43
|
+
*/
|
|
44
|
+
update(id, body, options) {
|
|
45
|
+
return this._client.patch((0, path_1.path) `/v1/memory_layers/${id}`, { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Lists all memory layers in the workspace
|
|
49
|
+
*/
|
|
50
|
+
list(query = {}, options) {
|
|
51
|
+
return this._client.getAPIList('/v1/memory_layers', (pagination_1.CursorPagination), { query, ...options });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Deletes a memory layer from the workspace
|
|
55
|
+
*/
|
|
56
|
+
delete(id, options) {
|
|
57
|
+
return this._client.delete((0, path_1.path) `/v1/memory_layers/${id}`, {
|
|
58
|
+
...options,
|
|
59
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.MemoryLayers = MemoryLayers;
|
|
64
|
+
MemoryLayers.Entries = entries_1.Entries;
|
|
65
|
+
//# sourceMappingURL=memory-layers.js.map
|
|
@@ -0,0 +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,0CAcmB;AAEnB,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;GAWG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0CrE,CAAC;IAxCC;;OAEG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,6BAA6B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3CD,oCA2CC;AAkHD,YAAY,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as EntriesAPI from "./entries.mjs";
|
|
4
|
+
import { Entries, } from "./entries.mjs";
|
|
5
|
+
import { CursorPagination } from "../../core/pagination.mjs";
|
|
6
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
7
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
8
|
+
/**
|
|
9
|
+
* MemoryService manages memory layers and their entries at the WORKSPACE level.
|
|
10
|
+
* Layers are named containers that can be composed into an objective's memory
|
|
11
|
+
* stack; entries are the keyed values within a layer.
|
|
12
|
+
*
|
|
13
|
+
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
14
|
+
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
15
|
+
* cannot be mutated through this API.
|
|
16
|
+
*
|
|
17
|
+
* Authentication: Bearer token (JWT)
|
|
18
|
+
* Scope: Workspace-level operations
|
|
19
|
+
*/
|
|
20
|
+
export class MemoryLayers extends APIResource {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.entries = new EntriesAPI.Entries(this._client);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new memory layer in the workspace
|
|
27
|
+
*/
|
|
28
|
+
create(body, options) {
|
|
29
|
+
return this._client.post('/v1/memory_layers', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves a memory layer by ID from the workspace
|
|
33
|
+
*/
|
|
34
|
+
retrieve(id, options) {
|
|
35
|
+
return this._client.get(path `/v1/memory_layers/${id}`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Updates a memory layer in the workspace
|
|
39
|
+
*/
|
|
40
|
+
update(id, body, options) {
|
|
41
|
+
return this._client.patch(path `/v1/memory_layers/${id}`, { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Lists all memory layers in the workspace
|
|
45
|
+
*/
|
|
46
|
+
list(query = {}, options) {
|
|
47
|
+
return this._client.getAPIList('/v1/memory_layers', (CursorPagination), { query, ...options });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Deletes a memory layer from the workspace
|
|
51
|
+
*/
|
|
52
|
+
delete(id, options) {
|
|
53
|
+
return this._client.delete(path `/v1/memory_layers/${id}`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
MemoryLayers.Entries = Entries;
|
|
60
|
+
//# sourceMappingURL=memory-layers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.mjs","sourceRoot":"","sources":["../../src/resources/memory-layers/memory-layers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,UAAU;OACf,EACL,OAAO,GAaR;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0CrE,CAAC;IAxCC;;OAEG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,gBAA6B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAkHD,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.d.mts","sourceRoot":"","sources":["../src/resources/memory-layers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.d.ts","sourceRoot":"","sources":["../src/resources/memory-layers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./memory-layers/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=memory-layers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.js","sourceRoot":"","sources":["../src/resources/memory-layers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mEAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-layers.mjs","sourceRoot":"","sources":["../src/resources/memory-layers.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -50,7 +50,7 @@ export interface ObjectiveTaskData {
|
|
|
50
50
|
}
|
|
51
51
|
export interface TaskRetrieveParams {
|
|
52
52
|
/**
|
|
53
|
-
* The ID of the objective. Supports "
|
|
53
|
+
* The ID of the objective. Supports "external_id:" prefix for external IDs.
|
|
54
54
|
*/
|
|
55
55
|
objectiveId: string;
|
|
56
56
|
}
|
|
@@ -50,7 +50,7 @@ export interface ObjectiveTaskData {
|
|
|
50
50
|
}
|
|
51
51
|
export interface TaskRetrieveParams {
|
|
52
52
|
/**
|
|
53
|
-
* The ID of the objective. Supports "
|
|
53
|
+
* The ID of the objective. Supports "external_id:" prefix for external IDs.
|
|
54
54
|
*/
|
|
55
55
|
objectiveId: string;
|
|
56
56
|
}
|
|
@@ -96,13 +96,14 @@ export interface ToolCallListParams extends CursorPaginationParams {
|
|
|
96
96
|
}
|
|
97
97
|
export interface ToolCallApproveParams {
|
|
98
98
|
/**
|
|
99
|
-
* The ID of the objective. Supports "
|
|
99
|
+
* The ID of the objective. Supports "external_id:" prefix for external IDs.
|
|
100
100
|
*/
|
|
101
101
|
objectiveId: string;
|
|
102
102
|
}
|
|
103
103
|
export interface ToolCallDenyParams {
|
|
104
104
|
/**
|
|
105
|
-
* Path param: The ID of the objective. Supports "
|
|
105
|
+
* Path param: The ID of the objective. Supports "external_id:" prefix for external
|
|
106
|
+
* IDs.
|
|
106
107
|
*/
|
|
107
108
|
objectiveId: string;
|
|
108
109
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-calls.d.mts","sourceRoot":"","sources":["../../src/resources/objectives/tool-calls.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH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AC;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAE/B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EACH,8BAA8B,GAC9B,gCAAgC,GAChC,uCAAuC,GACvC,2BAA2B,GAC3B,yBAAyB,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC
|
|
1
|
+
{"version":3,"file":"tool-calls.d.mts","sourceRoot":"","sources":["../../src/resources/objectives/tool-calls.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,iBAAiB,CAAC;IAQrE;;;OAGG;IACH,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAQhC;;;;OAIG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAA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