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

Function call

tests/lib/tools/test_runner_eager_tools.py:801–804  ·  view source on GitHub ↗

The model calls `lookup(key=key)` with the id `toolu_ `. `json_input` is the input as sent, which may be cut off.

(key: str, json_input: str | None = None)

Source from the content-addressed store, hash-verified

799
800
801def call(key: str, json_input: str | None = None) -> Block:
802 """The model calls `lookup(key=key)` with the id `toolu_<key>`. `json_input` is the input as sent, which may be
803 cut off."""
804 return {"type": "tool_use", "key": key, "json": json.dumps({"key": key}) if json_input is None else json_input}
805
806
807def toolset_call(

Calls

no outgoing calls

Tested by

no test coverage detected