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

Method refuse

tests/test_open_telemetry.py:3573–3574  ·  view source on GitHub ↗
(_request: Any, _call_next: Callable[[Any], Any])

Source from the content-addressed store, hash-verified

3571 self, sync: bool, spans: Spans, respx_mock: MockRouter
3572 ) -> None:
3573 def refuse(_request: Any, _call_next: Callable[[Any], Any]) -> Any:
3574 raise ValueError("refused")
3575
3576 async def async_refuse(_request: Any, _call_next: Callable[[Any], Any]) -> Any:
3577 raise ValueError("refused")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected