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

Function gated

tests/lib/tools/test_session_runner.py:669–671  ·  view source on GitHub ↗
(_input: dict[str, Any])

Source from the content-addressed store, hash-verified

667 counter = {"calls": 0}
668
669 async def gated(_input: dict[str, Any]) -> str:
670 counter["calls"] += 1
671 return "ran"
672
673 tool = _FakeTool("gated", gated)
674 events = FakeAsyncEvents(stream_events=[_tool_use("tu_1", "gated", {}, evaluated_permission="ask"), _terminated()])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected