Manage A2A task lifecycle with get, cancel, and resubscribe operations
message/send
and message/stream
methods. Tasks represent individual agent operations that can be tracked and controlled.application/json
"2.0"
"tasks/get"
"2.0"
"2.0"
"tasks/cancel"
"2.0"
"2.0"
"tasks/resubscribe"
message/stream
. For completed tasks, it returns the final status.
"2.0"
submitted
submitted
→ working
(processing starts)submitted
→ canceled
(canceled before processing)working
working
→ completed
(successful completion)working
→ failed
(processing error)working
→ canceled
(user cancellation)completed
failed
canceled
Code | Description | Resolution |
---|---|---|
-32000 | Task not found | Verify task ID exists |
-32001 | Task already completed | Cannot modify completed tasks |
-32002 | Task already canceled | Cannot modify canceled tasks |
-32003 | Cancellation failed | Task may have completed during cancellation |
-32004 | Subscription failed | Task may not support streaming |
Polling vs Streaming
tasks/get
for periodic status checkstasks/resubscribe
for real-time updatesError Recovery
User Experience