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

Function boom

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

Source from the content-addressed store, hash-verified

393@pytest.mark.asyncio()
394async def test_yields_error_for_failing_tool() -> None:
395 async def boom(_input: dict[str, Any]) -> str:
396 raise RuntimeError("nope")
397
398 tool = _FakeTool("boom", boom)
399 events = FakeAsyncEvents(stream_events=[_tool_use("tu_1", "boom", {}), _terminated()])

Callers

nothing calls this directly

Calls 1

ToolErrorClass · 0.90

Tested by

no test coverage detected