@agentforge/patterns 0.16.48 → 0.16.50

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 CHANGED
@@ -3180,7 +3180,7 @@ function createSupervisorNode(config) {
3180
3180
  };
3181
3181
  }
3182
3182
 
3183
- // src/multi-agent/nodes/worker.ts
3183
+ // src/multi-agent/nodes/worker-model.ts
3184
3184
  function buildDefaultSystemPrompt(config) {
3185
3185
  return `You are a specialized worker agent with the following capabilities:
3186
3186
  Skills: ${config.capabilities.skills.join(", ")}
@@ -3244,6 +3244,8 @@ async function invokeWorkerModel(model, config, assignment) {
3244
3244
  messages: [message]
3245
3245
  };
3246
3246
  }
3247
+
3248
+ // src/multi-agent/nodes/worker-workload.ts
3247
3249
  function getStateWorkerOrThrow(state, workerId) {
3248
3250
  const currentWorker = state.workers[workerId];
3249
3251
  if (!currentWorker) {
@@ -3337,8 +3339,10 @@ function createErrorTaskResult(assignment, workerId, errorMessage) {
3337
3339
  completedAt: Date.now()
3338
3340
  };
3339
3341
  }
3342
+
3343
+ // src/multi-agent/nodes/worker.ts
3340
3344
  function createWorkerNode(config) {
3341
- const { id, model, executeFn, agent } = config;
3345
+ const { id, executeFn, agent, model } = config;
3342
3346
  return async (state, runConfig) => {
3343
3347
  try {
3344
3348
  logger3.info("Worker node executing", {
package/dist/index.js CHANGED
@@ -3082,7 +3082,7 @@ function createSupervisorNode(config) {
3082
3082
  };
3083
3083
  }
3084
3084
 
3085
- // src/multi-agent/nodes/worker.ts
3085
+ // src/multi-agent/nodes/worker-model.ts
3086
3086
  function buildDefaultSystemPrompt(config) {
3087
3087
  return `You are a specialized worker agent with the following capabilities:
3088
3088
  Skills: ${config.capabilities.skills.join(", ")}
@@ -3146,6 +3146,8 @@ async function invokeWorkerModel(model, config, assignment) {
3146
3146
  messages: [message]
3147
3147
  };
3148
3148
  }
3149
+
3150
+ // src/multi-agent/nodes/worker-workload.ts
3149
3151
  function getStateWorkerOrThrow(state, workerId) {
3150
3152
  const currentWorker = state.workers[workerId];
3151
3153
  if (!currentWorker) {
@@ -3239,8 +3241,10 @@ function createErrorTaskResult(assignment, workerId, errorMessage) {
3239
3241
  completedAt: Date.now()
3240
3242
  };
3241
3243
  }
3244
+
3245
+ // src/multi-agent/nodes/worker.ts
3242
3246
  function createWorkerNode(config) {
3243
- const { id, model, executeFn, agent } = config;
3247
+ const { id, executeFn, agent, model } = config;
3244
3248
  return async (state, runConfig) => {
3245
3249
  try {
3246
3250
  logger3.info("Worker node executing", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentforge/patterns",
3
- "version": "0.16.48",
3
+ "version": "0.16.50",
4
4
  "description": "Production-ready agent workflow patterns for TypeScript including ReAct and Planner-Executor, built on LangGraph.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -41,13 +41,13 @@
41
41
  "url": "https://github.com/TVScoundrel/agentforge/issues"
42
42
  },
43
43
  "dependencies": {
44
- "@agentforge/core": "0.16.48",
44
+ "@agentforge/core": "0.16.50",
45
45
  "@langchain/core": "^1.1.17",
46
46
  "@langchain/langgraph": "^1.1.2",
47
47
  "zod": "^3.23.8"
48
48
  },
49
49
  "devDependencies": {
50
- "@agentforge/testing": "0.16.48",
50
+ "@agentforge/testing": "0.16.50",
51
51
  "@eslint/js": "^9.17.0",
52
52
  "@types/node": "^22.10.2",
53
53
  "eslint": "^9.17.0",