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

Method __init__

tests/test_middleware.py:296–297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

294 """A middleware object that is a class instance with an async `__call__` method."""
295
296 def __init__(self) -> None:
297 self.requests: list[APIRequest] = []
298
299 async def __call__(self, request: APIRequest, call_next: AsyncCallNext) -> Any:
300 self.requests.append(request)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected