@cadenya/cadenya 0.49.0 → 0.51.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 +10 -2
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +10 -2
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/variations.d.mts +62 -48
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +62 -48
- 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/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 +9 -6
- package/src/resources/agents/index.ts +0 -3
- package/src/resources/agents/variations.ts +64 -55
- package/src/resources/memory-layers/entries.ts +10 -1
- 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
|
@@ -266,14 +266,18 @@ export interface AgentVariationSpec {
|
|
|
266
266
|
modelConfig?: AgentVariationSpecModelConfig;
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
|
-
*
|
|
269
|
+
* ProgressiveDiscovery is used to indicate that the agent should automatically
|
|
270
|
+
* discover tools that are not explicitly assigned to it. Max tools is the maximum
|
|
271
|
+
* number of tools that can be discovered per search. Hints are optional hints for
|
|
272
|
+
* tool search. These are used in conjunction with the context-aware tool search
|
|
273
|
+
* and can help select the best tools for the task.
|
|
270
274
|
*/
|
|
271
|
-
|
|
275
|
+
progressiveDiscovery?: AgentVariationSpec.ProgressiveDiscovery;
|
|
272
276
|
|
|
273
277
|
/**
|
|
274
|
-
*
|
|
278
|
+
* The system prompt for this variation
|
|
275
279
|
*/
|
|
276
|
-
|
|
280
|
+
prompt?: string;
|
|
277
281
|
|
|
278
282
|
/**
|
|
279
283
|
* Weight for weighted random selection (>= 0). P(v) = v.weight / sum(all_weights).
|
|
@@ -284,6 +288,30 @@ export interface AgentVariationSpec {
|
|
|
284
288
|
weight?: number;
|
|
285
289
|
}
|
|
286
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
|
+
|
|
287
315
|
/**
|
|
288
316
|
* CompactionConfig defines how context window compaction behaves for objectives
|
|
289
317
|
* using this variation.
|
|
@@ -337,24 +365,6 @@ export interface AgentVariationSpecModelConfig {
|
|
|
337
365
|
temperature?: number;
|
|
338
366
|
}
|
|
339
367
|
|
|
340
|
-
export interface AgentVariationSpecToolSelection {
|
|
341
|
-
/**
|
|
342
|
-
* AssignedTools is used to indicate that the agent should only use the tools/tool
|
|
343
|
-
* sets that are explicitly assigned to it. Allow discovery is used when the agent
|
|
344
|
-
* thinks it needs to discover more tools.
|
|
345
|
-
*/
|
|
346
|
-
assignedTools?: ToolSelectionAssignedTools;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* AutoDiscovery is used to indicate that the agent should automatically discover
|
|
350
|
-
* tools that are not explicitly assigned to it. Max tools is the maximum number of
|
|
351
|
-
* tools that can be discovered. Hints are optional hints for tool search. These
|
|
352
|
-
* are used in conjunction with the context-aware tool search and can help select
|
|
353
|
-
* the best tools for the task.
|
|
354
|
-
*/
|
|
355
|
-
autoDiscovery?: ToolSelectionAutoDiscovery;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
368
|
/**
|
|
359
369
|
* SummarizationStrategy configures LLM-powered summarization of older conversation
|
|
360
370
|
* turns.
|
|
@@ -380,28 +390,6 @@ export interface CompactionConfigToolResultClearingStrategy {
|
|
|
380
390
|
preserveRecentResults?: number;
|
|
381
391
|
}
|
|
382
392
|
|
|
383
|
-
/**
|
|
384
|
-
* AssignedTools is used to indicate that the agent should only use the tools/tool
|
|
385
|
-
* sets that are explicitly assigned to it. Allow discovery is used when the agent
|
|
386
|
-
* thinks it needs to discover more tools.
|
|
387
|
-
*/
|
|
388
|
-
export interface ToolSelectionAssignedTools {
|
|
389
|
-
allowDiscovery?: boolean;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* AutoDiscovery is used to indicate that the agent should automatically discover
|
|
394
|
-
* tools that are not explicitly assigned to it. Max tools is the maximum number of
|
|
395
|
-
* tools that can be discovered. Hints are optional hints for tool search. These
|
|
396
|
-
* are used in conjunction with the context-aware tool search and can help select
|
|
397
|
-
* the best tools for the task.
|
|
398
|
-
*/
|
|
399
|
-
export interface ToolSelectionAutoDiscovery {
|
|
400
|
-
hints?: Array<string>;
|
|
401
|
-
|
|
402
|
-
maxTools?: number;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
393
|
/**
|
|
406
394
|
* VariationAssignment is a read-only reference to a single tool, tool set, or
|
|
407
395
|
* sub-agent attached to a variation. Clients read the full set of assignments via
|
|
@@ -498,14 +486,16 @@ export interface VariationCreateParams {
|
|
|
498
486
|
|
|
499
487
|
export interface VariationRetrieveParams {
|
|
500
488
|
/**
|
|
501
|
-
* Agent ID (from path)
|
|
489
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
490
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
502
491
|
*/
|
|
503
492
|
agentId: string;
|
|
504
493
|
}
|
|
505
494
|
|
|
506
495
|
export interface VariationUpdateParams {
|
|
507
496
|
/**
|
|
508
|
-
* Path param: Agent ID (from path)
|
|
497
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
498
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
509
499
|
*/
|
|
510
500
|
agentId: string;
|
|
511
501
|
|
|
@@ -543,14 +533,16 @@ export interface VariationListParams extends CursorPaginationParams {
|
|
|
543
533
|
|
|
544
534
|
export interface VariationDeleteParams {
|
|
545
535
|
/**
|
|
546
|
-
* Agent ID (from path)
|
|
536
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
537
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
547
538
|
*/
|
|
548
539
|
agentId: string;
|
|
549
540
|
}
|
|
550
541
|
|
|
551
542
|
export interface VariationAddAssignmentParams {
|
|
552
543
|
/**
|
|
553
|
-
* Path param
|
|
544
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
545
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
554
546
|
*/
|
|
555
547
|
agentId: string;
|
|
556
548
|
|
|
@@ -572,12 +564,14 @@ export interface VariationAddAssignmentParams {
|
|
|
572
564
|
|
|
573
565
|
export interface VariationAddMemoryLayerParams {
|
|
574
566
|
/**
|
|
575
|
-
* Path param
|
|
567
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
568
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
576
569
|
*/
|
|
577
570
|
agentId: string;
|
|
578
571
|
|
|
579
572
|
/**
|
|
580
|
-
* Body param: Layer to attach. Accepts memlyr\_… or
|
|
573
|
+
* Body param: Layer to attach. Accepts canonical memlyr\_… form or
|
|
574
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
581
575
|
*/
|
|
582
576
|
memoryLayerId?: string;
|
|
583
577
|
|
|
@@ -589,25 +583,43 @@ export interface VariationAddMemoryLayerParams {
|
|
|
589
583
|
}
|
|
590
584
|
|
|
591
585
|
export interface VariationRemoveAssignmentParams {
|
|
586
|
+
/**
|
|
587
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
588
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
589
|
+
*/
|
|
592
590
|
agentId: string;
|
|
593
591
|
|
|
592
|
+
/**
|
|
593
|
+
* Variation ID (from path). Accepts canonical av\_… form or external_id:<value>
|
|
594
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
595
|
+
*/
|
|
594
596
|
variationId: string;
|
|
595
597
|
}
|
|
596
598
|
|
|
597
599
|
export interface VariationRemoveMemoryLayerParams {
|
|
600
|
+
/**
|
|
601
|
+
* Agent ID (from path). Accepts canonical agent\_… form or external_id:<value>
|
|
602
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
603
|
+
*/
|
|
598
604
|
agentId: string;
|
|
599
605
|
|
|
606
|
+
/**
|
|
607
|
+
* Variation ID (from path). Accepts canonical av\_… form or external_id:<value>
|
|
608
|
+
* form (see common.proto "Path-parameter ID resolution").
|
|
609
|
+
*/
|
|
600
610
|
variationId: string;
|
|
601
611
|
}
|
|
602
612
|
|
|
603
613
|
export interface VariationUpdateMemoryLayerParams {
|
|
604
614
|
/**
|
|
605
|
-
* Path param
|
|
615
|
+
* Path param: Agent ID (from path). Accepts canonical agent\_… form or
|
|
616
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
606
617
|
*/
|
|
607
618
|
agentId: string;
|
|
608
619
|
|
|
609
620
|
/**
|
|
610
|
-
* Path param
|
|
621
|
+
* Path param: Variation ID (from path). Accepts canonical av\_… form or
|
|
622
|
+
* external_id:<value> form (see common.proto "Path-parameter ID resolution").
|
|
611
623
|
*/
|
|
612
624
|
variationId: string;
|
|
613
625
|
|
|
@@ -625,11 +637,8 @@ export declare namespace Variations {
|
|
|
625
637
|
type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig,
|
|
626
638
|
type AgentVariationSpecConstraints as AgentVariationSpecConstraints,
|
|
627
639
|
type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig,
|
|
628
|
-
type AgentVariationSpecToolSelection as AgentVariationSpecToolSelection,
|
|
629
640
|
type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy,
|
|
630
641
|
type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy,
|
|
631
|
-
type ToolSelectionAssignedTools as ToolSelectionAssignedTools,
|
|
632
|
-
type ToolSelectionAutoDiscovery as ToolSelectionAutoDiscovery,
|
|
633
642
|
type VariationAssignment as VariationAssignment,
|
|
634
643
|
type VariationMemoryLayerAssignment as VariationMemoryLayerAssignment,
|
|
635
644
|
type AgentVariationsCursorPagination as AgentVariationsCursorPagination,
|
|
@@ -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
|
|
|
@@ -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.51.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.51.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.51.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.51.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|