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

Function coroutine

tests/lib/tools/toolsets/test_enforcement.py:428–431  ·  view source on GitHub ↗
(ctx: BetaURLContext, url: str)

Source from the content-addressed store, hash-verified

426 raise ToolError("blocked: internal")
427
428 async def coroutine(ctx: BetaURLContext, url: str) -> None:
429 seen.append(("coroutine", ctx, url))
430 if "internal" in url:
431 raise ToolError("blocked: internal")
432
433 for policy in (plain, coroutine):
434 browser = AsyncFakeBrowser(url_policy=policy)

Callers

nothing calls this directly

Calls 2

ToolErrorClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected