Memory & stateProtocols
Task lifecycle
Every delegated job has an id and a state, so it can be followed, resumed or cancelled.
What it is
A2A tasks move through TASK_STATE_* values (working, input required, completed, failed, cancelled and more), with artifacts as results; clients poll with GetTask, stream updates, or receive webhooks.
When to use it
- Anything that takes longer than one request
When to skip it
- Holding a request open for an hour and hoping
Why (the trade-off)
Long, multi-turn work across organisations needs a shared, durable handle.
Where it sits
Memory layer, kept by the remote agent and referenced by the client.
What it needs first
- A2A serverthe server owns the tasks
What can be added to it
Nothing builds on it directly.
Effect of adding it
- cost —
- latency —
- reliability ↑↑
- safety —
Risks it handles
- A long task gets lost · full
Learn first (AI Engineering)