MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / lookup

Function lookup

tests/lib/threads/helpers.py:144–150  ·  view source on GitHub ↗

Lookup the population of a given city. Args: location: The city, e.g. San Francisco

(location: str)

Source from the content-addressed store, hash-verified

142
143
144def lookup(location: str) -> str:
145 """Lookup the population of a given city.
146
147 Args:
148 location: The city, e.g. San Francisco
149 """
150 return f"800,000 people live in {location}"
151
152
153async def async_lookup(location: str) -> str:

Callers 2

runFunction · 0.85
async_lookupFunction · 0.85

Calls

no outgoing calls

Tested by 1

runFunction · 0.68