Expand description
HTTP client for sending A2A requests.
Modules§
- auth
- Authentication interceptor and credential storage.
- builder
- Fluent builder for
A2aClient. - client
- Core
A2aClientstruct and constructors. - config
- Client configuration types.
- discovery
- Agent card discovery with HTTP caching.
- error
- Client error types.
- interceptor
- Request/response interceptor infrastructure.
- methods
- Per-method client helpers.
- streaming
- SSE client-side streaming support.
- tls
- TLS connector via rustls.
- transport
- Transport abstraction for A2A client requests.
Structs§
- A2aClient
- A client for communicating with A2A-compliant agents.
- Auth
Interceptor - A
CallInterceptorthat injectsAuthorizationheaders from aCredentialsStore. - Client
Builder - Builder for
A2aClient. - Client
Config - Configuration for an
crate::A2aClientinstance. - Client
Request - A logical A2A request as seen by interceptors.
- Client
Response - A logical A2A response as seen by interceptors.
- Event
Stream - An async stream of
StreamResponseevents from an SSE endpoint. - InMemory
Credentials Store - An in-memory
CredentialsStorebacked by anRwLock<HashMap>. - Interceptor
Chain - An ordered list of
CallInterceptors applied to every request. - Json
RpcTransport - JSON-RPC 2.0 transport: HTTP POST to a single endpoint.
- Rest
Transport - REST transport: HTTP verbs mapped to REST paths.
- Session
Id - Opaque identifier for a client authentication session.
Enums§
- Client
Error - Errors that can occur during A2A client operations.
Traits§
- Call
Interceptor - Hooks called before every A2A request and after every response.
- Credentials
Store - Persistent storage for auth credentials, keyed by session + scheme.
- Transport
- The low-level HTTP transport interface.
Functions§
- resolve_
agent_ card - Fetches the
AgentCardfrom the standard well-known path.
Type Aliases§
- Client
Result - Convenience type alias:
Result<T, ClientError>.