MCPcopy Create free account
hub / github.com/github/copilot-sdk / lookup_city

Method lookup_city

python/e2e/test_tools_e2e.py:290–294  ·  view source on GitHub ↗
(invocation: ToolInvocation)

Source from the content-addressed store, hash-verified

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", "")

Callers

nothing calls this directly

Calls 2

ToolResultClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected