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

Class MockWeatherTool

tests/test_tool_schema.py:10–35  ·  view source on GitHub ↗

Mock weather tool for testing.

Source from the content-addressed store, hash-verified

8
9
10class MockWeatherTool(Tool):
11 """Mock weather tool for testing."""
12
13 @property
14 def name(self) -> str:
15 return "get_weather"
16
17 @property
18 def description(self) -> str:
19 return "Get weather information"
20
21 @property
22 def parameters(self) -> dict[str, Any]:
23 return {
24 "type": "object",
25 "properties": {
26 "location": {
27 "type": "string",
28 "description": "Location name",
29 },
30 },
31 "required": ["location"],
32 }
33
34 async def execute(self, **kwargs) -> ToolResult:
35 return ToolResult(success=True, content="Weather data")
36
37
38class MockCalculatorTool(Tool):

Callers 4

test_tool_to_schemaFunction · 0.85
test_multiple_toolsFunction · 0.85
test_tool_executeFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_tool_to_schemaFunction · 0.68
test_multiple_toolsFunction · 0.68
test_tool_executeFunction · 0.68