Skip to main content

Module config

Module config 

Source
Expand description

Client configuration types.

ClientConfig controls how the client connects to agents: which transport to prefer, what content types to accept, timeouts, and TLS settings.

Structs§

ClientConfig
Configuration for an crate::A2aClient instance.

Enums§

GrpcBareAddressScheme
How a gRPC interface address that carries no scheme is connected.
TlsConfig
TLS configuration for the HTTP bindings (JSON-RPC, HTTP+JSON).

Constants§

BINDING_GRPC
gRPC protocol binding.
BINDING_HTTP_JSON
HTTP+JSON protocol binding (spec name for the REST transport).
BINDING_JSONRPC
Protocol binding identifier.
BINDING_REST
REST protocol binding (legacy alias for BINDING_HTTP_JSON).
DEFAULT_STREAM_FIRST_EVENT_TIMEOUT
Default for ClientConfig::stream_first_event_timeout: 5 minutes.
DEFAULT_STREAM_IDLE_TIMEOUT
Default for ClientConfig::stream_idle_timeout: 5 minutes.