MCPcopy Create free account

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

Functions4,911 in github.com/anthropics/anthropic-sdk-python

Method__init__
(self, versions: Versions)
src/anthropic/resources/beta/agents/versions.py:216
Method__init__
(self, versions: AsyncVersions)
src/anthropic/resources/beta/agents/versions.py:225
Method__init__
(self, batches: Batches)
src/anthropic/resources/messages/batches.py:648
Method__init__
(self, batches: AsyncBatches)
src/anthropic/resources/messages/batches.py:669
Method__init__
(self, batches: Batches)
src/anthropic/resources/messages/batches.py:690
Method__init__
(self, batches: AsyncBatches)
src/anthropic/resources/messages/batches.py:711
Method__init__
(self, messages: Messages)
src/anthropic/resources/messages/messages.py:3084
Method__init__
(self, messages: AsyncMessages)
src/anthropic/resources/messages/messages.py:3100
Method__init__
(self, messages: Messages)
src/anthropic/resources/messages/messages.py:3116
Method__init__
(self, messages: AsyncMessages)
src/anthropic/resources/messages/messages.py:3132
Method__init__
( self, *, alias: str | None = None, format: PropertyFormat | None = None,
src/anthropic/_utils/_transform.py:60
Method__init__
(self)
src/anthropic/lib/foundry.py:35
Method__init__
( self, *, resource: str | None = None, api_key: str | None = None, az
src/anthropic/lib/foundry.py:322
Method__init__
( self, client: AsyncAnthropic, *, environment_id: str | None = None,
src/anthropic/lib/environments/_worker.py:253
Method__init__
( self, *, params: ParseMessageCreateParamsBase[ResponseFormatT], options: Req
src/anthropic/lib/tools/_beta_runner.py:142
Method__init__
( self, *, params: ParseMessageCreateParamsBase[ResponseFormatT], options: Req
src/anthropic/lib/tools/_beta_runner.py:429
Method__init__
(self, *, cache_control: BetaCacheControlEphemeralParam | None = None)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:200
Method__init__
(self, base_path: str = "./memory")
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:381
Method__init__
(self, base_path: str = "./memory")
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:663
Method__init__
Use :meth:`BashSession.start` to construct — ``__init__`` takes an already-spawned process and is intended for internal use.
src/anthropic/lib/tools/agent_toolset.py:357
Method__init__
( self, func: CallableT, *, name: str | None = None, description: str
src/anthropic/lib/tools/_beta_functions.py:139
Method__init__
(self, *, func: Callable[..., Any], parsed_docstring: Any)
src/anthropic/lib/tools/_beta_functions.py:224
Method__init__
(self)
src/anthropic/lib/tools/_beta_session_runner.py:158
Method__init__
( self, client: AsyncAnthropic, session_id: str, *, tools: Sequence[Be
src/anthropic/lib/tools/_beta_session_runner.py:417
Method__init__
(self, beta: Beta)
src/anthropic/lib/bedrock/_beta.py:70
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/bedrock/_beta.py:79
Method__init__
(self, beta: Beta)
src/anthropic/lib/bedrock/_beta.py:88
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/bedrock/_beta.py:97
Method__init__
(self, messages: Messages)
src/anthropic/lib/bedrock/_beta_messages.py:61
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/bedrock/_beta_messages.py:70
Method__init__
(self, messages: Messages)
src/anthropic/lib/bedrock/_beta_messages.py:79
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/bedrock/_beta_messages.py:88
Method__init__
( self, *, cast_to: type[_T], response: httpx.Response, client: AsyncA
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:373
Method__init__
( self, aws_secret_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/bedrock/_client.py:318
Method__init__
(self)
src/anthropic/lib/bedrock/_stream_decoder.py:26
Method__init__
( self, provider: AccessTokenProvider, *, advisory_refresh_seconds: int = ADVI
src/anthropic/lib/credentials/_cache.py:51
Method__init__
(self, token_cache: TokenCache)
src/anthropic/lib/credentials/_auth.py:81
Method__init__
(self, token: str)
src/anthropic/lib/credentials/_providers.py:120
Method__init__
(self, env_var: str = ENV_AUTH_TOKEN)
src/anthropic/lib/credentials/_providers.py:131
Method__init__
( self, profile: Optional[str] = None, *, http_client: Optional[httpx.Client]
src/anthropic/lib/credentials/_providers.py:187
Method__init__
(self, path: Union[str, "os.PathLike[str]", None] = None)
src/anthropic/lib/credentials/_providers.py:731
Method__init__
( self, config: Dict[str, Any], *, identity_token_provider: Optional[IdentityT
src/anthropic/lib/credentials/_providers.py:798
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:116
Method__init__
( self, *, identity_token_provider: IdentityTokenProvider, federation_rule_id:
src/anthropic/lib/credentials/_workload.py:161
Method__init__
(self)
src/anthropic/lib/middleware/_fallbacks.py:78
Method__init__
Args: fallbacks: The fallback chain, tried in order. An empty chain disables the middleware. betas:
src/anthropic/lib/middleware/_fallbacks.py:170
Method__init__
( self, *, index_base: int, has_next: bool, splice: _SpliceInfo | None
src/anthropic/lib/middleware/_fallbacks.py:811
Method__init__
(self, body: dict[str, Any])
src/anthropic/lib/middleware/_fallbacks.py:1062
Method__init__
(self, index_base: int = 0)
src/anthropic/lib/middleware/_fallbacks.py:1234
Method__init__
(self, frames: Generator[bytes, None, None])
src/anthropic/lib/middleware/_fallbacks.py:1613
Method__init__
(self, frames: AsyncGenerator[bytes, None])
src/anthropic/lib/middleware/_fallbacks.py:1626
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:47
Method__init__
( self, api_request: Callable[[], Stream[BetaRawMessageStreamEvent]], *, outpu
src/anthropic/lib/streaming/_beta_messages.py:160
Method__init__
( self, raw_stream: AsyncStream[BetaRawMessageStreamEvent], output_format: ResponseFor
src/anthropic/lib/streaming/_beta_messages.py:196
Method__init__
( self, api_request: Awaitable[AsyncStream[BetaRawMessageStreamEvent]], *, out
src/anthropic/lib/streaming/_beta_messages.py:311
Method__init__
( self, raw_stream: Stream[RawMessageStreamEvent], output_format: ResponseFormatT | No
src/anthropic/lib/streaming/_messages.py:44
Method__init__
( self, api_request: Callable[[], Stream[RawMessageStreamEvent]], *, output_fo
src/anthropic/lib/streaming/_messages.py:156
Method__init__
( self, raw_stream: AsyncStream[RawMessageStreamEvent], output_format: ResponseFormatT
src/anthropic/lib/streaming/_messages.py:192
Method__init__
( self, api_request: Awaitable[AsyncStream[RawMessageStreamEvent]], *, output_
src/anthropic/lib/streaming/_messages.py:306
Method__init__
( self, *, api_key: str | None = None, aws_access_key: str | None = None,
src/anthropic/lib/aws/_client.py:242
Method__init__
(self, beta: Beta)
src/anthropic/lib/vertex/_beta.py:70
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/vertex/_beta.py:79
Method__init__
(self, beta: Beta)
src/anthropic/lib/vertex/_beta.py:88
Method__init__
(self, beta: AsyncBeta)
src/anthropic/lib/vertex/_beta.py:97
Method__init__
(self, messages: Messages)
src/anthropic/lib/vertex/_beta_messages.py:65
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/vertex/_beta_messages.py:74
Method__init__
(self, messages: Messages)
src/anthropic/lib/vertex/_beta_messages.py:83
Method__init__
(self, messages: AsyncMessages)
src/anthropic/lib/vertex/_beta_messages.py:92
Method__init__
( self, *, region: str | NotGiven = NOT_GIVEN, project_id: str | NotGiven = NO
src/anthropic/lib/vertex/_client.py:260
Method__init__
(self, credentials: GoogleCredentials | None)
src/anthropic/lib/google_cloud/_client.py:58
Method__init__
Construct a new asynchronous Claude Platform on Google Cloud client. ``token_provider`` may be sync or async; sync providers are run off the
src/anthropic/lib/google_cloud/_client.py:463
Method__init__
( self, *, raw_iterator: AsyncIterator[bytes], line_type: type[_T], ht
src/anthropic/_decoders/jsonl.py:79
Method__init__
( self, handler: Callable[[httpx.Request], httpx.Response] | Callable[[httpx.Request],
tests/test_client.py:63
Method__init__
(self, name: str = "middleware", events: "list[str] | None" = None)
tests/test_middleware.py:90
Method__init__
(self, **changes: object)
tests/test_middleware.py:116
Method__init__
(self, fallback_model: str)
tests/test_middleware.py:134
Method__init__
(self, max_tokens: int)
tests/test_middleware.py:158
Method__init__
(self, message: Message)
tests/test_middleware.py:182
Method__init__
(self)
tests/test_middleware.py:200
Method__init__
(self)
tests/test_middleware.py:257
Method__init__
(self)
tests/test_middleware.py:276
Method__init__
(self)
tests/test_middleware.py:295
Method__init__
(self)
tests/test_middleware.py:306
Method__init__
(self)
tests/test_middleware.py:337
Method__init__
(self, now: float = 1000.0)
tests/lib/test_credentials.py:1347
Method__init__
(self, tokens: List[AccessToken])
tests/lib/test_credentials.py:1355
Method__init__
(self, token: str | None, *, expired: bool = False, project_id: str | None = None)
tests/lib/test_google_cloud.py:52
Method__init__
(self, *, id: str = "work_1")
tests/lib/environments/test_poller_method.py:31
Method__init__
(self, poll_script: list[Any])
tests/lib/environments/test_poller_method.py:48
Method__init__
(self, poll_script: list[Any])
tests/lib/environments/test_poller_method.py:71
Method__init__
(self, *, heartbeat_state: str = "stopping")
tests/lib/environments/test_worker.py:37
Method__init__
(self)
tests/lib/environments/test_worker.py:76
Method__init__
(self, type: str, **kw: Any)
tests/lib/tools/test_session_runner.py:65
Method__init__
( self, events: list[_StubEvent], *, raise_after: int | None = None, r
tests/lib/tools/test_session_runner.py:136
Method__init__
( self, *, streams: list[_FakeStream | BaseException] | None = None, stream_ev
tests/lib/tools/test_session_runner.py:170
Method__init__
( self, name: str, fn: Callable[[dict[str, Any]], Awaitable[Any]], *,
tests/lib/tools/test_session_runner.py:231
Method__init__
(self, events: FakeAsyncEvents)
tests/lib/tools/test_session_runner.py:251
← previousnext →1,101–1,200 of 4,911, ranked by callers