Test tool with complex input schema.
()
| 164 | |
| 165 | |
| 166 | def 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 | |
| 178 | def test_tool_openai_schema_complex(): |
nothing calls this directly
no test coverage detected