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

Class Exploding

tests/test_middleware.py:233–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls