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

Method __init__

src/anthropic/_request.py:21–38  ·  view source on GitHub ↗
(
        self,
        *,
        options: FinalRequestOptions,
        cast_to: Any,
        stream: bool = False,
        stream_cls: type[Any] | None = None,
        retries_taken: int = 0,
    )

Source from the content-addressed store, hash-verified

19 """
20
21 def __init__(
22 self,
23 *,
24 options: FinalRequestOptions,
25 cast_to: Any,
26 stream: bool = False,
27 stream_cls: type[Any] | None = None,
28 retries_taken: int = 0,
29 ) -> None:
30 self.options = options
31 self.cast_to = cast_to
32 self.stream = stream
33 self.stream_cls = stream_cls
34 self.retries_taken = retries_taken
35 """The number of retries the SDK has already taken for this call.
36
37 `0` on the first attempt; the middleware chain is invoked once per HTTP attempt.
38 """
39
40 @property
41 def method(self) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected