Skip to main content

Module tasks

Module tasks 

Source
Expand description

A2A tasks: a durable unit of work a principal started — a root-turn answer, a workflow run, or a subagent — projected as an A2A Task (spec shape, TASK_STATE_*). Tasks are persisted, so GetTask answers across a restart; they stream status/artifact frames from run and turn events; and cancelling one cancels the work it links to, which in turn cancels that work’s own children, so no orphan keeps running behind a cancelled task.

Structs§

PushTarget
A webhook a caller registered for this task’s updates (A2A push notifications). token is echoed back in X-A2A-Notification-Token so the receiver can tell a real delivery from a stray POST; bearer is a credential agentd presents to the receiver.
Task
The durable task record.

Enums§

Link
What a task is attached to.
State
The A2A task state (mirrors mcp::a2a::TaskState, kept here so the runtime does not depend on the a2a feature-gated module).