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

Function _calls

tests/lib/tools/memory_sync/test_e2e_memory.py:103–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 @contextlib.asynccontextmanager
102 async def _run_session_tools(*_a: Any, **_kw: Any) -> AsyncIterator[AsyncIterator[int]]:
103 async def _calls() -> AsyncIterator[int]:
104 for i in range(tool_calls):
105 if on_call is not None:
106 on_call(i)
107 yield i
108 if then_raise is not None:
109 raise then_raise
110
111 yield _calls()
112

Callers 1

_run_session_toolsFunction · 0.85

Calls 1

on_callFunction · 0.85

Tested by

no test coverage detected