graphai 0.6.14 → 0.6.15

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/lib/node.js CHANGED
@@ -232,6 +232,9 @@ class ComputedNode extends Node {
232
232
  }
233
233
  const previousResults = this.graph.resultsOf(this.inputs, this.anyInput);
234
234
  const agentId = this.agentId ? this.graph.resultOf((0, utils_2.parseNodeName)(this.agentId)) : this.agentId;
235
+ if (typeof agentId === "function") {
236
+ this.agentFunction = agentId;
237
+ }
235
238
  const config = this.getConfig(!!this.nestedGraph, agentId);
236
239
  const transactionId = Date.now();
237
240
  this.prepareExecute(transactionId, Object.values(previousResults));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphai",
3
- "version": "0.6.14",
3
+ "version": "0.6.15",
4
4
  "description": "Asynchronous data flow execution engine for agentic AI apps.",
5
5
  "main": "lib/bundle.cjs.js",
6
6
  "module": "lib/bundle.esm.js",