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

Class Exploding

tests/test_middleware.py:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls