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

Method __init__

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

Source from the content-addressed store, hash-verified

198 """Records the `retries_taken` and response status of every attempt the chain runs for."""
199
200 def __init__(self) -> None:
201 self.attempts: list[int] = []
202 self.statuses: list[int] = []
203 self.errors: list[Exception] = []
204
205 @override
206 def handle(self, request: APIRequest, call_next: CallNext) -> Any:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected