Task is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
| JSON representation |
|---|
{ "id": string, "contextId": string, "status": { object ( |
| Fields | |
|---|---|
id |
Unique identifier (e.g. UUID) for the task, generated by the server for a new task. |
contextId |
Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server. |
status |
The current status of a Task, including state and a message. |
artifacts[] |
A set of output artifacts for a Task. |
history[] |
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task. |
metadata |
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task. |