@cadenya/cadenya 0.50.0 → 0.52.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/package.json +1 -1
- package/resources/agents/agents.d.mts +6 -2
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +6 -2
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +4 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +4 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +50 -0
- package/resources/agents/feedback.d.mts.map +1 -0
- package/resources/agents/feedback.d.ts +50 -0
- package/resources/agents/feedback.d.ts.map +1 -0
- package/resources/agents/feedback.js +27 -0
- package/resources/agents/feedback.js.map +1 -0
- package/resources/agents/feedback.mjs +23 -0
- package/resources/agents/feedback.mjs.map +1 -0
- package/resources/agents/index.d.mts +2 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +2 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +3 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +1 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/variations.d.mts +53 -31
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +53 -31
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/memory-layers/entries.d.mts +10 -1
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +10 -1
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/objectives/feedback.d.mts +18 -0
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +18 -0
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/tool-sets/tools.d.mts +10 -1
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +10 -1
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/src/resources/agents/agents.ts +8 -0
- package/src/resources/agents/feedback.ts +73 -0
- package/src/resources/agents/index.ts +2 -0
- package/src/resources/agents/variations.ts +56 -33
- package/src/resources/memory-layers/entries.ts +10 -1
- package/src/resources/objectives/feedback.ts +20 -0
- package/src/resources/tool-sets/tools.ts +10 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/tool-sets/tools.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;;;;;;;;;;GAUG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI7F;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAK5F;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAKxF;;OAEG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,IAAI,CAAC;IAO3C;;OAEG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,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AccountAPI from '../account';
|
|
5
5
|
import * as Shared from '../shared';
|
|
6
|
+
import * as FeedbackAPI from './feedback';
|
|
7
|
+
import { Feedback, FeedbackListParams } from './feedback';
|
|
6
8
|
import * as VariationsAPI from './variations';
|
|
7
9
|
import {
|
|
8
10
|
AgentVariation,
|
|
@@ -11,6 +13,7 @@ import {
|
|
|
11
13
|
AgentVariationSpecCompactionConfig,
|
|
12
14
|
AgentVariationSpecConstraints,
|
|
13
15
|
AgentVariationSpecModelConfig,
|
|
16
|
+
AgentVariationSpecProgressiveDiscovery,
|
|
14
17
|
AgentVariationsCursorPagination,
|
|
15
18
|
CompactionConfigSummarizationStrategy,
|
|
16
19
|
CompactionConfigToolResultClearingStrategy,
|
|
@@ -51,6 +54,7 @@ import { path } from '../../internal/utils/path';
|
|
|
51
54
|
* Scope: Workspace-level operations
|
|
52
55
|
*/
|
|
53
56
|
export class Agents extends APIResource {
|
|
57
|
+
feedback: FeedbackAPI.Feedback = new FeedbackAPI.Feedback(this._client);
|
|
54
58
|
webhookDeliveries: WebhookDeliveriesAPI.WebhookDeliveries = new WebhookDeliveriesAPI.WebhookDeliveries(
|
|
55
59
|
this._client,
|
|
56
60
|
);
|
|
@@ -258,6 +262,7 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
258
262
|
sortOrder?: string;
|
|
259
263
|
}
|
|
260
264
|
|
|
265
|
+
Agents.Feedback = Feedback;
|
|
261
266
|
Agents.WebhookDeliveries = WebhookDeliveries;
|
|
262
267
|
Agents.Variations = Variations;
|
|
263
268
|
|
|
@@ -273,6 +278,8 @@ export declare namespace Agents {
|
|
|
273
278
|
type AgentListParams as AgentListParams,
|
|
274
279
|
};
|
|
275
280
|
|
|
281
|
+
export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };
|
|
282
|
+
|
|
276
283
|
export {
|
|
277
284
|
WebhookDeliveries as WebhookDeliveries,
|
|
278
285
|
type WebhookDelivery as WebhookDelivery,
|
|
@@ -289,6 +296,7 @@ export declare namespace Agents {
|
|
|
289
296
|
type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig,
|
|
290
297
|
type AgentVariationSpecConstraints as AgentVariationSpecConstraints,
|
|
291
298
|
type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig,
|
|
299
|
+
type AgentVariationSpecProgressiveDiscovery as AgentVariationSpecProgressiveDiscovery,
|
|
292
300
|
type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy,
|
|
293
301
|
type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy,
|
|
294
302
|
type VariationAssignment as VariationAssignment,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ObjectivesFeedbackAPI from '../objectives/feedback';
|
|
5
|
+
import { ObjectiveFeedbacksCursorPagination } from '../objectives/feedback';
|
|
6
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from '../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* AgentService manages AI agents at the WORKSPACE level.
|
|
12
|
+
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
13
|
+
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
14
|
+
*
|
|
15
|
+
* Authentication: Bearer token (JWT)
|
|
16
|
+
* Scope: Workspace-level operations
|
|
17
|
+
*/
|
|
18
|
+
export class Feedback extends APIResource {
|
|
19
|
+
/**
|
|
20
|
+
* Lists feedback submitted across all objectives belonging to an agent. Supports
|
|
21
|
+
* search by comment, sentiment filter, agent variation filter, and creation date
|
|
22
|
+
* range. Results are ordered by creation time, newest first.
|
|
23
|
+
*/
|
|
24
|
+
list(
|
|
25
|
+
agentID: string,
|
|
26
|
+
query: FeedbackListParams | null | undefined = {},
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): PagePromise<ObjectiveFeedbacksCursorPagination, ObjectivesFeedbackAPI.ObjectiveFeedback> {
|
|
29
|
+
return this._client.getAPIList(
|
|
30
|
+
path`/v1/agents/${agentID}/feedback`,
|
|
31
|
+
CursorPagination<ObjectivesFeedbackAPI.ObjectiveFeedback>,
|
|
32
|
+
{ query, ...options },
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface FeedbackListParams extends CursorPaginationParams {
|
|
38
|
+
/**
|
|
39
|
+
* Optional filter to limit results to feedback on objectives run by a single agent
|
|
40
|
+
* variation. Supports "external_id:" prefix for external IDs.
|
|
41
|
+
*/
|
|
42
|
+
agentVariationId?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Inclusive lower bound on feedback creation time.
|
|
46
|
+
*/
|
|
47
|
+
createdAfter?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Exclusive upper bound on feedback creation time.
|
|
51
|
+
*/
|
|
52
|
+
createdBefore?: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Free-text search applied to the feedback comment. Case-insensitive substring
|
|
56
|
+
* match.
|
|
57
|
+
*/
|
|
58
|
+
query?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Filter by sentiment. UNSPECIFIED returns feedback regardless of score.
|
|
62
|
+
*/
|
|
63
|
+
sentiment?:
|
|
64
|
+
| 'FEEDBACK_SENTIMENT_UNSPECIFIED'
|
|
65
|
+
| 'FEEDBACK_SENTIMENT_POSITIVE'
|
|
66
|
+
| 'FEEDBACK_SENTIMENT_NEGATIVE';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare namespace Feedback {
|
|
70
|
+
export { type FeedbackListParams as FeedbackListParams };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { type ObjectiveFeedbacksCursorPagination };
|
|
@@ -11,6 +11,7 @@ export {
|
|
|
11
11
|
type AgentListParams,
|
|
12
12
|
type AgentsCursorPagination,
|
|
13
13
|
} from './agents';
|
|
14
|
+
export { Feedback, type FeedbackListParams } from './feedback';
|
|
14
15
|
export {
|
|
15
16
|
Variations,
|
|
16
17
|
type AgentVariation,
|
|
@@ -19,6 +20,7 @@ export {
|
|
|
19
20
|
type AgentVariationSpecCompactionConfig,
|
|
20
21
|
type AgentVariationSpecConstraints,
|
|
21
22
|
type AgentVariationSpecModelConfig,
|
|
23
|
+
type AgentVariationSpecProgressiveDiscovery,
|
|
22
24
|
type CompactionConfigSummarizationStrategy,
|
|
23
25
|
type CompactionConfigToolResultClearingStrategy,
|
|
24
26
|
type VariationAssignment,
|
|
@@ -272,7 +272,7 @@ export interface AgentVariationSpec {
|
|
|
272
272
|
* tool search. These are used in conjunction with the context-aware tool search
|
|
273
273
|
* and can help select the best tools for the task.
|
|
274
274
|
*/
|
|
275
|
-
progressiveDiscovery?:
|
|
275
|
+
progressiveDiscovery?: AgentVariationSpecProgressiveDiscovery;
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* The system prompt for this variation
|
|
@@ -288,30 +288,6 @@ export interface AgentVariationSpec {
|
|
|
288
288
|
weight?: number;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
export namespace AgentVariationSpec {
|
|
292
|
-
/**
|
|
293
|
-
* ProgressiveDiscovery is used to indicate that the agent should automatically
|
|
294
|
-
* discover tools that are not explicitly assigned to it. Max tools is the maximum
|
|
295
|
-
* number of tools that can be discovered per search. Hints are optional hints for
|
|
296
|
-
* tool search. These are used in conjunction with the context-aware tool search
|
|
297
|
-
* and can help select the best tools for the task.
|
|
298
|
-
*/
|
|
299
|
-
export interface ProgressiveDiscovery {
|
|
300
|
-
hints?: Array<string>;
|
|
301
|
-
|
|
302
|
-
maxTools?: number;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Rerank Threshold is an optional value that instructs whether or not to run a
|
|
306
|
-
* search result through a embedding/reranker process which can improve performance
|
|
307
|
-
* and reduce context bloat when tools reach the configured threshold. If a tool
|
|
308
|
-
* match must exceed 0.8, for example, the tool very closely match the query the
|
|
309
|
-
* tool search performed.
|
|
310
|
-
*/
|
|
311
|
-
rerankThreshold?: number;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
291
|
/**
|
|
316
292
|
* CompactionConfig defines how context window compaction behaves for objectives
|
|
317
293
|
* using this variation.
|
|
@@ -365,6 +341,28 @@ export interface AgentVariationSpecModelConfig {
|
|
|
365
341
|
temperature?: number;
|
|
366
342
|
}
|
|
367
343
|
|
|
344
|
+
/**
|
|
345
|
+
* ProgressiveDiscovery is used to indicate that the agent should automatically
|
|
346
|
+
* discover tools that are not explicitly assigned to it. Max tools is the maximum
|
|
347
|
+
* number of tools that can be discovered per search. Hints are optional hints for
|
|
348
|
+
* tool search. These are used in conjunction with the context-aware tool search
|
|
349
|
+
* and can help select the best tools for the task.
|
|
350
|
+
*/
|
|
351
|
+
export interface AgentVariationSpecProgressiveDiscovery {
|
|
352
|
+
hints?: Array<string>;
|
|
353
|
+
|
|
354
|
+
maxTools?: number;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Rerank Threshold is an optional value that instructs whether or not to run a
|
|
358
|
+
* search result through a embedding/reranker process which can improve performance
|
|
359
|
+
* and reduce context bloat when tools reach the configured threshold. If a tool
|
|
360
|
+
* match must exceed 0.8, for example, the tool very closely match the query the
|
|
361
|
+
* tool search performed.
|
|
362
|
+
*/
|
|
363
|
+
rerankThreshold?: number;
|
|
364
|
+
}
|
|
365
|
+
|
|
368
366
|
/**
|
|
369
367
|
* SummarizationStrategy configures LLM-powered summarization of older conversation
|
|
370
368
|
* turns.
|
|
@@ -486,14 +484,16 @@ export interface VariationCreateParams {
|
|
|
486
484
|
|
|
487
485
|
export interface VariationRetrieveParams {
|
|
488
486
|
/**
|
|
489
|
-
* Agent ID (from path)
|
|
487
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
488
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
490
489
|
*/
|
|
491
490
|
agentId: string;
|
|
492
491
|
}
|
|
493
492
|
|
|
494
493
|
export interface VariationUpdateParams {
|
|
495
494
|
/**
|
|
496
|
-
* Path param: Agent ID (from path)
|
|
495
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
496
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
497
497
|
*/
|
|
498
498
|
agentId: string;
|
|
499
499
|
|
|
@@ -531,14 +531,16 @@ export interface VariationListParams extends CursorPaginationParams {
|
|
|
531
531
|
|
|
532
532
|
export interface VariationDeleteParams {
|
|
533
533
|
/**
|
|
534
|
-
* Agent ID (from path)
|
|
534
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
535
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
535
536
|
*/
|
|
536
537
|
agentId: string;
|
|
537
538
|
}
|
|
538
539
|
|
|
539
540
|
export interface VariationAddAssignmentParams {
|
|
540
541
|
/**
|
|
541
|
-
* Path param
|
|
542
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
543
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
542
544
|
*/
|
|
543
545
|
agentId: string;
|
|
544
546
|
|
|
@@ -560,12 +562,14 @@ export interface VariationAddAssignmentParams {
|
|
|
560
562
|
|
|
561
563
|
export interface VariationAddMemoryLayerParams {
|
|
562
564
|
/**
|
|
563
|
-
* Path param
|
|
565
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
566
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
564
567
|
*/
|
|
565
568
|
agentId: string;
|
|
566
569
|
|
|
567
570
|
/**
|
|
568
|
-
* Body param: Layer to attach. Accepts memlyr\_… or
|
|
571
|
+
* Body param: Layer to attach. Accepts canonical memlyr\_… form or
|
|
572
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
569
573
|
*/
|
|
570
574
|
memoryLayerId?: string;
|
|
571
575
|
|
|
@@ -577,25 +581,43 @@ export interface VariationAddMemoryLayerParams {
|
|
|
577
581
|
}
|
|
578
582
|
|
|
579
583
|
export interface VariationRemoveAssignmentParams {
|
|
584
|
+
/**
|
|
585
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
586
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
587
|
+
*/
|
|
580
588
|
agentId: string;
|
|
581
589
|
|
|
590
|
+
/**
|
|
591
|
+
* Variation ID (from path). Accepts canonical av\_… form or external_id:<value>
|
|
592
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
593
|
+
*/
|
|
582
594
|
variationId: string;
|
|
583
595
|
}
|
|
584
596
|
|
|
585
597
|
export interface VariationRemoveMemoryLayerParams {
|
|
598
|
+
/**
|
|
599
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
600
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
601
|
+
*/
|
|
586
602
|
agentId: string;
|
|
587
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Variation ID (from path). Accepts canonical av\_… form or external_id:<value>
|
|
606
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
607
|
+
*/
|
|
588
608
|
variationId: string;
|
|
589
609
|
}
|
|
590
610
|
|
|
591
611
|
export interface VariationUpdateMemoryLayerParams {
|
|
592
612
|
/**
|
|
593
|
-
* Path param
|
|
613
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
614
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
594
615
|
*/
|
|
595
616
|
agentId: string;
|
|
596
617
|
|
|
597
618
|
/**
|
|
598
|
-
* Path param
|
|
619
|
+
* Path param: Variation ID (from path). Accepts canonical av\_… form or
|
|
620
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
599
621
|
*/
|
|
600
622
|
variationId: string;
|
|
601
623
|
|
|
@@ -613,6 +635,7 @@ export declare namespace Variations {
|
|
|
613
635
|
type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig,
|
|
614
636
|
type AgentVariationSpecConstraints as AgentVariationSpecConstraints,
|
|
615
637
|
type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig,
|
|
638
|
+
type AgentVariationSpecProgressiveDiscovery as AgentVariationSpecProgressiveDiscovery,
|
|
616
639
|
type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy,
|
|
617
640
|
type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy,
|
|
618
641
|
type VariationAssignment as VariationAssignment,
|
|
@@ -244,12 +244,17 @@ export interface EntryCreateParams {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
export interface EntryRetrieveParams {
|
|
247
|
+
/**
|
|
248
|
+
* Memory layer ID (from path). Accepts canonical memlyr\_… form or
|
|
249
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
250
|
+
*/
|
|
247
251
|
memoryLayerId: string;
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
export interface EntryUpdateParams {
|
|
251
255
|
/**
|
|
252
|
-
* Path param
|
|
256
|
+
* Path param: Memory layer ID (from path). Accepts canonical memlyr\_… form or
|
|
257
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
253
258
|
*/
|
|
254
259
|
memoryLayerId: string;
|
|
255
260
|
|
|
@@ -294,6 +299,10 @@ export interface EntryListParams extends CursorPaginationParams {
|
|
|
294
299
|
}
|
|
295
300
|
|
|
296
301
|
export interface EntryDeleteParams {
|
|
302
|
+
/**
|
|
303
|
+
* Memory layer ID (from path). Accepts canonical memlyr\_… form or
|
|
304
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
305
|
+
*/
|
|
297
306
|
memoryLayerId: string;
|
|
298
307
|
}
|
|
299
308
|
|
|
@@ -83,6 +83,26 @@ export interface ObjectiveFeedbackData {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export interface ObjectiveFeedbackInfo {
|
|
86
|
+
/**
|
|
87
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
88
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
89
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
90
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
91
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
92
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
93
|
+
*/
|
|
94
|
+
agentVariation?: Shared.BareMetadata;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
98
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
99
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
100
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
101
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
102
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
103
|
+
*/
|
|
104
|
+
objective?: Shared.BareMetadata;
|
|
105
|
+
|
|
86
106
|
/**
|
|
87
107
|
* Profile represents a human user at the account level. Profiles are
|
|
88
108
|
* account-scoped resources that can be associated with multiple workspaces through
|
|
@@ -173,12 +173,17 @@ export interface ToolCreateParams {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
export interface ToolRetrieveParams {
|
|
176
|
+
/**
|
|
177
|
+
* Tool set ID (from path). Accepts canonical ts\_… form or external_id:<value>
|
|
178
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
179
|
+
*/
|
|
176
180
|
toolSetId: string;
|
|
177
181
|
}
|
|
178
182
|
|
|
179
183
|
export interface ToolUpdateParams {
|
|
180
184
|
/**
|
|
181
|
-
* Path param
|
|
185
|
+
* Path param: Tool set ID (from path). Accepts canonical ts\_… form or
|
|
186
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
182
187
|
*/
|
|
183
188
|
toolSetId: string;
|
|
184
189
|
|
|
@@ -219,6 +224,10 @@ export interface ToolListParams extends CursorPaginationParams {
|
|
|
219
224
|
}
|
|
220
225
|
|
|
221
226
|
export interface ToolDeleteParams {
|
|
227
|
+
/**
|
|
228
|
+
* Tool set ID (from path). Accepts canonical ts\_… form or external_id:<value>
|
|
229
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
230
|
+
*/
|
|
222
231
|
toolSetId: string;
|
|
223
232
|
}
|
|
224
233
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.52.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.52.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.52.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.52.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|