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

Method __call__

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

Source from the content-addressed store, hash-verified

323 self.requests: list[APIRequest] = []
324
325 async def __call__(self, request: APIRequest, call_next: AsyncCallNext) -> Any:
326 self.requests.append(request)
327 return await call_next(request)
328
329
330class SyncCallableMiddleware:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected