Skip to main content

Module client

Module client 

Source
Expand description

HTTP client for sending A2A requests.

Modules§

auth
Authentication interceptor and credential storage.
builder
Fluent builder for A2aClient.
client
Core A2aClient struct 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.
AuthInterceptor
A CallInterceptor that injects Authorization headers from a CredentialsStore.
ClientBuilder
Builder for A2aClient.
ClientConfig
Configuration for an crate::A2aClient instance.
ClientRequest
A logical A2A request as seen by interceptors.
ClientResponse
A logical A2A response as seen by interceptors.
EventStream
An async stream of StreamResponse events from an SSE endpoint.
InMemoryCredentialsStore
An in-memory CredentialsStore backed by an RwLock<HashMap>.
InterceptorChain
An ordered list of CallInterceptors applied to every request.
JsonRpcTransport
JSON-RPC 2.0 transport: HTTP POST to a single endpoint.
RestTransport
REST transport: HTTP verbs mapped to REST paths.
SessionId
Opaque identifier for a client authentication session.

Enums§

ClientError
Errors that can occur during A2A client operations.

Traits§

CallInterceptor
Hooks called before every A2A request and after every response.
CredentialsStore
Persistent storage for auth credentials, keyed by session + scheme.
Transport
The low-level HTTP transport interface.

Functions§

resolve_agent_card
Fetches the AgentCard from the standard well-known path.

Type Aliases§

ClientResult
Convenience type alias: Result<T, ClientError>.