a9cd7750f4
CI / unit-test (push) Has been cancelled
CI / detect-changes (push) Has been cancelled
CI / build (push) Has been cancelled
Publish docs via GitHub Pages / Deploy docs (push) Has been cancelled
CI / test-harness (push) Has been cancelled
CI / generate-e2e-matrix (push) Has been cancelled
CI / e2e (push) Has been cancelled
CI / build-ui (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
UI v2 Integration CI / E2E (Integration) (push) Has been cancelled
UI v2 CI / Lint, Format & Test (push) Has been cancelled
UI v2 CI / E2E (Mocked) (push) Has been cancelled
29 lines
876 B
JSON
29 lines
876 B
JSON
{
|
|
"name": "a2a_cancel_agent",
|
|
"version": 1,
|
|
"schemaVersion": 2,
|
|
"description": "Starts work on a remote agent (AGENT) then cancels it (CANCEL_AGENT → A2A tasks/cancel), passing the remote task id from the first task's output. Illustrative — cancel is typically wired into fork/timeout or compensation flows.",
|
|
"ownerEmail": "a2a@example.com",
|
|
"tasks": [
|
|
{
|
|
"name": "start_agent_task",
|
|
"taskReferenceName": "start",
|
|
"type": "AGENT",
|
|
"inputParameters": {
|
|
"agentUrl": "http://localhost:9999",
|
|
"text": "begin a long-running job",
|
|
"maxDurationSeconds": 60
|
|
}
|
|
},
|
|
{
|
|
"name": "cancel_agent_task",
|
|
"taskReferenceName": "cancel",
|
|
"type": "CANCEL_AGENT",
|
|
"inputParameters": {
|
|
"agentUrl": "http://localhost:9999",
|
|
"taskId": "${start.output.taskId}"
|
|
}
|
|
}
|
|
]
|
|
}
|