@agentforge/patterns 0.7.0 → 0.8.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/dist/index.cjs +87 -301
- package/dist/index.d.cts +0 -25
- package/dist/index.d.ts +0 -25
- package/dist/index.js +87 -301
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2473,29 +2473,6 @@ interface SupervisorConfig {
|
|
|
2473
2473
|
* Maximum number of routing iterations
|
|
2474
2474
|
*/
|
|
2475
2475
|
maxIterations?: number;
|
|
2476
|
-
/**
|
|
2477
|
-
* Optional tools the supervisor can use during routing
|
|
2478
|
-
*
|
|
2479
|
-
* Enables the supervisor to gather additional information before making routing decisions.
|
|
2480
|
-
* Common use case: askHuman tool for clarifying ambiguous queries.
|
|
2481
|
-
*
|
|
2482
|
-
* Note: Only works with LLM-based routing strategy.
|
|
2483
|
-
*
|
|
2484
|
-
* @example
|
|
2485
|
-
* ```typescript
|
|
2486
|
-
* import { createAskHumanTool } from '@agentforge/tools';
|
|
2487
|
-
*
|
|
2488
|
-
* const system = createMultiAgentSystem({
|
|
2489
|
-
* supervisor: {
|
|
2490
|
-
* strategy: 'llm-based',
|
|
2491
|
-
* model: chatModel,
|
|
2492
|
-
* tools: [createAskHumanTool()],
|
|
2493
|
-
* },
|
|
2494
|
-
* // ...
|
|
2495
|
-
* });
|
|
2496
|
-
* ```
|
|
2497
|
-
*/
|
|
2498
|
-
tools?: Tool<any, any>[];
|
|
2499
2476
|
/**
|
|
2500
2477
|
* Maximum number of tool call retries before requiring routing decision
|
|
2501
2478
|
*
|
|
@@ -2672,8 +2649,6 @@ declare const DEFAULT_SUPERVISOR_SYSTEM_PROMPT = "You are a supervisor agent res
|
|
|
2672
2649
|
/**
|
|
2673
2650
|
* LLM-based routing strategy
|
|
2674
2651
|
* Uses an LLM to intelligently route tasks based on worker capabilities
|
|
2675
|
-
*
|
|
2676
|
-
* Supports tool calls (e.g., askHuman) for gathering additional information before routing.
|
|
2677
2652
|
*/
|
|
2678
2653
|
declare const llmBasedRouting: RoutingStrategyImpl;
|
|
2679
2654
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2473,29 +2473,6 @@ interface SupervisorConfig {
|
|
|
2473
2473
|
* Maximum number of routing iterations
|
|
2474
2474
|
*/
|
|
2475
2475
|
maxIterations?: number;
|
|
2476
|
-
/**
|
|
2477
|
-
* Optional tools the supervisor can use during routing
|
|
2478
|
-
*
|
|
2479
|
-
* Enables the supervisor to gather additional information before making routing decisions.
|
|
2480
|
-
* Common use case: askHuman tool for clarifying ambiguous queries.
|
|
2481
|
-
*
|
|
2482
|
-
* Note: Only works with LLM-based routing strategy.
|
|
2483
|
-
*
|
|
2484
|
-
* @example
|
|
2485
|
-
* ```typescript
|
|
2486
|
-
* import { createAskHumanTool } from '@agentforge/tools';
|
|
2487
|
-
*
|
|
2488
|
-
* const system = createMultiAgentSystem({
|
|
2489
|
-
* supervisor: {
|
|
2490
|
-
* strategy: 'llm-based',
|
|
2491
|
-
* model: chatModel,
|
|
2492
|
-
* tools: [createAskHumanTool()],
|
|
2493
|
-
* },
|
|
2494
|
-
* // ...
|
|
2495
|
-
* });
|
|
2496
|
-
* ```
|
|
2497
|
-
*/
|
|
2498
|
-
tools?: Tool<any, any>[];
|
|
2499
2476
|
/**
|
|
2500
2477
|
* Maximum number of tool call retries before requiring routing decision
|
|
2501
2478
|
*
|
|
@@ -2672,8 +2649,6 @@ declare const DEFAULT_SUPERVISOR_SYSTEM_PROMPT = "You are a supervisor agent res
|
|
|
2672
2649
|
/**
|
|
2673
2650
|
* LLM-based routing strategy
|
|
2674
2651
|
* Uses an LLM to intelligently route tasks based on worker capabilities
|
|
2675
|
-
*
|
|
2676
|
-
* Supports tool calls (e.g., askHuman) for gathering additional information before routing.
|
|
2677
2652
|
*/
|
|
2678
2653
|
declare const llmBasedRouting: RoutingStrategyImpl;
|
|
2679
2654
|
/**
|