Available on crate feature
grpc only.Expand description
gRPC transport implementation for the A2A client.
GrpcTransport speaks the canonical lf.a2a.v1.A2AService — the
protobuf-native A2A v1.0 binding — and is wire-compatible with servers
from the official Go, Python, and Java A2A SDKs as well as this crate’s
own GrpcDispatcher. JSON params
from the client core are converted to typed protobuf messages via
a2a_protocol_types::proto before hitting the wire.
Releases before 0.7 tunneled JSON inside a protobuf bytes envelope on
a non-standard service; that client was removed in 0.7 and the matching
server tunnel in 0.8. The canonical service is the only gRPC surface.
§Configuration
Use GrpcTransportConfig to control timeouts and message sizes.
§Example
use a2a_protocol_client::transport::grpc::GrpcTransport;
use a2a_protocol_client::ClientBuilder;
let transport = GrpcTransport::connect("http://localhost:50051").await?;
let client = ClientBuilder::new("http://localhost:50051")
.with_custom_transport(transport)
.build()?;Structs§
- Certificate
- Represents a X509 certificate.
- Client
TlsConfig - Configures TLS settings for endpoints.
- Grpc
Transport - gRPC transport for A2A clients.
- Grpc
Transport Config - Configuration for the gRPC transport.
- Identity
- Represents a private key and X509 certificate.
Enums§
- Grpc
Bare Address Scheme - How a gRPC interface address that carries no scheme is connected.
Functions§
- tls_
config_ from_ pem grpc-tls - A gRPC TLS configuration from PEM, keeping the default roots.