← All notes

An A2A agent replies with a stateless Message or a stateful Task

Answer: An A2A agent has two ways to answer a client message. A Stateless Message fits an immediate, self-contained exchange. The other option is to initiate a Stateful Task. The agent then runs that Task through a defined lifecycle. It reaches an interrupted state such as input-required. It can also end in a terminal state such as completed, canceled, rejected, or failed.

Grouping

A contextId is a key identifier. It groups multiple Task objects and independent Message objects. The agent responds with a new contextId. Later client messages keep the same contextId when they continue a previous interaction. If a task is initiated, it will also have a taskId.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: A2A Protocol, Life of a Task, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE); a2aproject/A2A (GitHub), Life of a Task (source), Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: A2A Protocol, Life of a Task, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE); a2aproject/A2A (GitHub), Life of a Task (source), Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE).

Cite this

Permanent ID: iil:note:zhp441z5

iinventedlight. 2026. "An A2A agent replies with a stateless Message or a stateful Task." iinventedlight Library, iil:note:zhp441z5, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-a2a-task-lifecycle/. License: CC-BY-4.0.

@misc{iil_note_zhp441z5,
  author = {{iinventedlight}},
  title = {{An A2A agent replies with a stateless Message or a stateful Task}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ao-a2a-task-lifecycle/},
  note = {Permanent ID iil:note:zhp441z5. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-a2a-task-lifecycle.md.