Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/workflow-client-run-task-agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@epilot/workflow-client": minor
---

Add `runTaskAgent` and surface `trigger_mode` on `AiAgentTask`

- New `POST /v2/flows/executions/{execution_id}/tasks/{task_id}/agent:run` operation (`runTaskAgent`). Dispatches the configured AI agent for a manual-trigger AI task after an explicit user action.
- `AiAgentTask` now exposes the optional `trigger_mode` field (`'manual' | 'automatic'`), mirroring `AutomationTask`. Undefined is treated as automatic by the backend (no data migration needed).
14 changes: 14 additions & 0 deletions clients/workflow-client/src/openapi-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,20 @@
"responses": {}
}
},
"/v2/flows/executions/{execution_id}/tasks/{task_id}/agent:run": {
"post": {
"operationId": "runTaskAgent",
"parameters": [
{
"$ref": "#/components/parameters/ExecutionIdParam"
},
{
"$ref": "#/components/parameters/TaskIdParam"
}
],
"responses": {}
}
},
"/v2/flows/executions/{execution_id}/tasks/{task_id}/execute": {
"post": {
"operationId": "executeTask",
Expand Down
Loading
Loading