MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / main

Function main

tests/test_llm_clients.py:307–332  ·  view source on GitHub ↗

Run all LLM client tests.

()

Source from the content-addressed store, hash-verified

305
306
307async def main():
308 """Run all LLM client tests."""
309 print("=" * 80)
310 print("Running LLM Client Tests")
311 print("=" * 80)
312 print("\nNote: These tests require a valid MiniMax API key in config.yaml")
313
314 results = []
315
316 # Test Anthropic client
317 results.append(await test_anthropic_simple_completion())
318 results.append(await test_anthropic_tool_calling())
319
320 # Test OpenAI client
321 results.append(await test_openai_simple_completion())
322 results.append(await test_openai_tool_calling())
323
324 # Test multi-turn conversation
325 results.append(await test_multi_turn_conversation())
326
327 print("\n" + "=" * 80)
328 if all(results):
329 print("All LLM client tests passed! ✅")
330 else:
331 print("Some LLM client tests failed. Check the output above.")
332 print("=" * 80)
333
334
335if __name__ == "__main__":

Callers 1

Tested by

no test coverage detected