Skip to content

Commit

Permalink
feat(core): Implement Dynamic Parameters within regular nodes used as…
Browse files Browse the repository at this point in the history
… AI Tools (#10862)
  • Loading branch information
OlegIvaniv authored Oct 2, 2024
1 parent ae37035 commit ef5b7cf
Show file tree
Hide file tree
Showing 34 changed files with 1,095 additions and 314 deletions.
651 changes: 395 additions & 256 deletions packages/core/src/CreateNodeAsTool.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ import {
UM_EMAIL_TEMPLATES_INVITE,
UM_EMAIL_TEMPLATES_PWRESET,
} from './Constants';
import { getNodeAsTool } from './CreateNodeAsTool';
import { createNodeAsTool } from './CreateNodeAsTool';
import {
getAllWorkflowExecutionMetadata,
getWorkflowExecutionMetadata,
Expand Down Expand Up @@ -2852,7 +2852,7 @@ async function getInputConnectionData(
if (!nodeType.supplyData) {
if (nodeType.description.outputs.includes(NodeConnectionType.AiTool)) {
nodeType.supplyData = async function (this: IExecuteFunctions) {
return getNodeAsTool(this, nodeType, this.getNode().parameters);
return createNodeAsTool(this, nodeType, this.getNode().parameters);
};
} else {
throw new ApplicationError('Node does not have a `supplyData` method defined', {
Expand Down
Loading

0 comments on commit ef5b7cf

Please sign in to comment.