Expand description
A2A protocol integration — re-exports from the published jamjet-a2a crate
plus the local ProtocolAdapter bridge.
Re-exports§
pub use adapter::A2aAdapter;
Modules§
- adapter
ProtocolAdapterimplementation for the A2A protocol.
Structs§
- A2aArtifact
- An output artifact produced by an agent while executing a task.
- A2aClient
- Async HTTP client for communicating with A2A v1.0 agents.
- A2aMessage
- A single conversational message exchanged between user and agent.
- A2aPart
- A single content part within a
MessageorArtifact. - A2aServer
- An A2A v1.0 server that serves an Agent Card, handles JSON-RPC requests, and streams SSE events.
- A2aTask
- Top-level task object in the A2A protocol.
- A2aTask
Status - Snapshot of a task’s current state, optionally carrying a status message.
- Cancel
Task Request - Request to cancel a running task.
- Federation
Identity - Result of federation auth validation.
- Federation
Policy - Authorization policy for incoming A2A requests.
- Federation
Token - A federation token with associated metadata.
- GetTask
Request - Request to retrieve a task by ID.
- InMemory
Task Store - A simple in-memory
TaskStorebacked by atokio::sync::Mutex. - Send
Message Configuration - Per-request configuration for
SendMessage. - Send
Message Request - Request body for the
SendMessage/StreamMessageRPC method. - Task
Artifact Update Event - A streaming event delivering an artifact chunk.
- Task
Status Update Event - A streaming event indicating that a task’s status has changed.
- TlsConfig
- TLS / mTLS configuration for A2A federation.
Enums§
- A2aError
- Top-level error enum combining protocol, transport, and auth errors.
- A2aProtocol
Error - Errors defined by the A2A v1.0 protocol specification.
- A2aStream
Event - A single frame in a streaming response — one of several event types.
- A2aTask
State - Terminal and non-terminal states a task can occupy.
- A2aTransport
Error - Transport-level errors (connection, timeout, SSE).
- Part
Content - The payload of a
Part. - Role
- Who authored a message.
- Send
Message Response - Response for
SendMessage— a wrapped Task or Message per A2A v1.0.
Traits§
- Task
Handler - User-provided handler that processes an incoming message for a task.
- Task
Store - Async storage backend for A2A tasks.
Functions§
- build_
mtls_ client - Build a
reqwest::Clientwith mTLS configuration for outbound A2A calls. - check_
method_ scopes - Check if an identity has the required scopes for a given RPC method.
- federation_
auth_ layer - Axum middleware layer for federation auth.
- validate_
federation_ token - Validate a Bearer token against the federation policy.
Type Aliases§
- Send
Task Request - Backward-compatible alias: the old
SendTaskRequestmaps to the v1.0SendMessageRequest.