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

Method __call__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected