MCPcopy Create free account

hub / github.com/anthropics/anthropic-sdk-python / functions

Functions12,274 in github.com/anthropics/anthropic-sdk-python

Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_errors.py:160
Method__init__
(self)
src/anthropic/lib/tools/_toolsets/_errors.py:167
Method__init__
( self, *, upload_roots: Sequence[str | os.PathLike[str]] = (), upload_documen
src/anthropic/lib/tools/_toolsets/_security.py:176
Method__init__
(self, beta: Beta)
src/anthropic/lib/bedrock/_beta.py:68
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/bedrock/_beta.py:77
Method__init__
(self, beta: Beta)
src/anthropic/lib/bedrock/_beta.py:86
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/bedrock/_beta.py:95
Method__init__
(self, messages: Messages)
src/anthropic/lib/bedrock/_beta_messages.py:71
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/bedrock/_beta_messages.py:83
Method__init__
(self, messages: Messages)
src/anthropic/lib/bedrock/_beta_messages.py:95
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/bedrock/_beta_messages.py:104
Method__init__
( self, *, cast_to: type[_T], response: httpx2.Response, client: Async
src/anthropic/lib/bedrock/_stream.py:28
Method__init__
( self, *, aws_access_key: str | None = None, aws_secret_key: str | None = Non
src/anthropic/lib/bedrock/_mantle.py:347
Method__init__
( self, aws_secret_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/bedrock/_client.py:293
Method__init__
(self)
src/anthropic/lib/bedrock/_stream_decoder.py:26
Method__init__
( self, *, owned_event: Optional[_EventT], force: bool, advisory_fallb
src/anthropic/lib/credentials/_cache.py:57
Method__init__
( self, provider: AccessTokenProvider | AsyncAccessTokenProvider, *, advisory_
src/anthropic/lib/credentials/_cache.py:115
Method__init__
(self, token_cache: TokenCache)
src/anthropic/lib/credentials/_auth.py:69
Method__init__
(self, token: str)
src/anthropic/lib/credentials/_providers.py:121
Method__init__
(self, env_var: str = ENV_AUTH_TOKEN)
src/anthropic/lib/credentials/_providers.py:132
Method__init__
( self, profile: Optional[str] = None, *, http_client: Optional[httpx2.Client]
src/anthropic/lib/credentials/_providers.py:188
Method__init__
(self, path: Union[str, "os.PathLike[str]", None] = None)
src/anthropic/lib/credentials/_providers.py:753
Method__init__
( self, config: Dict[str, Any], *, identity_token_provider: Optional[IdentityT
src/anthropic/lib/credentials/_providers.py:825
Method__init__
(self, type_name: str)
src/anthropic/lib/credentials/_secrets.py:25
Method__init__
( self, message: str, *, status_code: Optional[int] = None, body: Any
src/anthropic/lib/credentials/_workload.py:114
Method__init__
( self, *, identity_token_provider: IdentityTokenProvider, federation_rule_id:
src/anthropic/lib/credentials/_workload.py:159
Method__init__
(self)
src/anthropic/lib/middleware/_fallbacks.py:80
Method__init__
Args: fallbacks: The fallback chain, tried in order. An empty chain disables the middleware. betas:
src/anthropic/lib/middleware/_fallbacks.py:178
Method__init__
( self, *, index_base: int, has_next: bool, splice: _SpliceInfo | None
src/anthropic/lib/middleware/_fallbacks.py:830
Method__init__
(self, body: dict[str, Any])
src/anthropic/lib/middleware/_fallbacks.py:1091
Method__init__
(self, index_base: int = 0)
src/anthropic/lib/middleware/_fallbacks.py:1275
Method__init__
(self, frames: Generator[bytes, None, None])
src/anthropic/lib/middleware/_fallbacks.py:1695
Method__init__
(self, frames: AsyncGenerator[bytes, None])
src/anthropic/lib/middleware/_fallbacks.py:1708
Method__init__
(self, *, library: str, extra: str)
src/anthropic/lib/_extras/_common.py:12
Method__init__
( self, raw_stream: Stream[BetaRawMessageStreamEvent], output_format: ResponseFormatT
src/anthropic/lib/streaming/_beta_messages.py:48
Method__init__
( self, api_request: Callable[[], Stream[BetaRawMessageStreamEvent]], *, outpu
src/anthropic/lib/streaming/_beta_messages.py:184
Method__init__
( self, raw_stream: AsyncStream[BetaRawMessageStreamEvent], output_format: ResponseFor
src/anthropic/lib/streaming/_beta_messages.py:220
Method__init__
( self, api_request: Awaitable[AsyncStream[BetaRawMessageStreamEvent]], *, out
src/anthropic/lib/streaming/_beta_messages.py:358
Method__init__
( self, raw_stream: Stream[RawMessageStreamEvent], output_format: ResponseFormatT | No
src/anthropic/lib/streaming/_messages.py:45
Method__init__
( self, api_request: Callable[[], Stream[RawMessageStreamEvent]], *, output_fo
src/anthropic/lib/streaming/_messages.py:174
Method__init__
( self, raw_stream: AsyncStream[RawMessageStreamEvent], output_format: ResponseFormatT
src/anthropic/lib/streaming/_messages.py:210
Method__init__
( self, api_request: Awaitable[AsyncStream[RawMessageStreamEvent]], *, output_
src/anthropic/lib/streaming/_messages.py:341
Method__init__
( self, *, api_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/aws/_client.py:260
Method__init__
( self, thread: BetaAsyncMessageThread[ResponseFormatT], messages: Iterable[BetaMessag
src/anthropic/lib/threads/_stream_managers.py:73
Method__init__
Start a thread on `client` with the arguments of `client.beta.messages.thread()`. Sends nothing.
src/anthropic/lib/threads/_beta_threads.py:144
Method__init__
Start a thread on `client` with the arguments of `client.beta.messages.thread()`. Sends nothing.
src/anthropic/lib/threads/_beta_threads.py:357
Method__init__
( self, *, params: ParseMessageCreateParamsBase[ResponseFormatT], options: Req
src/anthropic/lib/threads/_thread_state.py:59
Method__init__
(self, *, replaces_lost_thread: bool = False)
src/anthropic/lib/threads/_thread_state.py:477
Method__init__
( self, *, created_with: TurnOverrides, given_for_the_turn: TurnOverrides, replaces_lost_thread: bool
src/anthropic/lib/threads/_thread_state.py:487
Method__init__
(self, *, previous_message_id: str, created_with: TurnOverrides, replaces_lost_thread: bool)
src/anthropic/lib/threads/_thread_state.py:502
Method__init__
(self, param: BetaMessageParam)
src/anthropic/lib/threads/_thread_state.py:534
Method__init__
(self, message: BetaMessage, *, partial: bool = False)
src/anthropic/lib/threads/_thread_state.py:544
Method__init__
(self, started_with: list[Entry])
src/anthropic/lib/threads/_thread_state.py:557
Method__init__
(self, output_type: type[ResponseFormatT])
src/anthropic/lib/threads/_thread_state.py:566
Method__init__
( self, options: ResolvedOpenTelemetryOptions, *, provider_name: str, platform: str | None = None
src/anthropic/lib/_tracing/_config.py:15
Method__init__
( self, span: trace.Span, body: MessageCreateBody, *, span_name: str |
src/anthropic/lib/_tracing/_streaming.py:42
Method__init__
(self, beta: Beta)
src/anthropic/lib/vertex/_beta.py:68
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/vertex/_beta.py:77
Method__init__
(self, beta: Beta)
src/anthropic/lib/vertex/_beta.py:86
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/vertex/_beta.py:95
Method__init__
(self, messages: Messages)
src/anthropic/lib/vertex/_beta_messages.py:73
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/vertex/_beta_messages.py:88
Method__init__
(self, messages: Messages)
src/anthropic/lib/vertex/_beta_messages.py:103
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/vertex/_beta_messages.py:115
Method__init__
( self, *, region: str | NotGiven = not_given, project_id: str | NotGiven = no
src/anthropic/lib/vertex/_client.py:225
Method__init__
(self, credentials: GoogleCredentials | None)
src/anthropic/lib/google_cloud/_client.py:79
Method__init__
Construct a new asynchronous Claude Models on Google Cloud (Anthropic managed) client. `token_provider` may be sync or async; sync providers
src/anthropic/lib/google_cloud/_client.py:497
Method__init__
(self, aiohttp_response: ClientResponse)
src/anthropic/_vendor/httpx_aiohttp/transport.py:69
Method__init__
( self, verify: ssl.SSLContext | str | bool = True, cert: t.Union[str, t.Tuple[str, st
src/anthropic/_vendor/httpx_aiohttp/transport.py:83
Method__init__
( self, *, raw_iterator: AsyncIterator[bytes], line_type: type[_T], ht
src/anthropic/_decoders/jsonl.py:86
Method__init__
(self, client: Anthropic | AsyncAnthropic)
tests/test_prepare.py:60
Method__init__
(self)
tests/test_prepare.py:140
Method__init__
(self)
tests/utils.py:191
Method__init__
(self)
tests/test_open_telemetry.py:196
Method__init__
(self)
tests/test_open_telemetry.py:701
Method__init__
(self)
tests/test_open_telemetry.py:1921
Method__init__
(self, inner: TextMapPropagator)
tests/test_open_telemetry.py:4090
Method__init__
(self)
tests/test_open_telemetry.py:4112
Method__init__
(self, **options: Any)
tests/test_open_telemetry.py:4692
Method__init__
(self, **options: Any)
tests/test_open_telemetry.py:4699
Method__init__
(self, failure: str)
tests/test_open_telemetry.py:7891
Method__init__
( self, handler: Callable[[httpx2.Request], httpx2.Response] | Callable[[httpx2.Reques
tests/test_client.py:65
Method__init__
(self, name: str = "middleware", events: "list[str] | None" = None)
tests/test_middleware.py:91
Method__init__
(self, **changes: object)
tests/test_middleware.py:117
Method__init__
(self, fallback_model: str)
tests/test_middleware.py:135
Method__init__
(self, max_tokens: int)
tests/test_middleware.py:159
Method__init__
(self, message: Message)
tests/test_middleware.py:183
Method__init__
(self)
tests/test_middleware.py:201
Method__init__
(self)
tests/test_middleware.py:258
Method__init__
(self)
tests/test_middleware.py:277
Method__init__
(self)
tests/test_middleware.py:296
Method__init__
(self)
tests/test_middleware.py:307
Method__init__
(self)
tests/test_middleware.py:338
Method__init__
(self, attributes: Any, *, sampled: bool)
tests/test_tracing.py:33
Method__init__
(self, provider: RecordingProvider)
tests/test_tracing.py:54
Method__init__
(self, *, sampled: bool = True)
tests/test_tracing.py:69
Method__init__
(self)
tests/test_tracing.py:81
Method__init__
(self, **kwargs: Any)
tests/test_streaming.py:297
Method__init__
(self, now: float = 1000.0)
tests/lib/test_credentials.py:1582
Method__init__
(self, tokens: List[AccessToken])
tests/lib/test_credentials.py:1590
← previousnext →2,501–2,600 of 12,274, ranked by callers