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

Method refuse

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected