MCPcopy Create free account

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

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

Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:155
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:319
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/google_cloud/_client.py:340
Method_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/google_cloud/_client.py:579
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/bedrock/_mantle.py:459
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/bedrock/_client.py:219
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/bedrock/_client.py:399
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/aws/_client.py:145
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/aws/_client.py:353
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/vertex/_client.py:159
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/vertex/_client.py:323
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/google_cloud/_client.py:353
Method_prepare_request
(self, request: httpx.Request)
src/anthropic/lib/google_cloud/_client.py:592
Function_quote_fragment_part
Percent-encode `value` for use in a URI fragment. Considers characters not in `fragment` set from RFC 3986 §3.5 to be unsafe. https://datatra
src/anthropic/_utils/_path.py:38
Function_quote_path_segment_part
Percent-encode `value` for use in a URI path segment. Considers characters not in `pchar` set from RFC 3986 §3.3 to be unsafe. https://datatr
src/anthropic/_utils/_path.py:17
Function_quote_query_part
Percent-encode `value` for use in a URI query string. Considers &, = and characters not in `query` set from RFC 3986 §3.4 to be unsafe. https
src/anthropic/_utils/_path.py:29
Function_read_env_token
()
src/anthropic/lib/credentials/_chain.py:49
Method_record
(**kwargs: object)
tests/lib/test_google_cloud.py:213
Method_reset_shadow_one_shot
(self)
tests/lib/test_credentials.py:2932
Method_serialize
Always serialize as a list so Pydantic's JSON encoder is happy.
src/anthropic/_models.py:485
Method_set_private_attributes
( self, model: Type[_T], client: AsyncAPIClient, options: FinalRequestOptions,
src/anthropic/_base_client.py:340
Method_should_retry
(self, response: httpx.Response)
src/anthropic/_client.py:817
Method_sleep
(self, seconds: float)
src/anthropic/_resource.py:24
Method_sleep
(self, seconds: float)
src/anthropic/_resource.py:40
Method_spin
(self)
examples/memory/basic.py:61
Method_stop_watcher
When ``_stop`` is set, close the work stream so :meth:`_dispatch_loop` exits.
src/anthropic/lib/tools/_beta_session_runner.py:946
Method_stream_loop
(self)
src/anthropic/lib/tools/_beta_session_runner.py:631
Function_sync_noop
(_seconds: float)
tests/lib/environments/test_poller_method.py:102
Method_test
()
tests/lib/tools/test_mcp_tool.py:327
Method_validate
(v: Iterable[_T], handler: "ValidatorFunctionWrapHandler")
src/anthropic/_models.py:456
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/_client.py:371
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/_client.py:791
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/lib/foundry.py:314
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/lib/foundry.py:533
Method_validate_headers
(self, headers: Any, custom_headers: Any)
src/anthropic/lib/bedrock/_mantle.py:259
Method_validate_headers
(self, headers: Any, custom_headers: Any)
src/anthropic/lib/bedrock/_mantle.py:455
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/lib/aws/_client.py:347
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/lib/google_cloud/_client.py:320
Method_validate_headers
(self, headers: Headers, custom_headers: Headers)
src/anthropic/lib/google_cloud/_client.py:558
Function_waiter
(ev: anyio.Event)
src/anthropic/lib/tools/_beta_session_runner.py:956
Methoda_sync_cm
()
tests/lib/tools/test_functions.py:545
Methodack
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating se
src/anthropic/resources/beta/environments/work.py:789
Methodack
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:86
Methodadd
Add Session Resource Args: file_id: ID of a previously uploaded file. mount_path: Mount path in the container.
src/anthropic/resources/beta/sessions/resources.py:625
Methodadd_leak
(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.StatisticDiff)
tests/test_client.py:290
Methodadd_leak
(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.StatisticDiff)
tests/test_client.py:1400
Methodadd_numbers
Add two numbers together.
tests/lib/tools/test_functions.py:82
Methodadd_trace_header
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:731
Methodadd_trace_header
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1406
Methodadder_cm
()
tests/lib/tools/test_functions.py:470
Methodagents
(self)
src/anthropic/resources/beta/beta.py:134
Methodagents
(self)
src/anthropic/resources/beta/beta.py:215
Methodagents
(self)
src/anthropic/resources/beta/beta.py:299
Methodagents
(self)
src/anthropic/resources/beta/beta.py:360
Methodagents
(self)
src/anthropic/resources/beta/beta.py:421
Methodagents
(self)
src/anthropic/resources/beta/beta.py:482
Methodaiter_bytes
Given an async iterator that yields raw binary data, iterate over it & yield every event encountered
src/anthropic/_streaming.py:531
Methodaiter_bytes
Given an async iterator that yields lines, iterate over it & yield every event encountered
src/anthropic/lib/bedrock/_stream_decoder.py:43
Methodaiter_raw
(self, chunk_size: int | None = None)
src/anthropic/_legacy_response.py:496
Methodan_async_cm
()
tests/lib/tools/test_functions.py:541
Methodarchive
Archive a Dream Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Sen
src/anthropic/resources/beta/dreams.py:531
Methodarchive
Archive Deployment Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers:
src/anthropic/resources/beta/deployments.py:378
Methodarchive
Archive Deployment Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers:
src/anthropic/resources/beta/deployments.py:907
Methodarchive
Archive an environment by ID. Archived environments cannot be used to create new sessions. Args: betas: Optional h
src/anthropic/resources/beta/environments/environments.py:367
Methodarchive
Archive an environment by ID. Archived environments cannot be used to create new sessions. Args: betas: Optional h
src/anthropic/resources/beta/environments/environments.py:749
Methodarchive
Archive Session Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Sen
src/anthropic/resources/beta/sessions/sessions.py:445
Methodarchive
Archive Session Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Sen
src/anthropic/resources/beta/sessions/sessions.py:881
Methodarchive
Archive Session Thread Args: betas: Optional header to specify the beta version(s) you want to use. extra_heade
src/anthropic/resources/beta/sessions/threads/threads.py:174
Methodarchive
Archive Session Thread Args: betas: Optional header to specify the beta version(s) you want to use. extra_heade
src/anthropic/resources/beta/sessions/threads/threads.py:370
Methodarchive
Archive Credential Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers:
src/anthropic/resources/beta/vaults/credentials.py:360
Methodarchive
Archive Credential Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers:
src/anthropic/resources/beta/vaults/credentials.py:802
Methodarchive
Archive Vault Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Send
src/anthropic/resources/beta/vaults/vaults.py:338
Methodarchive
Archive Vault Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Send
src/anthropic/resources/beta/vaults/vaults.py:690
Methodarchive
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
src/anthropic/resources/beta/tunnels/certificates.py:242
Methodarchive
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
src/anthropic/resources/beta/tunnels/certificates.py:523
Methodarchive
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
src/anthropic/resources/beta/tunnels/tunnels.py:239
Methodarchive
The Tunnels API is in research preview. It requires the `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
src/anthropic/resources/beta/tunnels/tunnels.py:616
Methodarchive
Archive a memory store Args: betas: Optional header to specify the beta version(s) you want to use. extra_heade
src/anthropic/resources/beta/memory_stores/memory_stores.py:381
Methodarchive
Archive a memory store Args: betas: Optional header to specify the beta version(s) you want to use. extra_heade
src/anthropic/resources/beta/memory_stores/memory_stores.py:767
Methodarchive
Archive Agent Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Send
src/anthropic/resources/beta/agents/agents.py:399
Methodarchive
Archive Agent Args: betas: Optional header to specify the beta version(s) you want to use. extra_headers: Send
src/anthropic/resources/beta/agents/agents.py:803
Methodastream_to_file
( self, file: str | os.PathLike[str], *, chunk_size: int | None = None, )
src/anthropic/_legacy_response.py:502
Methodasync_auth_flow
(self, request: httpx.Request)
src/anthropic/lib/credentials/_auth.py:114
Functionasync_client
(request: FixtureRequest)
tests/conftest.py:112
Functionasync_client
()
tests/lib/test_google_cloud_live.py:45
Functionasync_files_from_dir
(directory: str | os.PathLike[str])
src/anthropic/lib/_files.py:28
Methodasync_fn
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1279
Methodasync_fn
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1769
Methodasync_fn
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:2052
Functionasync_local_filesystem_tool
(temp_directory: str)
tests/lib/tools/memory_tools/test_filesystem.py:38
Methodasync_only
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1197
Functionasync_snapshot_client
( is_recording: bool, http_snapshot_serializer_options: SnapshotSerializerOptions, http_snapshot:
tests/conftest.py:99
Methodasync_stream_parse
(client: AsyncAnthropic)
tests/lib/_parse/test_beta_messages.py:22
Functionasync_to_raw_response_wrapper
Higher order function that takes one of our bound API methods and wraps it to support returning the raw `APIResponse` object directly.
src/anthropic/_response.py:797
Functionasync_to_raw_response_wrapper
Higher order function that takes one of our bound API methods and wraps it to support returning the raw `APIResponse` object directly.
src/anthropic/_legacy_response.py:395
Methodasync_token_provider
()
tests/lib/test_azure.py:132
Methodauth_headers
(self)
src/anthropic/_base_client.py:711
Methodauth_headers
(self)
src/anthropic/_client.py:337
Methodauth_headers
(self)
src/anthropic/_client.py:757
Methodauth_headers
(self)
src/anthropic/lib/foundry.py:303
← previousnext →1,301–1,400 of 4,911, ranked by callers