mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
feat(core): Implement partial execution for all tool nodes (#15168)
This commit is contained in:
@@ -1492,6 +1492,7 @@ export interface INodePropertyOptions {
|
||||
description?: string;
|
||||
routing?: INodePropertyRouting;
|
||||
outputConnectionType?: NodeConnectionType;
|
||||
inputSchema?: any;
|
||||
}
|
||||
|
||||
export interface INodeListSearchItems extends INodePropertyOptions {
|
||||
@@ -2309,6 +2310,7 @@ export interface IWorkflowExecutionDataProcess {
|
||||
name: string;
|
||||
data?: ITaskData;
|
||||
};
|
||||
agentRequest?: AiAgentRequest;
|
||||
}
|
||||
|
||||
export interface ExecuteWorkflowOptions {
|
||||
@@ -2348,6 +2350,14 @@ type AiEventPayload = {
|
||||
nodeType?: string;
|
||||
};
|
||||
|
||||
// Used to transport an agent request for partial execution
|
||||
export interface AiAgentRequest {
|
||||
query: string | INodeParameters;
|
||||
tool: {
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IWorkflowExecuteAdditionalData {
|
||||
credentialsHelper: ICredentialsHelper;
|
||||
executeWorkflow: (
|
||||
|
||||
@@ -1558,7 +1558,7 @@ export function isExecutable(workflow: Workflow, node: INode, nodeTypeData: INod
|
||||
const outputNames = getConnectionTypes(outputs);
|
||||
return (
|
||||
outputNames.includes(NodeConnectionTypes.Main) ||
|
||||
isTriggerNode(nodeTypeData) ||
|
||||
nodeTypeData.usableAsTool === true
|
||||
outputNames.includes(NodeConnectionTypes.AiTool) ||
|
||||
isTriggerNode(nodeTypeData)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user