Pydantic AI agents
Pydantic AI agents are reached through the gateway's A2A agent registry, not through a model prefix. Register the agent with POST /v1/agents and spanway_params.custom_llm_provider set to pydantic_ai_agents, point agent_card_params.url at the agent's A2A server, grant the agent to a key or team, and call it at /a2a/<agent name> with a virtual key. Every call is authenticated, logged and costed like a model call, and the calling team never holds the agent's own credentials.
Credentials
The Pydantic AI 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 Pydantic AI 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.