{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "berriai-litellm--invoke-a2a-agents-through-ai-gateway",
 "repo": "BerriAI/litellm",
 "repo_url": "https://github.com/BerriAI/litellm",
 "repo_slug": "berriai-litellm",
 "title": "Call A2A agents through the AI Gateway",
 "page_title": "How to call A2A agents through the AI Gateway with Litellm",
 "summary": "Register an A2A agent on the gateway and send it messages from any A2A client.",
 "who": "A developer or platform team that runs agents from frameworks such as LangGraph or Pydantic AI and wants one gateway entry point for them.",
 "problem": "Each agent framework exposes its own endpoint and auth, so clients need separate setup for every agent.",
 "outcome": "A client sends a message to a named agent through the gateway and prints the text reply.",
 "steps": [
  "Add your agent to the AI Gateway by following https://docs.litellm.ai/docs/a2a#adding-your-agent and set protocolVersion to 1.0 or 0.3",
  "Install the A2A client with `pip install a2a-sdk>=1.1.0` (inferred from the README requirement) (inferred, check the README)",
  "Set the Authorization header to a LiteLLM master key or virtual key",
  "Create the client from the agent card at http://localhost:4000/a2a/<agent-name> and call send_message"
 ],
 "agent_prompt": "Using the litellm repo at <path>, register the agent <agent_name> on the gateway and send it the message 'Hello!' through an A2A client pointed at http://localhost:4000/a2a/<agent_name>. Expected output: the agent's text reply printed to the console. Verify that the agent card loads before sending the message.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README requires a2a-sdk version 1.1.0 or newer, and the agent must already be running on its own framework before the gateway can call it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python and the uv package manager installed",
  "API keys for the LLM providers you plan to call, such as OpenAI or Anthropic",
  "For the gateway use cases: a machine to run the proxy server on and a LiteLLM master key or virtual key for clients"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.6,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/berriai-litellm/invoke-a2a-agents-through-ai-gateway/",
 "md": "https://dedupedai.com/use-cases/berriai-litellm/invoke-a2a-agents-through-ai-gateway/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/berriai-litellm--invoke-a2a-agents-through-ai-gateway.json",
 "api_version": "v1"
}
