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
Task is the core unit of action for A2A.
TaskId
Opaque unique identifier for a Task.
TaskStatus
A container for the status of a task
TaskVersion
Monotonically increasing version counter for optimistic concurrency control.

Enums§

TaskState
Defines the possible lifecycle states of a Task.