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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected