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

Method handle_async

tests/test_middleware.py:156–157  ·  view source on GitHub ↗
(self, request: APIRequest, call_next: AsyncCallNext)

Source from the content-addressed store, hash-verified

154
155 @override
156 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any:
157 return await call_next(APIRequest(options=request.options, cast_to=request.cast_to))
158
159
160class ModelFallback(Middleware):

Callers

nothing calls this directly

Calls 1

APIRequestClass · 0.90

Tested by

no test coverage detected