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

Method __call__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected