Skip to content

Commit

Permalink
added ai transform to scripting nodes and nodes with renewable content
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency committed Aug 14, 2024
1 parent 5fde1a0 commit 87c6890
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/workflow/src/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const CODE_NODE_TYPE = 'n8n-nodes-base.code';
export const FUNCTION_NODE_TYPE = 'n8n-nodes-base.function';
export const FUNCTION_ITEM_NODE_TYPE = 'n8n-nodes-base.functionItem';
export const MERGE_NODE_TYPE = 'n8n-nodes-base.merge';
export const AI_TRANSFORM_NODE_TYPE = 'n8n-nodes-base.aiTransform';

export const STARTING_NODE_TYPES = [
MANUAL_TRIGGER_NODE_TYPE,
Expand All @@ -45,7 +46,12 @@ export const STARTING_NODE_TYPES = [
START_NODE_TYPE,
];

export const SCRIPTING_NODE_TYPES = [FUNCTION_NODE_TYPE, FUNCTION_ITEM_NODE_TYPE, CODE_NODE_TYPE];
export const SCRIPTING_NODE_TYPES = [
FUNCTION_NODE_TYPE,
FUNCTION_ITEM_NODE_TYPE,
CODE_NODE_TYPE,
AI_TRANSFORM_NODE_TYPE,
];

/**
* Nodes whose parameter values may refer to other nodes without expressions.
Expand All @@ -55,6 +61,7 @@ export const NODES_WITH_RENAMABLE_CONTENT = new Set([
CODE_NODE_TYPE,
FUNCTION_NODE_TYPE,
FUNCTION_ITEM_NODE_TYPE,
AI_TRANSFORM_NODE_TYPE,
]);

//@n8n/n8n-nodes-langchain
Expand Down

0 comments on commit 87c6890

Please sign in to comment.