refactor(workflows): remove code-executor and align function node with Agent Framework

Remove the invented code-executor node type entirely. Rename
function-executor to invoke-function to match Agent Framework's
InvokeFunctionTool declarative action. Update InvokeFunctionConfig to
use functionName, arguments, requireApproval, and resultVariable
properties matching the upstream schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-04-05 21:59:16 +02:00
co-authored by Copilot
parent e47835c1e8
commit 81eb8f7c82
9 changed files with 122 additions and 371 deletions
+4 -8
View File
@@ -97,10 +97,8 @@ function defaultConfigForKind(kind: WorkflowNodeKind): WorkflowNodeConfig {
model: 'gpt-5.4',
reasoningEffort: 'high',
};
case 'code-executor':
return { kind: 'code-executor' };
case 'function-executor':
return { kind: 'function-executor', functionRef: '' };
case 'invoke-function':
return { kind: 'invoke-function', functionName: '', arguments: {} };
case 'sub-workflow':
return { kind: 'sub-workflow' };
case 'request-port':
@@ -116,10 +114,8 @@ function defaultLabelForKind(kind: WorkflowNodeKind): string {
return 'End';
case 'agent':
return 'New Agent';
case 'code-executor':
return 'Code Executor';
case 'function-executor':
return 'Function';
case 'invoke-function':
return 'Function Tool';
case 'sub-workflow':
return 'Sub-Workflow';
case 'request-port':