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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test mcp agent
Ishaan Jaff19d6051dba59
diff --git a/tests/mcp_tests/test_mcp_litellm_client.py b/tests/mcp_tests/test_mcp_litellm_client.pyindex 448f0c3ce58..e69aec8553d 100644--- a/tests/mcp_tests/test_mcp_litellm_client.py+++ b/tests/mcp_tests/test_mcp_litellm_client.py@@ -42,11 +42,12 @@ async def test_mcp_agent():api_key=os.getenv("OPENAI_API_KEY"),messages=messages,tools=tools,+ tool_choice="required",)print("LLM RESPONSE: ", json.dumps(llm_response, indent=4, default=str))-# Add assertions to verify the responseassert llm_response["choices"][0]["message"]["tool_calls"] is not None+assert (llm_response["choices"][0]["message"]["tool_calls"][0]["function"]["name"