Expand description
All A2A protocol wire types.
Modules§
- agent_
card - Agent card and capability discovery types.
- artifact
- Artifact types for the A2A protocol.
- error
- A2A protocol error types.
- events
- Server-sent event types for A2A streaming.
- extensions
- Agent extension and card-signature types.
- jsonrpc
- JSON-RPC 2.0 envelope types.
- message
- Message types for the A2A protocol.
- params
- JSON-RPC method parameter types.
- push
- Push notification configuration types.
- responses
- RPC method response types.
- security
- Security scheme types for A2A agent authentication.
- signing
- Agent card signing and verification (spec §10).
- task
- Task types for the A2A protocol.
Structs§
- A2aError
- The canonical error type for A2A protocol operations.
- Agent
Capabilities - Optional capability flags advertised by an agent.
- Agent
Card - The root discovery document for an A2A agent.
- Agent
Card Signature - A cryptographic signature over an
crate::agent_card::AgentCard. - Agent
Extension - Describes an optional extension that an agent supports.
- Agent
Interface - A transport interface offered by an agent.
- Agent
Provider - The organization that operates or publishes the agent.
- Agent
Skill - A discrete capability offered by an agent.
- ApiKey
Security Scheme - API key security scheme: a token sent in a header, query parameter, or cookie.
- Artifact
- An output artifact produced by an agent.
- Artifact
Id - Opaque unique identifier for an
Artifact. - Authentication
Info - Authentication information used by an agent when calling a push webhook.
- Authorization
Code Flow - OAuth 2.0 authorization code flow.
- Cancel
Task Params - Parameters for the
CancelTaskmethod. - Client
Credentials Flow - OAuth 2.0 client credentials flow.
- Context
Id - Opaque unique identifier for a conversation context.
- Delete
Push Config Params - Parameters for the
DeleteTaskPushNotificationConfigmethod. - Device
Code Flow - OAuth 2.0 device authorization flow (RFC 8628).
- GetExtended
Agent Card Params - Parameters for the
GetExtendedAgentCardmethod. - GetPush
Config Params - Parameters for the
GetTaskPushNotificationConfigmethod. - Http
Auth Security Scheme - HTTP authentication security scheme (Bearer, Basic, etc.).
- Implicit
Flow - OAuth 2.0 implicit flow (deprecated; retained for compatibility).
- Json
RpcError - The error object within a JSON-RPC 2.0 error response.
- Json
RpcError Response - An error JSON-RPC 2.0 response.
- Json
RpcRequest - A JSON-RPC 2.0 request object.
- Json
RpcSuccess Response - A successful JSON-RPC 2.0 response.
- Json
RpcVersion - The JSON-RPC protocol version marker.
- List
Push Configs Params - Parameters for the
ListTaskPushNotificationConfigsmethod. - List
Push Configs Response - The result of a
ListTaskPushNotificationConfigscall. - List
Tasks Params - Parameters for the
ListTasksmethod. - Message
- A message exchanged between a client and an agent.
- Message
Id - Opaque unique identifier for a
Message. - Message
Send Params - Parameters for the
SendMessageandSendStreamingMessagemethods. - Mutual
TlsSecurity Scheme - Mutual TLS security scheme.
- OAuth2
Security Scheme - OAuth 2.0 security scheme.
- OAuth
Flows - Available OAuth 2.0 flows for an
OAuth2SecurityScheme. - Open
IdConnect Security Scheme - OpenID Connect security scheme.
- Part
- A content part within a
Messageorcrate::artifact::Artifact. - PasswordO
Auth Flow - OAuth 2.0 resource owner password credentials flow (deprecated but in spec).
- Security
Requirement - A security requirement object mapping scheme names to their required scopes.
- Send
Message Configuration - Optional configuration for a
SendMessageorSendStreamingMessagecall. - String
List - A list of strings used within a
SecurityRequirementmap value. - Task
- A unit of work managed by an A2A agent.
- Task
Artifact Update Event - A streaming event that delivers a new or updated artifact.
- TaskId
- Opaque unique identifier for a
Task. - Task
IdParams - Minimal parameters identifying a single task by ID.
- Task
List Response - The result of a
ListTaskscall: a page of tasks with pagination. - Task
Push Notification Config - Configuration for delivering task updates to a webhook endpoint.
- Task
Query Params - Parameters for the
GetTaskmethod. - Task
Status - The current status of a
Task, combining state with an optional message and timestamp. - Task
Status Update Event - A streaming event that reports a change in task state.
- Task
Version - Monotonically increasing version counter for optimistic concurrency control.
Enums§
- ApiKey
Location - Where an API key is placed in the request.
- Error
Code - Numeric error codes defined by JSON-RPC 2.0 and the A2A v1.0 specification.
- Json
RpcResponse - A JSON-RPC 2.0 response: either a success with a
resultor an error with anerrorobject. - Message
Role - The originator of a
Message. - Part
Content - The content of a
Part, discriminated by field presence (proto oneof). - Security
Scheme - A security scheme supported by an agent, discriminated by the
"type"field. - Send
Message Response - The result of a
SendMessagecall: either a completedTaskor an immediateMessageresponse. - Stream
Response - A single event payload in an A2A streaming response.
- Task
State - The lifecycle state of a
Task.
Constants§
- A2A_
CONTENT_ TYPE - A2A-specific content type for JSON payloads.
- A2A_
VERSION - A2A protocol version string.
- A2A_
VERSION_ HEADER - HTTP header name for the A2A protocol version.
Functions§
- utc_
now_ iso8601 - Returns the current UTC time as an ISO 8601 string (e.g.
"2026-03-15T12:00:00Z").
Type Aliases§
- A2aResult
- Convenience type alias:
Result<T, A2aError>. - Authenticated
Extended Card Response - The full (private) agent card returned by
agent/authenticatedExtendedCard. - Json
RpcId - A JSON-RPC 2.0 request/response identifier.
- Named
Security Schemes - A map from security scheme name to its definition, as used in
AgentCard.securitySchemes.