Skip to content

Commit

Permalink
Update lib or docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Jan 8, 2025
1 parent 2dc317e commit b159aff
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/graphai/lib/bundle.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/graphai/lib/bundle.cjs.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/graphai/lib/bundle.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/graphai/lib/bundle.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/graphai/lib/bundle.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/graphai/lib/bundle.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/graphai/lib/node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export declare class ComputedNode extends Node {
readonly retryLimit: number;
retryCount: number;
private readonly agentId?;
private readonly agentFunction?;
private agentFunction?;
readonly timeout?: number;
readonly priority: number;
error?: Error;
Expand Down
3 changes: 3 additions & 0 deletions packages/graphai/lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ class ComputedNode extends Node {
}
const previousResults = this.graph.resultsOf(this.inputs, this.anyInput);
const agentId = this.agentId ? this.graph.resultOf((0, utils_2.parseNodeName)(this.agentId)) : this.agentId;
if (typeof agentId === "function") {
this.agentFunction = agentId;
}
const config = this.getConfig(!!this.nestedGraph, agentId);
const transactionId = Date.now();
this.prepareExecute(transactionId, Object.values(previousResults));
Expand Down

0 comments on commit b159aff

Please sign in to comment.