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

Method __call__

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

Source from the content-addressed store, hash-verified

297 self.requests: list[APIRequest] = []
298
299 async def __call__(self, request: APIRequest, call_next: AsyncCallNext) -> Any:
300 self.requests.append(request)
301 return await call_next(request)
302
303
304class SyncCallableMiddleware:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected