pub enum Feature {
SendMessage,
SendStreamingMessage,
GetTask,
ListTasks,
CancelTask,
SubscribeToTask,
PushNotificationConfig,
GetExtendedAgentCard,
}Expand description
A capability an A2A peer can negotiate. Each variant has a
row in tests::feature_matrix_golden that names the
A2A spec section that introduced it.
§Why a Copy newtype for the matrix
The matrix is a [[bool; N_FEATURES]; N_VERSIONS] — a
per-revision row, indexed by Feature::ALL. The ALL
array is the source of truth for the column count, so a new
variant appended to the enum is the only edit the matrix
needs to pick it up. The Copy derive keeps the
Feature::ALL array a stack-local constant.
Variants§
SendMessage
SendMessage — the unary message-send method.
SendStreamingMessage
SendStreamingMessage — the streaming counterpart of
SendMessage, server-sent events on a Streamable HTTP
POST.
GetTask
GetTask — fetch a task by id.
ListTasks
ListTasks — page through the tasks the agent owns.
CancelTask
CancelTask — request cancellation of an in-flight task.
SubscribeToTask
SubscribeToTask — long-poll or SSE-style subscription to
task updates.
PushNotificationConfig
Push-notification config CRUD — the four Create*,
Get*, List*, Delete* methods.
GetExtendedAgentCard
GetExtendedAgentCard — fetch the authenticated
AgentCard once the peer has proven its identity.