Skip to main content

Module task

Module task 

Source
Expand description

Task types for the A2A protocol.

A Task is the stateful unit of work managed by an agent. Its lifecycle is tracked through TaskStatus and TaskState. The TaskState enum uses SCREAMING_SNAKE_CASE with type prefix per ProtoJSON convention (e.g. "TASK_STATE_INPUT_REQUIRED").

§ID newtypes

TaskId, ContextId, and TaskVersion are newtypes over String (or u64) for compile-time type safety.

Structs§

ContextId
Opaque unique identifier for a conversation context.
Task
A unit of work managed by an A2A agent.
TaskId
Opaque unique identifier for a Task.
TaskStatus
The current status of a Task, combining state with an optional message and timestamp.
TaskVersion
Monotonically increasing version counter for optimistic concurrency control.

Enums§

TaskState
The lifecycle state of a Task.