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

Function test_tool_schema_complex

tests/test_tool_schema.py:166–175  ·  view source on GitHub ↗

Test tool with complex input schema.

()

Source from the content-addressed store, hash-verified

164
165
166def test_tool_schema_complex():
167 """Test tool with complex input schema."""
168 tool = MockSearchTool()
169 schema = tool.to_schema()
170
171 assert schema["name"] == "search_database"
172 assert "query" in schema["input_schema"]["properties"]
173 assert "filters" in schema["input_schema"]["properties"]
174 assert "limit" in schema["input_schema"]["properties"]
175 assert schema["input_schema"]["required"] == ["query"]
176
177
178def test_tool_openai_schema_complex():

Callers

nothing calls this directly

Calls 2

MockSearchToolClass · 0.85
to_schemaMethod · 0.80

Tested by

no test coverage detected