Expand description
Sends the protocol version as a request parameter as well as a header.
Spec §3.6.1: “Clients MAY provide the A2A-Version as a request parameter
instead of a header”, with GET /tasks/task-123?A2A-Version=1.0 as its
example. The HTTP transports always send the A2A-Version header; this
interceptor adds the parameter beside it, for a deployment whose proxy or
gateway drops headers it does not know. A server that reads both, as this
SDK’s does, takes the header when it arrives and the parameter when it
does not, so sending both never changes the answer.
The parameter reaches the wire on the JSON-RPC and HTTP+JSON transports,
which append ClientRequest::query_params to the request URL. gRPC and
WebSocket have no per-request query string, and send the version as
metadata only.
Structs§
- Version
Query Interceptor - Adds
A2A-Version=<version>to every request’s query parameters (spec §3.6.1); see the module documentation.