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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected