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

Method __init__

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

Source from the content-addressed store, hash-verified

305 """A middleware object that is a class instance with a sync `__call__` method."""
306
307 def __init__(self) -> None:
308 self.requests: list[APIRequest] = []
309
310 def __call__(self, request: APIRequest, call_next: CallNext) -> Any:
311 self.requests.append(request)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected