Skip to main content

A2A agents

A2A agents is available on the Spanway gateway through the a2a/ model prefix. You register an A2A agents model once in the gateway's config.yaml (or through the Admin UI), and every application then calls it through the gateway's OpenAI-compatible API with a Spanway virtual key. The provider credential stays on the gateway, and every request is authenticated, rate limited, logged and costed in the same way as any other provider.

The gateway translates requests and responses for A2A agents natively, so provider specific parameters and errors are mapped to the OpenAI format for you.

Supported endpoints​

The gateway's endpoint support matrix lists the following endpoints for A2A agents. Each link explains the request shape and the gateway features that apply to that endpoint.

Credentials​

The A2A agents integration does not read a provider specific environment variable. Set api_base, and api_key when the server requires one, directly in spanway_params. Use the os.environ/ prefix to pull those values from the environment or from a configured secret manager.

Pricing​

The price map bundled with this Spanway build has no entries for A2A agents. Without a price the gateway still serves and logs requests, but it cannot compute their cost. Add input_cost_per_token and output_cost_per_token to the deployment to enable spend tracking, as described in custom pricing.