@cadenya/cadenya 0.44.0 → 0.46.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 +22 -0
- package/client.d.mts +31 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +31 -4
- 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/agent-variations.d.mts +79 -1
- package/resources/agent-variations.d.mts.map +1 -1
- package/resources/agent-variations.d.ts +79 -1
- package/resources/agent-variations.d.ts.map +1 -1
- package/resources/agent-variations.js +31 -0
- package/resources/agent-variations.js.map +1 -1
- package/resources/agent-variations.mjs +31 -0
- package/resources/agent-variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +2 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +2 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- 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 +139 -0
- package/resources/memory-layers/memory-layers.d.mts.map +1 -0
- package/resources/memory-layers/memory-layers.d.ts +139 -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/index.d.mts +1 -1
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +1 -1
- 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 +76 -1
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +76 -1
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.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 +73 -0
- package/src/resources/agent-variations.ts +124 -0
- package/src/resources/agents/webhook-deliveries.ts +4 -2
- package/src/resources/index.ts +17 -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 +224 -0
- package/src/resources/memory-layers.ts +3 -0
- package/src/resources/objectives/index.ts +2 -0
- package/src/resources/objectives/objectives.ts +85 -0
- 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
package/src/client.ts
CHANGED
|
@@ -30,17 +30,20 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
AgentVariation,
|
|
32
32
|
AgentVariationAddAssignmentParams,
|
|
33
|
+
AgentVariationAddMemoryLayerParams,
|
|
33
34
|
AgentVariationCreateParams,
|
|
34
35
|
AgentVariationDeleteParams,
|
|
35
36
|
AgentVariationInfo,
|
|
36
37
|
AgentVariationListParams,
|
|
37
38
|
AgentVariationRemoveAssignmentParams,
|
|
39
|
+
AgentVariationRemoveMemoryLayerParams,
|
|
38
40
|
AgentVariationRetrieveParams,
|
|
39
41
|
AgentVariationSpec,
|
|
40
42
|
AgentVariationSpecCompactionConfig,
|
|
41
43
|
AgentVariationSpecConstraints,
|
|
42
44
|
AgentVariationSpecModelConfig,
|
|
43
45
|
AgentVariationSpecToolSelection,
|
|
46
|
+
AgentVariationUpdateMemoryLayerParams,
|
|
44
47
|
AgentVariationUpdateParams,
|
|
45
48
|
AgentVariations,
|
|
46
49
|
AgentVariationsCursorPagination,
|
|
@@ -49,6 +52,7 @@ import {
|
|
|
49
52
|
ToolSelectionAssignedTools,
|
|
50
53
|
ToolSelectionAutoDiscovery,
|
|
51
54
|
VariationAssignment,
|
|
55
|
+
VariationMemoryLayerAssignment,
|
|
52
56
|
} from './resources/agent-variations';
|
|
53
57
|
import {
|
|
54
58
|
APIKey,
|
|
@@ -73,6 +77,13 @@ import {
|
|
|
73
77
|
SearchSearchToolsOrToolSetsParams,
|
|
74
78
|
SearchSearchToolsOrToolSetsResponse,
|
|
75
79
|
} from './resources/search';
|
|
80
|
+
import {
|
|
81
|
+
Upload,
|
|
82
|
+
UploadCreateParams,
|
|
83
|
+
UploadInfo,
|
|
84
|
+
UploadSpec,
|
|
85
|
+
Uploads as UploadsAPIUploads,
|
|
86
|
+
} from './resources/uploads';
|
|
76
87
|
import { UnsafeUnwrapWebhookEvent, UnwrapWebhookEvent, Webhooks } from './resources/webhooks';
|
|
77
88
|
import {
|
|
78
89
|
WorkspaceSecret,
|
|
@@ -102,11 +113,23 @@ import {
|
|
|
102
113
|
AgentsCursorPagination,
|
|
103
114
|
Page,
|
|
104
115
|
} from './resources/agents/agents';
|
|
116
|
+
import {
|
|
117
|
+
MemoryLayer,
|
|
118
|
+
MemoryLayerCreateParams,
|
|
119
|
+
MemoryLayerInfo,
|
|
120
|
+
MemoryLayerListParams,
|
|
121
|
+
MemoryLayerSpec,
|
|
122
|
+
MemoryLayerUpdateParams,
|
|
123
|
+
MemoryLayers,
|
|
124
|
+
MemoryLayersCursorPagination,
|
|
125
|
+
} from './resources/memory-layers/memory-layers';
|
|
105
126
|
import {
|
|
106
127
|
AssistantMessage,
|
|
107
128
|
AssistantToolCall,
|
|
108
129
|
CallableTool,
|
|
109
130
|
ContextWindowCompacted,
|
|
131
|
+
MemoryRead,
|
|
132
|
+
MemoryReference,
|
|
110
133
|
Objective,
|
|
111
134
|
ObjectiveCancelParams,
|
|
112
135
|
ObjectiveCompactParams,
|
|
@@ -917,6 +940,29 @@ export class Cadenya {
|
|
|
917
940
|
agents: API.Agents = new API.Agents(this);
|
|
918
941
|
agentVariations: API.AgentVariations = new API.AgentVariations(this);
|
|
919
942
|
objectives: API.Objectives = new API.Objectives(this);
|
|
943
|
+
/**
|
|
944
|
+
* MemoryService manages memory layers and their entries at the WORKSPACE level.
|
|
945
|
+
* Layers are named containers that can be composed into an objective's memory
|
|
946
|
+
* stack; entries are the keyed values within a layer.
|
|
947
|
+
*
|
|
948
|
+
* All operations are implicitly scoped to the workspace determined by the JWT
|
|
949
|
+
* token. System-managed layers (e.g., episodic layers created by the runtime)
|
|
950
|
+
* cannot be mutated through this API.
|
|
951
|
+
*
|
|
952
|
+
* Authentication: Bearer token (JWT)
|
|
953
|
+
* Scope: Workspace-level operations
|
|
954
|
+
*/
|
|
955
|
+
memoryLayers: API.MemoryLayers = new API.MemoryLayers(this);
|
|
956
|
+
/**
|
|
957
|
+
* UploadService issues short-lived presigned URLs for direct client-to-object-
|
|
958
|
+
* storage uploads at the WORKSPACE level. Created uploads can be referenced by
|
|
959
|
+
* id when creating or updating resources that accept binary content (e.g.,
|
|
960
|
+
* MemoryEntry).
|
|
961
|
+
*
|
|
962
|
+
* Authentication: Bearer token (JWT)
|
|
963
|
+
* Scope: Workspace-level operations
|
|
964
|
+
*/
|
|
965
|
+
uploads: API.Uploads = new API.Uploads(this);
|
|
920
966
|
/**
|
|
921
967
|
* ModelService manages LLM models at the WORKSPACE level.
|
|
922
968
|
* Models represent available LLM providers and families (e.g., "anthropic/claude-sonnet-4.6").
|
|
@@ -965,6 +1011,8 @@ Cadenya.AccountResource = AccountResource;
|
|
|
965
1011
|
Cadenya.Agents = Agents;
|
|
966
1012
|
Cadenya.AgentVariations = AgentVariations;
|
|
967
1013
|
Cadenya.Objectives = Objectives;
|
|
1014
|
+
Cadenya.MemoryLayers = MemoryLayers;
|
|
1015
|
+
Cadenya.Uploads = UploadsAPIUploads;
|
|
968
1016
|
Cadenya.Models = Models;
|
|
969
1017
|
Cadenya.Search = Search;
|
|
970
1018
|
Cadenya.ToolSets = ToolSets;
|
|
@@ -1017,6 +1065,7 @@ export declare namespace Cadenya {
|
|
|
1017
1065
|
type ToolSelectionAssignedTools as ToolSelectionAssignedTools,
|
|
1018
1066
|
type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery,
|
|
1019
1067
|
type VariationAssignment as VariationAssignment,
|
|
1068
|
+
type VariationMemoryLayerAssignment as VariationMemoryLayerAssignment,
|
|
1020
1069
|
type AgentVariationsCursorPagination as AgentVariationsCursorPagination,
|
|
1021
1070
|
type AgentVariationCreateParams as AgentVariationCreateParams,
|
|
1022
1071
|
type AgentVariationRetrieveParams as AgentVariationRetrieveParams,
|
|
@@ -1024,7 +1073,10 @@ export declare namespace Cadenya {
|
|
|
1024
1073
|
type AgentVariationListParams as AgentVariationListParams,
|
|
1025
1074
|
type AgentVariationDeleteParams as AgentVariationDeleteParams,
|
|
1026
1075
|
type AgentVariationAddAssignmentParams as AgentVariationAddAssignmentParams,
|
|
1076
|
+
type AgentVariationAddMemoryLayerParams as AgentVariationAddMemoryLayerParams,
|
|
1027
1077
|
type AgentVariationRemoveAssignmentParams as AgentVariationRemoveAssignmentParams,
|
|
1078
|
+
type AgentVariationRemoveMemoryLayerParams as AgentVariationRemoveMemoryLayerParams,
|
|
1079
|
+
type AgentVariationUpdateMemoryLayerParams as AgentVariationUpdateMemoryLayerParams,
|
|
1028
1080
|
};
|
|
1029
1081
|
|
|
1030
1082
|
export {
|
|
@@ -1033,6 +1085,8 @@ export declare namespace Cadenya {
|
|
|
1033
1085
|
type AssistantToolCall as AssistantToolCall,
|
|
1034
1086
|
type CallableTool as CallableTool,
|
|
1035
1087
|
type ContextWindowCompacted as ContextWindowCompacted,
|
|
1088
|
+
type MemoryRead as MemoryRead,
|
|
1089
|
+
type MemoryReference as MemoryReference,
|
|
1036
1090
|
type Objective as Objective,
|
|
1037
1091
|
type ObjectiveContextWindow as ObjectiveContextWindow,
|
|
1038
1092
|
type ObjectiveContextWindowData as ObjectiveContextWindowData,
|
|
@@ -1067,6 +1121,25 @@ export declare namespace Cadenya {
|
|
|
1067
1121
|
type ObjectiveListEventsParams as ObjectiveListEventsParams,
|
|
1068
1122
|
};
|
|
1069
1123
|
|
|
1124
|
+
export {
|
|
1125
|
+
MemoryLayers as MemoryLayers,
|
|
1126
|
+
type MemoryLayer as MemoryLayer,
|
|
1127
|
+
type MemoryLayerInfo as MemoryLayerInfo,
|
|
1128
|
+
type MemoryLayerSpec as MemoryLayerSpec,
|
|
1129
|
+
type MemoryLayersCursorPagination as MemoryLayersCursorPagination,
|
|
1130
|
+
type MemoryLayerCreateParams as MemoryLayerCreateParams,
|
|
1131
|
+
type MemoryLayerUpdateParams as MemoryLayerUpdateParams,
|
|
1132
|
+
type MemoryLayerListParams as MemoryLayerListParams,
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
export {
|
|
1136
|
+
UploadsAPIUploads as Uploads,
|
|
1137
|
+
type Upload as Upload,
|
|
1138
|
+
type UploadInfo as UploadInfo,
|
|
1139
|
+
type UploadSpec as UploadSpec,
|
|
1140
|
+
type UploadCreateParams as UploadCreateParams,
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1070
1143
|
export {
|
|
1071
1144
|
Models as Models,
|
|
1072
1145
|
type Model as Model,
|
|
@@ -85,6 +85,21 @@ export class AgentVariations extends APIResource {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Attaches a memory layer to a variation at a given position in the variation's
|
|
90
|
+
* baseline memory stack.
|
|
91
|
+
*/
|
|
92
|
+
addMemoryLayer(
|
|
93
|
+
agentVariationID: string,
|
|
94
|
+
body: AgentVariationAddMemoryLayerParams,
|
|
95
|
+
options?: RequestOptions,
|
|
96
|
+
): APIPromise<VariationMemoryLayerAssignment> {
|
|
97
|
+
return this._client.post(path`/v1/agent_variations/${agentVariationID}/memory_layers`, {
|
|
98
|
+
body,
|
|
99
|
+
...options,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
88
103
|
/**
|
|
89
104
|
* Detaches an assignment from a variation, identified by the assignment ID
|
|
90
105
|
* returned when it was added.
|
|
@@ -100,6 +115,37 @@ export class AgentVariations extends APIResource {
|
|
|
100
115
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
101
116
|
});
|
|
102
117
|
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Detaches a memory layer assignment from a variation, identified by the
|
|
121
|
+
* assignment id.
|
|
122
|
+
*/
|
|
123
|
+
removeMemoryLayer(
|
|
124
|
+
id: string,
|
|
125
|
+
params: AgentVariationRemoveMemoryLayerParams,
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): APIPromise<void> {
|
|
128
|
+
const { agentVariationId } = params;
|
|
129
|
+
return this._client.delete(path`/v1/agent_variations/${agentVariationId}/memory_layers/${id}`, {
|
|
130
|
+
...options,
|
|
131
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Updates the position of a memory layer assignment on a variation.
|
|
137
|
+
*/
|
|
138
|
+
updateMemoryLayer(
|
|
139
|
+
id: string,
|
|
140
|
+
params: AgentVariationUpdateMemoryLayerParams,
|
|
141
|
+
options?: RequestOptions,
|
|
142
|
+
): APIPromise<VariationMemoryLayerAssignment> {
|
|
143
|
+
const { agentVariationId, ...body } = params;
|
|
144
|
+
return this._client.patch(path`/v1/agent_variations/${agentVariationId}/memory_layers/${id}`, {
|
|
145
|
+
body,
|
|
146
|
+
...options,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
103
149
|
}
|
|
104
150
|
|
|
105
151
|
export type AgentVariationsCursorPagination = CursorPagination<AgentVariation>;
|
|
@@ -147,6 +193,17 @@ export interface AgentVariationInfo {
|
|
|
147
193
|
*/
|
|
148
194
|
feedbackCount?: number;
|
|
149
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Read-only list of memory layer assignments for this variation, returned in
|
|
198
|
+
* ascending `position` (bottom → top). Capped at 10 entries.
|
|
199
|
+
*/
|
|
200
|
+
memoryLayerAssignments?: Array<VariationMemoryLayerAssignment>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Count of memory layer assignments.
|
|
204
|
+
*/
|
|
205
|
+
memoryLayerCount?: number;
|
|
206
|
+
|
|
150
207
|
/**
|
|
151
208
|
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
152
209
|
*/
|
|
@@ -395,6 +452,41 @@ export interface VariationAssignment {
|
|
|
395
452
|
toolSet?: Shared.BareMetadata;
|
|
396
453
|
}
|
|
397
454
|
|
|
455
|
+
/**
|
|
456
|
+
* VariationMemoryLayerAssignment attaches a single MemoryLayer to a variation at a
|
|
457
|
+
* given position in the variation's baseline memory stack. A variation has at most
|
|
458
|
+
* one assignment per memory_layer_id.
|
|
459
|
+
*
|
|
460
|
+
* Variations only support whole-layer attachments — entry pinning is an
|
|
461
|
+
* objective-level capability.
|
|
462
|
+
*/
|
|
463
|
+
export interface VariationMemoryLayerAssignment {
|
|
464
|
+
/**
|
|
465
|
+
* Assignment row id — handle for removing the assignment. Distinct from the
|
|
466
|
+
* referenced memory layer's id.
|
|
467
|
+
*/
|
|
468
|
+
id?: string;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
472
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
473
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
474
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
475
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
476
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
477
|
+
*/
|
|
478
|
+
memoryLayer?: Shared.BareMetadata;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Position in the variation's baseline stack. Lower values sit lower; the
|
|
482
|
+
* highest-position assignment is on top of the variation's baseline. Gaps are fine
|
|
483
|
+
* — only relative position matters. Positions must be unique within a variation; a
|
|
484
|
+
* request that would collide with an existing assignment's position is rejected
|
|
485
|
+
* with InvalidArgument.
|
|
486
|
+
*/
|
|
487
|
+
position?: number;
|
|
488
|
+
}
|
|
489
|
+
|
|
398
490
|
export interface AgentVariationCreateParams {
|
|
399
491
|
/**
|
|
400
492
|
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
@@ -469,10 +561,38 @@ export interface AgentVariationAddAssignmentParams {
|
|
|
469
561
|
toolSetId?: string;
|
|
470
562
|
}
|
|
471
563
|
|
|
564
|
+
export interface AgentVariationAddMemoryLayerParams {
|
|
565
|
+
/**
|
|
566
|
+
* Layer to attach. Accepts memlyr\_… or external_id:… form.
|
|
567
|
+
*/
|
|
568
|
+
memoryLayerId?: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Position in the stack. If omitted, server appends (max existing position + 1).
|
|
572
|
+
*/
|
|
573
|
+
position?: number;
|
|
574
|
+
}
|
|
575
|
+
|
|
472
576
|
export interface AgentVariationRemoveAssignmentParams {
|
|
473
577
|
agentVariationId: string;
|
|
474
578
|
}
|
|
475
579
|
|
|
580
|
+
export interface AgentVariationRemoveMemoryLayerParams {
|
|
581
|
+
agentVariationId: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export interface AgentVariationUpdateMemoryLayerParams {
|
|
585
|
+
/**
|
|
586
|
+
* Path param
|
|
587
|
+
*/
|
|
588
|
+
agentVariationId: string;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Body param: New position. Only field currently updatable on an assignment.
|
|
592
|
+
*/
|
|
593
|
+
position?: number;
|
|
594
|
+
}
|
|
595
|
+
|
|
476
596
|
export declare namespace AgentVariations {
|
|
477
597
|
export {
|
|
478
598
|
type AgentVariation as AgentVariation,
|
|
@@ -487,6 +607,7 @@ export declare namespace AgentVariations {
|
|
|
487
607
|
type ToolSelectionAssignedTools as ToolSelectionAssignedTools,
|
|
488
608
|
type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery,
|
|
489
609
|
type VariationAssignment as VariationAssignment,
|
|
610
|
+
type VariationMemoryLayerAssignment as VariationMemoryLayerAssignment,
|
|
490
611
|
type AgentVariationsCursorPagination as AgentVariationsCursorPagination,
|
|
491
612
|
type AgentVariationCreateParams as AgentVariationCreateParams,
|
|
492
613
|
type AgentVariationRetrieveParams as AgentVariationRetrieveParams,
|
|
@@ -494,6 +615,9 @@ export declare namespace AgentVariations {
|
|
|
494
615
|
type AgentVariationListParams as AgentVariationListParams,
|
|
495
616
|
type AgentVariationDeleteParams as AgentVariationDeleteParams,
|
|
496
617
|
type AgentVariationAddAssignmentParams as AgentVariationAddAssignmentParams,
|
|
618
|
+
type AgentVariationAddMemoryLayerParams as AgentVariationAddMemoryLayerParams,
|
|
497
619
|
type AgentVariationRemoveAssignmentParams as AgentVariationRemoveAssignmentParams,
|
|
620
|
+
type AgentVariationRemoveMemoryLayerParams as AgentVariationRemoveMemoryLayerParams,
|
|
621
|
+
type AgentVariationUpdateMemoryLayerParams as AgentVariationUpdateMemoryLayerParams,
|
|
498
622
|
};
|
|
499
623
|
}
|
|
@@ -69,7 +69,8 @@ export interface WebhookDeliveryData {
|
|
|
69
69
|
| 'OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE'
|
|
70
70
|
| 'OBJECTIVE_EVENT_TYPE_TOOL_RESULT'
|
|
71
71
|
| 'OBJECTIVE_EVENT_TYPE_TOOL_ERROR'
|
|
72
|
-
| 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED'
|
|
72
|
+
| 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED'
|
|
73
|
+
| 'OBJECTIVE_EVENT_TYPE_MEMORY_READ';
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* Response details (no response_body to avoid storing large payloads)
|
|
@@ -127,7 +128,8 @@ export interface WebhookDeliveryListParams extends CursorPaginationParams {
|
|
|
127
128
|
| 'OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE'
|
|
128
129
|
| 'OBJECTIVE_EVENT_TYPE_TOOL_RESULT'
|
|
129
130
|
| 'OBJECTIVE_EVENT_TYPE_TOOL_ERROR'
|
|
130
|
-
| 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED'
|
|
131
|
+
| 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED'
|
|
132
|
+
| 'OBJECTIVE_EVENT_TYPE_MEMORY_READ';
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* Optional filter by objective ID
|
package/src/resources/index.ts
CHANGED
|
@@ -33,13 +33,17 @@ export {
|
|
|
33
33
|
type ToolSelectionAssignedTools,
|
|
34
34
|
type ToolSelectionAutoDiscovery,
|
|
35
35
|
type VariationAssignment,
|
|
36
|
+
type VariationMemoryLayerAssignment,
|
|
36
37
|
type AgentVariationCreateParams,
|
|
37
38
|
type AgentVariationRetrieveParams,
|
|
38
39
|
type AgentVariationUpdateParams,
|
|
39
40
|
type AgentVariationListParams,
|
|
40
41
|
type AgentVariationDeleteParams,
|
|
41
42
|
type AgentVariationAddAssignmentParams,
|
|
43
|
+
type AgentVariationAddMemoryLayerParams,
|
|
42
44
|
type AgentVariationRemoveAssignmentParams,
|
|
45
|
+
type AgentVariationRemoveMemoryLayerParams,
|
|
46
|
+
type AgentVariationUpdateMemoryLayerParams,
|
|
43
47
|
type AgentVariationsCursorPagination,
|
|
44
48
|
} from './agent-variations';
|
|
45
49
|
export {
|
|
@@ -53,6 +57,16 @@ export {
|
|
|
53
57
|
type AgentListParams,
|
|
54
58
|
type AgentsCursorPagination,
|
|
55
59
|
} from './agents/agents';
|
|
60
|
+
export {
|
|
61
|
+
MemoryLayers,
|
|
62
|
+
type MemoryLayer,
|
|
63
|
+
type MemoryLayerInfo,
|
|
64
|
+
type MemoryLayerSpec,
|
|
65
|
+
type MemoryLayerCreateParams,
|
|
66
|
+
type MemoryLayerUpdateParams,
|
|
67
|
+
type MemoryLayerListParams,
|
|
68
|
+
type MemoryLayersCursorPagination,
|
|
69
|
+
} from './memory-layers/memory-layers';
|
|
56
70
|
export {
|
|
57
71
|
Models,
|
|
58
72
|
type Model,
|
|
@@ -67,6 +81,8 @@ export {
|
|
|
67
81
|
type AssistantToolCall,
|
|
68
82
|
type CallableTool,
|
|
69
83
|
type ContextWindowCompacted,
|
|
84
|
+
type MemoryRead,
|
|
85
|
+
type MemoryReference,
|
|
70
86
|
type Objective,
|
|
71
87
|
type ObjectiveContextWindow,
|
|
72
88
|
type ObjectiveContextWindowData,
|
|
@@ -126,6 +142,7 @@ export {
|
|
|
126
142
|
type ToolSetsCursorPagination,
|
|
127
143
|
type ToolSetEventsCursorPagination,
|
|
128
144
|
} from './tool-sets/tool-sets';
|
|
145
|
+
export { Uploads, type Upload, type UploadInfo, type UploadSpec, type UploadCreateParams } from './uploads';
|
|
129
146
|
export { Webhooks, type UnsafeUnwrapWebhookEvent, type UnwrapWebhookEvent } from './webhooks';
|
|
130
147
|
export {
|
|
131
148
|
WorkspaceSecrets,
|