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

Function refusing

tests/lib/tools/toolsets/test_confirm.py:193–194  ·  view source on GitHub ↗
(context: BetaConfirmContext)

Source from the content-addressed store, hash-verified

191 assert refusal(FakeBrowser(confirm=broken), CTX, "left_click", CLICK) == FAILED
192
193 def refusing(context: BetaConfirmContext) -> bool:
194 raise ToolError("clicks are disabled after 5pm")
195
196 assert refusal(FakeBrowser(confirm=refusing), CTX, "left_click", CLICK) == "clicks are disabled after 5pm"
197

Callers

nothing calls this directly

Calls 1

ToolErrorClass · 0.90

Tested by

no test coverage detected