feat(FN-834): add per-workflow-step model overrides for execution

- Extend WorkflowStep type with optional modelProvider, modelId, validatorModelProvider, validatorModelId fields
- Add API endpoints (PATCH /api/workflow-steps/:id) to update model overrides on workflow steps
- Update executor to use per-step model overrides when running workflow step agents
- Add AgentDetailView support for displaying workflow step model configuration
- Add store and executor tests for new model override behavior
This commit is contained in:
gsxdsm
2026-04-04 04:08:16 -07:00
parent 757bca3f3c
commit 4e0077f48a
8 changed files with 406 additions and 9 deletions

View File

@@ -2529,6 +2529,8 @@ ${stepsSection}`;
description: input.description,
prompt: input.prompt || "",
enabled: input.enabled !== undefined ? input.enabled : true,
modelProvider: input.modelProvider,
modelId: input.modelId,
createdAt: now,
updatedAt: now,
};
@@ -2579,6 +2581,8 @@ ${stepsSection}`;
if (updates.description !== undefined) step.description = updates.description;
if (updates.prompt !== undefined) step.prompt = updates.prompt;
if (updates.enabled !== undefined) step.enabled = updates.enabled;
if ("modelProvider" in updates) step.modelProvider = updates.modelProvider;
if ("modelId" in updates) step.modelId = updates.modelId;
step.updatedAt = new Date().toISOString();
config.workflowSteps = steps;