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

Function run

tests/lib/tools/test_runner_eager_tools.py:1005–1010  ·  view source on GitHub ↗
(key: str)

Source from the content-addressed store, hash-verified

1003 otherwise."""
1004
1005 def run(key: str) -> str:
1006 timeline.append(f"lookup({key}) STARTS")
1007 value = f"value of {key}" if lookup is None else lookup(key)
1008 if log_returns:
1009 timeline.append(f"lookup({key}) returns")
1010 return value
1011
1012 if sync:
1013

Callers 2

sync_lookupFunction · 0.70
async_lookupFunction · 0.70

Calls 2

lookupFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected