@cadenya/cadenya 0.42.0 → 0.43.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 +9 -0
- package/README.md +4 -4
- package/client.d.mts +15 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -3
- package/client.d.ts.map +1 -1
- package/client.js +11 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -2
- package/client.mjs.map +1 -1
- package/package.json +4 -2
- package/resources/account.d.mts +38 -1
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +38 -1
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +6 -0
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +6 -0
- package/resources/account.mjs.map +1 -1
- package/resources/{agents/variations.d.ts → agent-variations.d.mts} +84 -47
- package/resources/agent-variations.d.mts.map +1 -0
- package/resources/{agents/variations.d.mts → agent-variations.d.ts} +84 -47
- package/resources/agent-variations.d.ts.map +1 -0
- package/resources/{agents/variations.js → agent-variations.js} +29 -8
- package/resources/agent-variations.js.map +1 -0
- package/resources/{agents/variations.mjs → agent-variations.mjs} +27 -6
- package/resources/agent-variations.mjs.map +1 -0
- package/resources/agents/agents.d.mts +2 -11
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +2 -11
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +0 -4
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +0 -4
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.mts +0 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +0 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +1 -3
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +0 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- 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 +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +6 -6
- package/resources/objectives/feedback.d.ts +6 -6
- package/resources/objectives/objectives.d.mts +3 -3
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +3 -3
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/tasks.d.mts +6 -6
- package/resources/objectives/tasks.d.ts +6 -6
- package/resources/objectives/tools.d.mts +6 -6
- package/resources/objectives/tools.d.ts +6 -6
- package/resources/shared.d.mts +13 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +13 -7
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhooks.d.mts +116 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +116 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +23 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +19 -0
- package/resources/webhooks.mjs.map +1 -0
- package/src/client.ts +78 -1
- package/src/resources/account.ts +44 -0
- package/src/resources/{agents/variations.ts → agent-variations.ts} +130 -61
- package/src/resources/agents/agents.ts +2 -54
- package/src/resources/agents/index.ts +0 -21
- package/src/resources/index.ts +32 -1
- package/src/resources/objectives/feedback.ts +6 -6
- package/src/resources/objectives/objectives.ts +3 -3
- package/src/resources/objectives/tasks.ts +6 -6
- package/src/resources/objectives/tools.ts +6 -6
- package/src/resources/shared.ts +14 -7
- package/src/resources/webhooks.ts +156 -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/resources/agents/variations.d.mts.map +0 -1
- package/resources/agents/variations.d.ts.map +0 -1
- package/resources/agents/variations.js.map +0 -1
- package/resources/agents/variations.mjs.map +0 -1
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import * as AccountAPI from "
|
|
3
|
-
import * as Shared from "
|
|
4
|
-
import { APIPromise } from "
|
|
5
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
7
|
-
export declare class
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as AccountAPI from "./account.js";
|
|
3
|
+
import * as Shared from "./shared.js";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
7
|
+
export declare class AgentVariations extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new variation for an agent
|
|
10
10
|
*/
|
|
11
|
-
create(agentID: string, body:
|
|
11
|
+
create(agentID: string, body: AgentVariationCreateParams, options?: RequestOptions): APIPromise<AgentVariation>;
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves a variation by ID from an agent
|
|
14
14
|
*/
|
|
15
|
-
retrieve(id: string, params:
|
|
15
|
+
retrieve(id: string, params: AgentVariationRetrieveParams, options?: RequestOptions): APIPromise<AgentVariation>;
|
|
16
16
|
/**
|
|
17
17
|
* Updates a variation for an agent
|
|
18
18
|
*/
|
|
19
|
-
update(id: string, params:
|
|
19
|
+
update(id: string, params: AgentVariationUpdateParams, options?: RequestOptions): APIPromise<AgentVariation>;
|
|
20
20
|
/**
|
|
21
21
|
* Lists all variations for an agent
|
|
22
22
|
*/
|
|
23
|
-
list(agentID: string, query?:
|
|
23
|
+
list(agentID: string, query?: AgentVariationListParams | null | undefined, options?: RequestOptions): PagePromise<AgentVariationsCursorPagination, AgentVariation>;
|
|
24
24
|
/**
|
|
25
25
|
* Deletes a variation from an agent
|
|
26
26
|
*/
|
|
27
|
-
delete(id: string, params:
|
|
27
|
+
delete(id: string, params: AgentVariationDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Assigns a tool, tool set, or sub-agent to a variation. Exactly one target ID
|
|
30
|
+
* must be set.
|
|
31
|
+
*/
|
|
32
|
+
addAssignment(agentVariationID: string, body: AgentVariationAddAssignmentParams, options?: RequestOptions): APIPromise<VariationAssignment>;
|
|
33
|
+
/**
|
|
34
|
+
* Detaches an assignment from a variation, identified by the assignment ID
|
|
35
|
+
* returned when it was added.
|
|
36
|
+
*/
|
|
37
|
+
removeAssignment(id: string, params: AgentVariationRemoveAssignmentParams, options?: RequestOptions): APIPromise<void>;
|
|
28
38
|
}
|
|
29
39
|
export type AgentVariationsCursorPagination = CursorPagination<AgentVariation>;
|
|
30
40
|
/**
|
|
@@ -48,6 +58,12 @@ export interface AgentVariation {
|
|
|
48
58
|
* AgentVariationInfo provides read-only summary information about a variation
|
|
49
59
|
*/
|
|
50
60
|
export interface AgentVariationInfo {
|
|
61
|
+
/**
|
|
62
|
+
* All tools, tool sets, and sub-agents assigned to this variation. Populated on
|
|
63
|
+
* reads so clients can render a variation's full assignment list without calling
|
|
64
|
+
* the add/remove endpoints just to enumerate.
|
|
65
|
+
*/
|
|
66
|
+
assignments?: Array<VariationAssignment>;
|
|
51
67
|
/**
|
|
52
68
|
* Profile represents a human user at the account level. Profiles are
|
|
53
69
|
* account-scoped resources that can be associated with multiple workspaces through
|
|
@@ -84,10 +100,6 @@ export interface AgentVariationInfo {
|
|
|
84
100
|
* AgentVariationSpec defines the operational configuration for a variation
|
|
85
101
|
*/
|
|
86
102
|
export interface AgentVariationSpec {
|
|
87
|
-
/**
|
|
88
|
-
* Tools assigned to this variation
|
|
89
|
-
*/
|
|
90
|
-
agentTools?: Array<AgentVariationSpecAgentTool>;
|
|
91
103
|
/**
|
|
92
104
|
* CompactionConfig defines how context window compaction behaves for objectives
|
|
93
105
|
* using this variation.
|
|
@@ -134,23 +146,6 @@ export interface AgentVariationSpec {
|
|
|
134
146
|
*/
|
|
135
147
|
weight?: number;
|
|
136
148
|
}
|
|
137
|
-
export interface AgentVariationSpecAgentTool {
|
|
138
|
-
agentId?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
141
|
-
*/
|
|
142
|
-
agentMetadata?: Shared.ResourceMetadata;
|
|
143
|
-
toolId?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
146
|
-
*/
|
|
147
|
-
toolMetadata?: Shared.ResourceMetadata;
|
|
148
|
-
toolSetId?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
151
|
-
*/
|
|
152
|
-
toolSetMetadata?: Shared.ResourceMetadata;
|
|
153
|
-
}
|
|
154
149
|
/**
|
|
155
150
|
* CompactionConfig defines how context window compaction behaves for objectives
|
|
156
151
|
* using this variation.
|
|
@@ -224,12 +219,6 @@ export interface CompactionConfigSummarizationStrategy {
|
|
|
224
219
|
* variable names, and technical decisions."
|
|
225
220
|
*/
|
|
226
221
|
instructions?: string;
|
|
227
|
-
/**
|
|
228
|
-
* Minimum number of recent message turns to always preserve during compaction.
|
|
229
|
-
* These turns are never summarized, ensuring recent context stays intact. Default:
|
|
230
|
-
* 4
|
|
231
|
-
*/
|
|
232
|
-
minPreserveTurns?: number;
|
|
233
222
|
}
|
|
234
223
|
/**
|
|
235
224
|
* ToolResultClearingStrategy configures clearing of older tool result content.
|
|
@@ -261,7 +250,47 @@ export interface ToolSelectionAutoDiscovery {
|
|
|
261
250
|
hints?: Array<string>;
|
|
262
251
|
maxTools?: number;
|
|
263
252
|
}
|
|
264
|
-
|
|
253
|
+
/**
|
|
254
|
+
* VariationAssignment is a read-only reference to a single tool, tool set, or
|
|
255
|
+
* sub-agent attached to a variation. Clients read the full set of assignments via
|
|
256
|
+
* `AgentVariationInfo.assignments`; mutations go through the dedicated add/remove
|
|
257
|
+
* assignment endpoints under /v1/agent_variations/{id}/assignments.
|
|
258
|
+
*
|
|
259
|
+
* The `id` identifies the assignment row itself (not the referenced resource) and
|
|
260
|
+
* is the handle used to remove the assignment. It is returned by the add endpoint
|
|
261
|
+
* and present on every entry in AgentVariationInfo.assignments.
|
|
262
|
+
*/
|
|
263
|
+
export interface VariationAssignment {
|
|
264
|
+
id?: string;
|
|
265
|
+
/**
|
|
266
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
267
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
268
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
269
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
270
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
271
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
272
|
+
*/
|
|
273
|
+
agent?: Shared.BareMetadata;
|
|
274
|
+
/**
|
|
275
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
276
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
277
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
278
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
279
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
280
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
281
|
+
*/
|
|
282
|
+
tool?: Shared.BareMetadata;
|
|
283
|
+
/**
|
|
284
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
285
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
286
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
287
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
288
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
289
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
290
|
+
*/
|
|
291
|
+
toolSet?: Shared.BareMetadata;
|
|
292
|
+
}
|
|
293
|
+
export interface AgentVariationCreateParams {
|
|
265
294
|
/**
|
|
266
295
|
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
267
296
|
* workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
|
|
@@ -273,13 +302,13 @@ export interface VariationCreateParams {
|
|
|
273
302
|
*/
|
|
274
303
|
spec: AgentVariationSpec;
|
|
275
304
|
}
|
|
276
|
-
export interface
|
|
305
|
+
export interface AgentVariationRetrieveParams {
|
|
277
306
|
/**
|
|
278
307
|
* Agent ID (from path)
|
|
279
308
|
*/
|
|
280
309
|
agentId: string;
|
|
281
310
|
}
|
|
282
|
-
export interface
|
|
311
|
+
export interface AgentVariationUpdateParams {
|
|
283
312
|
/**
|
|
284
313
|
* Path param: Agent ID (from path)
|
|
285
314
|
*/
|
|
@@ -301,7 +330,7 @@ export interface VariationUpdateParams {
|
|
|
301
330
|
*/
|
|
302
331
|
updateMask?: string;
|
|
303
332
|
}
|
|
304
|
-
export interface
|
|
333
|
+
export interface AgentVariationListParams extends CursorPaginationParams {
|
|
305
334
|
/**
|
|
306
335
|
* When set to true you may use more of your alloted API rate-limit
|
|
307
336
|
*/
|
|
@@ -311,13 +340,21 @@ export interface VariationListParams extends CursorPaginationParams {
|
|
|
311
340
|
*/
|
|
312
341
|
sortOrder?: string;
|
|
313
342
|
}
|
|
314
|
-
export interface
|
|
343
|
+
export interface AgentVariationDeleteParams {
|
|
315
344
|
/**
|
|
316
345
|
* Agent ID (from path)
|
|
317
346
|
*/
|
|
318
347
|
agentId: string;
|
|
319
348
|
}
|
|
320
|
-
export
|
|
321
|
-
|
|
349
|
+
export interface AgentVariationAddAssignmentParams {
|
|
350
|
+
subAgentId?: string;
|
|
351
|
+
toolId?: string;
|
|
352
|
+
toolSetId?: string;
|
|
353
|
+
}
|
|
354
|
+
export interface AgentVariationRemoveAssignmentParams {
|
|
355
|
+
agentVariationId: string;
|
|
356
|
+
}
|
|
357
|
+
export declare namespace AgentVariations {
|
|
358
|
+
export { type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type VariationAssignment as VariationAssignment, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type AgentVariationCreateParams as AgentVariationCreateParams, type AgentVariationRetrieveParams as AgentVariationRetrieveParams, type AgentVariationUpdateParams as AgentVariationUpdateParams, type AgentVariationListParams as AgentVariationListParams, type AgentVariationDeleteParams as AgentVariationDeleteParams, type AgentVariationAddAssignmentParams as AgentVariationAddAssignmentParams, type AgentVariationRemoveAssignmentParams as AgentVariationRemoveAssignmentParams, };
|
|
322
359
|
}
|
|
323
|
-
//# sourceMappingURL=variations.d.
|
|
360
|
+
//# sourceMappingURL=agent-variations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-variations.d.ts","sourceRoot":"","sources":["../src/resources/agent-variations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,cAAc,CAAC;IAI7B;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,4BAA4B,EACp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A0B,IAAI,0BAA0B,EAC7D,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,oCAAoC,IAAI,oCAAoC,GAClF,CAAC;CACH"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const pagination_1 = require("
|
|
7
|
-
const headers_1 = require("
|
|
8
|
-
const path_1 = require("
|
|
9
|
-
class
|
|
4
|
+
exports.AgentVariations = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class AgentVariations extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new variation for an agent
|
|
12
12
|
*/
|
|
@@ -46,6 +46,27 @@ class Variations extends resource_1.APIResource {
|
|
|
46
46
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Assigns a tool, tool set, or sub-agent to a variation. Exactly one target ID
|
|
51
|
+
* must be set.
|
|
52
|
+
*/
|
|
53
|
+
addAssignment(agentVariationID, body, options) {
|
|
54
|
+
return this._client.post((0, path_1.path) `/v1/agent_variations/${agentVariationID}/assignments`, {
|
|
55
|
+
body,
|
|
56
|
+
...options,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Detaches an assignment from a variation, identified by the assignment ID
|
|
61
|
+
* returned when it was added.
|
|
62
|
+
*/
|
|
63
|
+
removeAssignment(id, params, options) {
|
|
64
|
+
const { agentVariationId } = params;
|
|
65
|
+
return this._client.delete((0, path_1.path) `/v1/agent_variations/${agentVariationId}/assignments/${id}`, {
|
|
66
|
+
...options,
|
|
67
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
49
70
|
}
|
|
50
|
-
exports.
|
|
51
|
-
//# sourceMappingURL=variations.js.map
|
|
71
|
+
exports.AgentVariations = AgentVariations;
|
|
72
|
+
//# sourceMappingURL=agent-variations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-variations.js","sourceRoot":"","sources":["../src/resources/agent-variations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,eAAe,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,C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}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { CursorPagination } from "
|
|
4
|
-
import { buildHeaders } from "
|
|
5
|
-
import { path } from "
|
|
6
|
-
export class
|
|
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
|
+
export class AgentVariations extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new variation for an agent
|
|
9
9
|
*/
|
|
@@ -43,5 +43,26 @@ export class Variations extends APIResource {
|
|
|
43
43
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Assigns a tool, tool set, or sub-agent to a variation. Exactly one target ID
|
|
48
|
+
* must be set.
|
|
49
|
+
*/
|
|
50
|
+
addAssignment(agentVariationID, body, options) {
|
|
51
|
+
return this._client.post(path `/v1/agent_variations/${agentVariationID}/assignments`, {
|
|
52
|
+
body,
|
|
53
|
+
...options,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Detaches an assignment from a variation, identified by the assignment ID
|
|
58
|
+
* returned when it was added.
|
|
59
|
+
*/
|
|
60
|
+
removeAssignment(id, params, options) {
|
|
61
|
+
const { agentVariationId } = params;
|
|
62
|
+
return this._client.delete(path `/v1/agent_variations/${agentVariationId}/assignments/${id}`, {
|
|
63
|
+
...options,
|
|
64
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
46
67
|
}
|
|
47
|
-
//# sourceMappingURL=variations.mjs.map
|
|
68
|
+
//# sourceMappingURL=agent-variations.mjs.map
|
|
@@ -0,0 +1 @@
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AU,EAAE,MAAkC,EAAE,OAAwB;QAC7E,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,OAAO,eAAe,EAAE,EAAE,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,aAAa,CACX,gBAAwB,EACxB,IAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,gBAAgB,cAAc,EAAE;YACnF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,EAAU,EACV,MAA4C,EAC5C,OAAwB;QAExB,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,gBAAgB,gBAAgB,EAAE,EAAE,EAAE;YAC3F,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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as AccountAPI from "../account.mjs";
|
|
3
|
+
import * as AgentVariationsAPI from "../agent-variations.mjs";
|
|
3
4
|
import * as Shared from "../shared.mjs";
|
|
4
|
-
import * as VariationsAPI from "./variations.mjs";
|
|
5
|
-
import { AgentVariation, AgentVariationInfo, AgentVariationSpec, AgentVariationSpecAgentTool, AgentVariationSpecCompactionConfig, AgentVariationSpecConstraints, AgentVariationSpecModelConfig, AgentVariationSpecToolSelection, AgentVariationsCursorPagination, CompactionConfigSummarizationStrategy, CompactionConfigToolResultClearingStrategy, ToolSelectionAssignedTools, ToolSelectionAutoDiscovery, VariationCreateParams, VariationDeleteParams, VariationListParams, VariationRetrieveParams, VariationUpdateParams, Variations } from "./variations.mjs";
|
|
6
5
|
import * as WebhookDeliveriesAPI from "./webhook-deliveries.mjs";
|
|
7
6
|
import { WebhookDeliveries, WebhookDeliveriesCursorPagination, WebhookDelivery, WebhookDeliveryData, WebhookDeliveryListParams } from "./webhook-deliveries.mjs";
|
|
8
7
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
@@ -17,7 +16,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
17
16
|
* Scope: Workspace-level operations
|
|
18
17
|
*/
|
|
19
18
|
export declare class Agents extends APIResource {
|
|
20
|
-
variations: VariationsAPI.Variations;
|
|
21
19
|
webhookDeliveries: WebhookDeliveriesAPI.WebhookDeliveries;
|
|
22
20
|
/**
|
|
23
21
|
* Creates a new agent in the workspace
|
|
@@ -89,12 +87,6 @@ export interface AgentSpec {
|
|
|
89
87
|
* Description of the agent's purpose
|
|
90
88
|
*/
|
|
91
89
|
description?: string;
|
|
92
|
-
/**
|
|
93
|
-
* The generated secret that will sign all webhooks that are sent to your
|
|
94
|
-
* configured Webhook URL. Formatted as "wh_asdf1234" per the
|
|
95
|
-
* https://www.standardwebhooks.com/ format.
|
|
96
|
-
*/
|
|
97
|
-
webhookEventsHmacSecret?: string;
|
|
98
90
|
/**
|
|
99
91
|
* The URL that Cadenya will send events for any objective assigned to the agent.
|
|
100
92
|
*/
|
|
@@ -134,7 +126,7 @@ export declare namespace AgentCreateParams {
|
|
|
134
126
|
/**
|
|
135
127
|
* AgentVariationSpec defines the operational configuration for a variation
|
|
136
128
|
*/
|
|
137
|
-
spec:
|
|
129
|
+
spec: AgentVariationsAPI.AgentVariationSpec;
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
export interface AgentUpdateParams {
|
|
@@ -169,7 +161,6 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
169
161
|
}
|
|
170
162
|
export declare namespace Agents {
|
|
171
163
|
export { type Agent as Agent, type AgentInfo as AgentInfo, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
172
|
-
export { Variations as Variations, type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
173
164
|
export { WebhookDeliveries as WebhookDeliveries, type WebhookDelivery as WebhookDelivery, type WebhookDeliveryData as WebhookDeliveryData, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, };
|
|
174
165
|
}
|
|
175
166
|
//# sourceMappingURL=agents.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf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EjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;IAC7D;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as AccountAPI from "../account.js";
|
|
3
|
+
import * as AgentVariationsAPI from "../agent-variations.js";
|
|
3
4
|
import * as Shared from "../shared.js";
|
|
4
|
-
import * as VariationsAPI from "./variations.js";
|
|
5
|
-
import { AgentVariation, AgentVariationInfo, AgentVariationSpec, AgentVariationSpecAgentTool, AgentVariationSpecCompactionConfig, AgentVariationSpecConstraints, AgentVariationSpecModelConfig, AgentVariationSpecToolSelection, AgentVariationsCursorPagination, CompactionConfigSummarizationStrategy, CompactionConfigToolResultClearingStrategy, ToolSelectionAssignedTools, ToolSelectionAutoDiscovery, VariationCreateParams, VariationDeleteParams, VariationListParams, VariationRetrieveParams, VariationUpdateParams, Variations } from "./variations.js";
|
|
6
5
|
import * as WebhookDeliveriesAPI from "./webhook-deliveries.js";
|
|
7
6
|
import { WebhookDeliveries, WebhookDeliveriesCursorPagination, WebhookDelivery, WebhookDeliveryData, WebhookDeliveryListParams } from "./webhook-deliveries.js";
|
|
8
7
|
import { APIPromise } from "../../core/api-promise.js";
|
|
@@ -17,7 +16,6 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
17
16
|
* Scope: Workspace-level operations
|
|
18
17
|
*/
|
|
19
18
|
export declare class Agents extends APIResource {
|
|
20
|
-
variations: VariationsAPI.Variations;
|
|
21
19
|
webhookDeliveries: WebhookDeliveriesAPI.WebhookDeliveries;
|
|
22
20
|
/**
|
|
23
21
|
* Creates a new agent in the workspace
|
|
@@ -89,12 +87,6 @@ export interface AgentSpec {
|
|
|
89
87
|
* Description of the agent's purpose
|
|
90
88
|
*/
|
|
91
89
|
description?: string;
|
|
92
|
-
/**
|
|
93
|
-
* The generated secret that will sign all webhooks that are sent to your
|
|
94
|
-
* configured Webhook URL. Formatted as "wh_asdf1234" per the
|
|
95
|
-
* https://www.standardwebhooks.com/ format.
|
|
96
|
-
*/
|
|
97
|
-
webhookEventsHmacSecret?: string;
|
|
98
90
|
/**
|
|
99
91
|
* The URL that Cadenya will send events for any objective assigned to the agent.
|
|
100
92
|
*/
|
|
@@ -134,7 +126,7 @@ export declare namespace AgentCreateParams {
|
|
|
134
126
|
/**
|
|
135
127
|
* AgentVariationSpec defines the operational configuration for a variation
|
|
136
128
|
*/
|
|
137
|
-
spec:
|
|
129
|
+
spec: AgentVariationsAPI.AgentVariationSpec;
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
export interface AgentUpdateParams {
|
|
@@ -169,7 +161,6 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
169
161
|
}
|
|
170
162
|
export declare namespace Agents {
|
|
171
163
|
export { type Agent as Agent, type AgentInfo as AgentInfo, type AgentSpec as AgentSpec, type Page as Page, type AgentsCursorPagination as AgentsCursorPagination, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
172
|
-
export { Variations as Variations, type AgentVariation as AgentVariation, type AgentVariationInfo as AgentVariationInfo, type AgentVariationSpec as AgentVariationSpec, type AgentVariationSpecAgentTool as AgentVariationSpecAgentTool, type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints as AgentVariationSpecConstraints, type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection, type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy, type ToolSelectionAssignedTools as ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery, type AgentVariationsCursorPagination as AgentVariationsCursorPagination, type VariationCreateParams as VariationCreateParams, type VariationRetrieveParams as VariationRetrieveParams, type VariationUpdateParams as VariationUpdateParams, type VariationListParams as VariationListParams, type VariationDeleteParams as VariationDeleteParams, };
|
|
173
164
|
export { WebhookDeliveries as WebhookDeliveries, type WebhookDelivery as WebhookDelivery, type WebhookDeliveryData as WebhookDeliveryData, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, };
|
|
174
165
|
}
|
|
175
166
|
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,kBAAkB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CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Agents = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const VariationsAPI = tslib_1.__importStar(require("./variations.js"));
|
|
8
|
-
const variations_1 = require("./variations.js");
|
|
9
7
|
const WebhookDeliveriesAPI = tslib_1.__importStar(require("./webhook-deliveries.js"));
|
|
10
8
|
const webhook_deliveries_1 = require("./webhook-deliveries.js");
|
|
11
9
|
const pagination_1 = require("../../core/pagination.js");
|
|
@@ -22,7 +20,6 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
22
20
|
class Agents extends resource_1.APIResource {
|
|
23
21
|
constructor() {
|
|
24
22
|
super(...arguments);
|
|
25
|
-
this.variations = new VariationsAPI.Variations(this._client);
|
|
26
23
|
this.webhookDeliveries = new WebhookDeliveriesAPI.WebhookDeliveries(this._client);
|
|
27
24
|
}
|
|
28
25
|
/**
|
|
@@ -60,6 +57,5 @@ class Agents extends resource_1.APIResource {
|
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
exports.Agents = Agents;
|
|
63
|
-
Agents.Variations = variations_1.Variations;
|
|
64
60
|
Agents.WebhookDeliveries = webhook_deliveries_1.WebhookDeliveries;
|
|
65
61
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAIlD,sFAA6D;AAC7D,gEAM8B;AAE9B,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;GAOG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,sBAAiB,GAA2C,IAAI,oBAAoB,CAAC,iBAAiB,CACpG,IAAI,CAAC,OAAO,CACb,CAAC;IA0CJ,CAAC;IAxCC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,6BAAuB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE;YACjD,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;AA7CD,wBA6CC;AAyJD,MAAM,CAAC,iBAAiB,GAAG,sCAAiB,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as VariationsAPI from "./variations.mjs";
|
|
4
|
-
import { Variations, } from "./variations.mjs";
|
|
5
3
|
import * as WebhookDeliveriesAPI from "./webhook-deliveries.mjs";
|
|
6
4
|
import { WebhookDeliveries, } from "./webhook-deliveries.mjs";
|
|
7
5
|
import { CursorPagination } from "../../core/pagination.mjs";
|
|
@@ -18,7 +16,6 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
18
16
|
export class Agents extends APIResource {
|
|
19
17
|
constructor() {
|
|
20
18
|
super(...arguments);
|
|
21
|
-
this.variations = new VariationsAPI.Variations(this._client);
|
|
22
19
|
this.webhookDeliveries = new WebhookDeliveriesAPI.WebhookDeliveries(this._client);
|
|
23
20
|
}
|
|
24
21
|
/**
|
|
@@ -55,6 +52,5 @@ export class Agents extends APIResource {
|
|
|
55
52
|
});
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
|
-
Agents.Variations = Variations;
|
|
59
55
|
Agents.WebhookDeliveries = WebhookDeliveries;
|
|
60
56
|
//# sourceMappingURL=agents.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,oBAAoB;OACzB,EACL,iBAAiB,GAKlB;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;;;;;;GAOG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,sBAAiB,GAA2C,IAAI,oBAAoB,CAAC,iBAAiB,CACpG,IAAI,CAAC,OAAO,CACb,CAAC;IA0CJ,CAAC;IAxCC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,gBAAuB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE;YACjD,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;AAyJD,MAAM,CAAC,iBAAiB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { Agents, type Agent, type AgentInfo, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents.mjs";
|
|
2
|
-
export { Variations, type AgentVariation, type AgentVariationInfo, type AgentVariationSpec, type AgentVariationSpecAgentTool, type AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints, type AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection, type CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy, type ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery, type VariationCreateParams, type VariationRetrieveParams, type VariationUpdateParams, type VariationListParams, type VariationDeleteParams, type AgentVariationsCursorPagination, } from "./variations.mjs";
|
|
3
2
|
export { WebhookDeliveries, type WebhookDelivery, type WebhookDeliveryData, type WebhookDeliveryListParams, type WebhookDeliveriesCursorPagination, } from "./webhook-deliveries.mjs";
|
|
4
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { Agents, type Agent, type AgentInfo, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents.js";
|
|
2
|
-
export { Variations, type AgentVariation, type AgentVariationInfo, type AgentVariationSpec, type AgentVariationSpecAgentTool, type AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints, type AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection, type CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy, type ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery, type VariationCreateParams, type VariationRetrieveParams, type VariationUpdateParams, type VariationListParams, type VariationDeleteParams, type AgentVariationsCursorPagination, } from "./variations.js";
|
|
3
2
|
export { WebhookDeliveries, type WebhookDelivery, type WebhookDeliveryData, type WebhookDeliveryListParams, type WebhookDeliveriesCursorPagination, } from "./webhook-deliveries.js";
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B;OACM,EACL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WebhookDeliveries = exports.
|
|
4
|
+
exports.WebhookDeliveries = exports.Agents = void 0;
|
|
5
5
|
var agents_1 = require("./agents.js");
|
|
6
6
|
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
-
var variations_1 = require("./variations.js");
|
|
8
|
-
Object.defineProperty(exports, "Variations", { enumerable: true, get: function () { return variations_1.Variations; } });
|
|
9
7
|
var webhook_deliveries_1 = require("./webhook-deliveries.js");
|
|
10
8
|
Object.defineProperty(exports, "WebhookDeliveries", { enumerable: true, get: function () { return webhook_deliveries_1.WebhookDeliveries; } });
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,8DAM8B;AAL5B,uHAAA,iBAAiB,OAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Agents, } from "./agents.mjs";
|
|
3
|
-
export { Variations, } from "./variations.mjs";
|
|
4
3
|
export { WebhookDeliveries, } from "./webhook-deliveries.mjs";
|
|
5
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GASP;OACM,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GASP;OACM,EACL,iBAAiB,GAKlB"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
2
|
export { APIKeys, type APIKey, type APIKeyInfo, type APIKeySpec, type APIKeyCreateParams, type APIKeyUpdateParams, type APIKeyListParams, type APIKeysCursorPagination, } from "./api-keys.mjs";
|
|
3
|
-
export { AccountResource, type Account, type AccountSpec, type Profile, type ProfileSpec } from "./account.mjs";
|
|
3
|
+
export { AccountResource, type Account, type AccountSpec, type Profile, type ProfileSpec, type RotateWebhookSigningKeyResponse, } from "./account.mjs";
|
|
4
|
+
export { AgentVariations, type AgentVariation, type AgentVariationInfo, type AgentVariationSpec, type AgentVariationSpecCompactionConfig, type AgentVariationSpecConstraints, type AgentVariationSpecModelConfig, type AgentVariationSpecToolSelection, type CompactionConfigSummarizationStrategy, type CompactionConfigToolResultClearingStrategy, type ToolSelectionAssignedTools, type ToolSelectionAutoDiscovery, type VariationAssignment, type AgentVariationCreateParams, type AgentVariationRetrieveParams, type AgentVariationUpdateParams, type AgentVariationListParams, type AgentVariationDeleteParams, type AgentVariationAddAssignmentParams, type AgentVariationRemoveAssignmentParams, type AgentVariationsCursorPagination, } from "./agent-variations.mjs";
|
|
4
5
|
export { Agents, type Agent, type AgentInfo, type AgentSpec, type Page, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentsCursorPagination, } from "./agents/agents.mjs";
|
|
5
6
|
export { Models, type Model, type ModelSpec, type ModelListParams, type ModelSetStatusParams, type ModelsCursorPagination, } from "./models.mjs";
|
|
6
7
|
export { Objectives, type AssistantMessage, type AssistantToolCall, type CallableTool, type ContextWindowCompacted, type Objective, type ObjectiveContextWindow, type ObjectiveContextWindowData, type ObjectiveData, type ObjectiveDataSecret, type ObjectiveError, type ObjectiveEventData, type ObjectiveEventInfo, type ObjectiveEventWebhookData, type ObjectiveInfo, type ObjectiveStatus, type SubObjectiveCreated, type ToolApprovalRequested, type ToolApproved, type ToolCalled, type ToolDenied, type ToolError, type ToolResult, type UserMessage, type ObjectiveCompactResponse, type ObjectiveContinueResponse, type ObjectiveListEventsResponse, type ObjectiveCreateParams, type ObjectiveListParams, type ObjectiveCancelParams, type ObjectiveCompactParams, type ObjectiveContinueParams, type ObjectiveListContextWindowsParams, type ObjectiveListEventsParams, type ObjectivesCursorPagination, type ObjectiveContextWindowsCursorPagination, type ObjectiveListEventsResponsesCursorPagination, } from "./objectives/objectives.mjs";
|
|
7
8
|
export { Search, type SearchSearchToolsOrToolSetsResponse, type SearchSearchToolsOrToolSetsParams, } from "./search.mjs";
|
|
8
9
|
export { ToolSets, type McpToolFilter, type SyncCompleted, type SyncFailed, type SyncStarted, type ToolSet, type ToolSetAdapter, type ToolSetAdapterHTTP, type ToolSetAdapterMcp, type ToolSetEvent, type ToolSetEventData, type ToolSetInfo, type ToolSetSpec, type ToolSetCreateParams, type ToolSetUpdateParams, type ToolSetListParams, type ToolSetListEventsParams, type ToolSetsCursorPagination, type ToolSetEventsCursorPagination, } from "./tool-sets/tool-sets.mjs";
|
|
10
|
+
export { Webhooks, type UnsafeUnwrapWebhookEvent, type UnwrapWebhookEvent } from "./webhooks.mjs";
|
|
9
11
|
export { WorkspaceSecrets, type WorkspaceSecret, type WorkspaceSecretInfo, type WorkspaceSecretSpec, type WorkspaceSecretCreateParams, type WorkspaceSecretUpdateParams, type WorkspaceSecretListParams, type WorkspaceSecretsCursorPagination, } from "./workspace-secrets.mjs";
|
|
10
12
|
export { Workspaces, type Workspace, type WorkspaceSpec, type WorkspaceListParams, type WorkspacesCursorPagination, } from "./workspaces.mjs";
|
|
11
13
|
//# sourceMappingURL=index.d.mts.map
|