(invocation: ToolInvocation)
| 288 | country_called: asyncio.Future = asyncio.get_event_loop().create_future() |
| 289 | |
| 290 | def lookup_city(invocation: ToolInvocation) -> ToolResult: |
| 291 | city = (invocation.arguments or {}).get("city", "") |
| 292 | if not city_called.done(): |
| 293 | city_called.set_result(city) |
| 294 | return ToolResult(text_result_for_llm=f"CITY_{city.upper()}") |
| 295 | |
| 296 | def lookup_country(invocation: ToolInvocation) -> ToolResult: |
| 297 | country = (invocation.arguments or {}).get("country", "") |
nothing calls this directly
no test coverage detected