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

Class Exploding

tests/test_middleware.py:231–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231class Exploding(Middleware):
232 @override
233 def handle(self, request: APIRequest, call_next: CallNext) -> Any: # noqa: ARG002
234 raise Boom("middleware failure")
235
236 @override
237 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any: # noqa: ARG002
238 raise Boom("middleware failure")
239
240
241class SyncOnlyMiddleware(Middleware):

Calls

no outgoing calls