Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix invoke_agent_a2a

Ishaan Jaffer5cc1a5031bd7
diff --git a/litellm/proxy/agent_endpoints/a2a_endpoints.py b/litellm/proxy/agent_endpoints/a2a_endpoints.py
index 95f1f9a3f88..03b81fd7f70 100644
--- a/litellm/proxy/agent_endpoints/a2a_endpoints.py
+++ b/litellm/proxy/agent_endpoints/a2a_endpoints.py
@@ -89,7 +89,6 @@ async def get_agent_card(
The URL in the agent card is rewritten to point to the LiteLLM proxy,
so all subsequent A2A calls go through LiteLLM for logging and cost tracking.
"""
- from litellm.proxy._types import LitellmUserRoles
from litellm.proxy.agent_endpoints.auth.agent_permission_handler import (
AgentRequestHandler,
)
@@ -155,7 +154,6 @@ async def invoke_agent_a2a(
- message/stream: Send a message and stream the response
"""
from litellm.a2a_protocol import asend_message, create_a2a_client
- from litellm.proxy._types import LitellmUserRoles
from litellm.proxy.agent_endpoints.auth.agent_permission_handler import (
AgentRequestHandler,
)