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

Class PassThroughMiddleware

tests/lib/test_client_copy.py:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172class PassThroughMiddleware(Middleware):
173 @override
174 def handle(self, request: APIRequest, call_next: CallNext) -> APIResponse[Any]:
175 return call_next(request)
176
177 @override
178 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> AsyncAPIResponse[Any]:
179 return await call_next(request)
180
181
182def platform_arguments(client_class: ClientClass) -> list[dict[str, object]]:

Callers 2

common_argumentsFunction · 0.85

Calls

no outgoing calls

Tested by 2

common_argumentsFunction · 0.68