@agentforge/patterns 0.3.5 → 0.3.8
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/README.md +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +14 -14
- package/LICENSE +0 -22
package/README.md
CHANGED
|
@@ -437,13 +437,13 @@ import {
|
|
|
437
437
|
```typescript
|
|
438
438
|
{
|
|
439
439
|
supervisor: {
|
|
440
|
-
|
|
441
|
-
|
|
440
|
+
model: BaseChatModel, // LLM for routing decisions
|
|
441
|
+
strategy: RoutingStrategy, // Routing strategy
|
|
442
442
|
systemPrompt?: string, // Custom supervisor prompt
|
|
443
443
|
},
|
|
444
444
|
workers: WorkerConfig[], // Worker configurations
|
|
445
445
|
aggregator: {
|
|
446
|
-
|
|
446
|
+
model: BaseChatModel, // LLM for aggregation
|
|
447
447
|
systemPrompt?: string, // Custom aggregator prompt
|
|
448
448
|
},
|
|
449
449
|
maxIterations?: number, // Max coordination iterations
|
package/dist/index.d.cts
CHANGED
|
@@ -143,7 +143,7 @@ interface ReActAgentConfig {
|
|
|
143
143
|
* Tools available to the agent
|
|
144
144
|
* Can be a ToolRegistry or an array of Tools
|
|
145
145
|
*/
|
|
146
|
-
tools: ToolRegistry | Tool[];
|
|
146
|
+
tools: ToolRegistry | Tool<any, any>[];
|
|
147
147
|
/**
|
|
148
148
|
* System prompt for the agent
|
|
149
149
|
* @default "You are a helpful assistant that uses tools to solve problems."
|
|
@@ -280,7 +280,7 @@ declare class ReActAgentBuilder {
|
|
|
280
280
|
*
|
|
281
281
|
* @param tools - Tool registry or array of tools
|
|
282
282
|
*/
|
|
283
|
-
withTools(tools: ToolRegistry | Tool[]): this;
|
|
283
|
+
withTools(tools: ToolRegistry | Tool<any, any>[]): this;
|
|
284
284
|
/**
|
|
285
285
|
* Set the system prompt (optional)
|
|
286
286
|
*
|
|
@@ -826,7 +826,7 @@ interface ExecutorConfig {
|
|
|
826
826
|
/**
|
|
827
827
|
* Available tools for execution
|
|
828
828
|
*/
|
|
829
|
-
tools: Tool[];
|
|
829
|
+
tools: Tool<any, any>[];
|
|
830
830
|
/**
|
|
831
831
|
* Optional language model for sub-tasks
|
|
832
832
|
*/
|
|
@@ -2302,7 +2302,7 @@ interface WorkerConfig {
|
|
|
2302
2302
|
/**
|
|
2303
2303
|
* Available tools for this worker
|
|
2304
2304
|
*/
|
|
2305
|
-
tools?: Tool[];
|
|
2305
|
+
tools?: Tool<any, any>[];
|
|
2306
2306
|
/**
|
|
2307
2307
|
* System prompt for the worker
|
|
2308
2308
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ interface ReActAgentConfig {
|
|
|
143
143
|
* Tools available to the agent
|
|
144
144
|
* Can be a ToolRegistry or an array of Tools
|
|
145
145
|
*/
|
|
146
|
-
tools: ToolRegistry | Tool[];
|
|
146
|
+
tools: ToolRegistry | Tool<any, any>[];
|
|
147
147
|
/**
|
|
148
148
|
* System prompt for the agent
|
|
149
149
|
* @default "You are a helpful assistant that uses tools to solve problems."
|
|
@@ -280,7 +280,7 @@ declare class ReActAgentBuilder {
|
|
|
280
280
|
*
|
|
281
281
|
* @param tools - Tool registry or array of tools
|
|
282
282
|
*/
|
|
283
|
-
withTools(tools: ToolRegistry | Tool[]): this;
|
|
283
|
+
withTools(tools: ToolRegistry | Tool<any, any>[]): this;
|
|
284
284
|
/**
|
|
285
285
|
* Set the system prompt (optional)
|
|
286
286
|
*
|
|
@@ -826,7 +826,7 @@ interface ExecutorConfig {
|
|
|
826
826
|
/**
|
|
827
827
|
* Available tools for execution
|
|
828
828
|
*/
|
|
829
|
-
tools: Tool[];
|
|
829
|
+
tools: Tool<any, any>[];
|
|
830
830
|
/**
|
|
831
831
|
* Optional language model for sub-tasks
|
|
832
832
|
*/
|
|
@@ -2302,7 +2302,7 @@ interface WorkerConfig {
|
|
|
2302
2302
|
/**
|
|
2303
2303
|
* Available tools for this worker
|
|
2304
2304
|
*/
|
|
2305
|
-
tools?: Tool[];
|
|
2305
|
+
tools?: Tool<any, any>[];
|
|
2306
2306
|
/**
|
|
2307
2307
|
* System prompt for the worker
|
|
2308
2308
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge/patterns",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "Agent patterns (ReAct, Planner-Executor) for AgentForge framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -16,6 +16,17 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
21
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
22
|
+
"test": "vitest",
|
|
23
|
+
"test:coverage": "vitest --coverage",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"lint": "eslint src",
|
|
26
|
+
"lint:fix": "eslint src --fix",
|
|
27
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
28
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
29
|
+
},
|
|
19
30
|
"keywords": [
|
|
20
31
|
"agents",
|
|
21
32
|
"ai",
|
|
@@ -36,7 +47,7 @@
|
|
|
36
47
|
"url": "https://github.com/TVScoundrel/agentforge/issues"
|
|
37
48
|
},
|
|
38
49
|
"dependencies": {
|
|
39
|
-
"@agentforge/core": "^0.3.
|
|
50
|
+
"@agentforge/core": "^0.3.8",
|
|
40
51
|
"@langchain/core": "^1.1.0",
|
|
41
52
|
"@langchain/langgraph": "^1.0.0",
|
|
42
53
|
"zod": "^3.23.8"
|
|
@@ -54,16 +65,5 @@
|
|
|
54
65
|
"peerDependencies": {
|
|
55
66
|
"@langchain/core": "^1.1.0",
|
|
56
67
|
"@langchain/langgraph": "^1.0.0"
|
|
57
|
-
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
60
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
61
|
-
"test": "vitest",
|
|
62
|
-
"test:coverage": "vitest --coverage",
|
|
63
|
-
"typecheck": "tsc --noEmit",
|
|
64
|
-
"lint": "eslint src",
|
|
65
|
-
"lint:fix": "eslint src --fix",
|
|
66
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
67
|
-
"clean": "rm -rf dist *.tsbuildinfo"
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Tom Van Schoor
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|