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

Class Exploding

tests/test_middleware.py:259–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258
259class Exploding(Middleware):
260 @override
261 def handle(self, request: APIRequest, call_next: CallNext) -> Any: # noqa: ARG002
262 raise Boom("middleware failure")
263
264 @override
265 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any: # noqa: ARG002
266 raise Boom("middleware failure")
267
268
269class SyncOnlyMiddleware(Middleware):

Calls

no outgoing calls