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

Method __init__

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

Source from the content-addressed store, hash-verified

331 """A middleware object that is a class instance with a sync `__call__` method."""
332
333 def __init__(self) -> None:
334 self.requests: list[APIRequest] = []
335
336 def __call__(self, request: APIRequest, call_next: CallNext) -> Any:
337 self.requests.append(request)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected