(invocation: ToolInvocation)
| 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", "") |
| 298 | if not country_called.done(): |
| 299 | country_called.set_result(country) |
| 300 | return ToolResult(text_result_for_llm=f"COUNTRY_{country.upper()}") |
| 301 | |
| 302 | session = await ctx.client.create_session( |
| 303 | on_permission_request=PermissionHandler.approve_all, |
nothing calls this directly
no test coverage detected