mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(editor): Support partial executions of tool nodes (#14945)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { INodeUi } from '@/Interface';
|
||||
import type { NodeTypeProvider } from '@/utils/nodeTypes/nodeTypeTransforms';
|
||||
import type { INodeCredentialDescription } from 'n8n-workflow';
|
||||
import { NodeHelpers } from 'n8n-workflow';
|
||||
import type { INodeCredentialDescription, FromAIArgument } from 'n8n-workflow';
|
||||
import { NodeHelpers, traverseNodeParameters } from 'n8n-workflow';
|
||||
|
||||
/**
|
||||
* Returns the credentials that are displayable for the given node.
|
||||
@@ -77,3 +77,12 @@ export function doesNodeHaveAllCredentialsFilled(
|
||||
|
||||
return requiredCredentials.every((cred) => hasNodeCredentialFilled(node, cred.name));
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the given node has any fromAi expressions in its parameters.
|
||||
*/
|
||||
export function hasFromAiExpressions(node: Pick<INodeUi, 'parameters'>) {
|
||||
const collectedArgs: FromAIArgument[] = [];
|
||||
traverseNodeParameters(node.parameters, collectedArgs);
|
||||
return collectedArgs.length > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user