Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,522 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,522
◇
Types & classes
4,093
↳
Endpoints
47
Function
test_x_stainless_async_header
(client_class: ClientClass)
tests/lib/test_client_copy.py:421
Function
test_x_stainless_async_header_names_the_running_library
(client_class: ClientClass)
tests/lib/test_client_copy.py:447
Function
test_yields_completed_custom_tool_call
A CUSTOM (user-defined) tool call arrives as `agent.custom_tool_use` and must be answered with `user.custom_tool_result` — keyed by `custom_to
tests/lib/tools/test_session_runner.py:452
Function
test_yields_completed_tool_call
()
tests/lib/tools/test_session_runner.py:334
Function
test_yields_error_for_failing_tool
()
tests/lib/tools/test_session_runner.py:394
Function
test_yields_the_stream_that_messages_stream_returns
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:229
Function
test_yields_with_posted_false_on_permanent_4xx
A permanent 4xx (e.g. 400) on send should short-circuit the retry loop after a single attempt and still yield with posted=False.
tests/lib/tools/test_session_runner.py:1866
Function
test_yields_with_posted_false_on_retry_window_exhaust
If `events.send` keeps failing for the whole retry window, the consumer should still receive the `DispatchedToolCall` with `posted=False` so t
tests/lib/tools/test_session_runner.py:1801
Method
test_zero_arg_provider_backward_compat
Providers from before the force_refresh kwarg was added (the old `Callable[[], AccessToken]` shape) must still work — their signature
tests/lib/test_credentials.py:1929
Method
test_zero_arg_provider_behind_a_decorator_or_call_method
`inspect.signature` follows `functools.wraps`, so it sees that the wrapped function takes no arguments.
tests/lib/test_credentials.py:3701
Method
test_zero_config_credentials_file_from_env
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:2655
Method
test_zero_config_workload_identity_beats_active_profile
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:2632
Method
test_zero_config_workload_identity_from_env
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:2608
Method
test_zero_expiry_token_is_not_reused
A token with `expires_at=0` is not reused, so the provider is called again until it returns a later expiry.
tests/lib/test_credentials.py:1835
Method
test_zero_expiry_token_is_not_reused
(self)
tests/lib/test_credentials.py:3849
Method
test_zero_expiry_tokens_are_fetched_concurrently
Callers don't queue behind each other for a token that can't be shared.
tests/lib/test_credentials.py:1845
Method
test_zero_expiry_tokens_are_fetched_concurrently
Requests don't queue behind each other for a token that can't be shared.
tests/lib/test_credentials.py:3861
Function
test_zip_entries_without_type_bits_are_regular_files
(tmp_path: Path)
tests/lib/tools/test_skills.py:371
Function
test_zip_non_unix_host_type_bits_are_plain_data
Only a Unix creator host makes `external_attr` a mode; the same bits from a FAT/NTFS archiver describe an ordinary file.
tests/lib/tools/test_skills.py:329
Function
test_zip_preserves_executable_bit
(tmp_path: Path)
tests/lib/tools/test_skills.py:206
Function
test_zip_unix_directory_bits_without_trailing_slash_make_a_directory
(tmp_path: Path)
tests/lib/tools/test_skills.py:383
Function
test_zip_unix_special_entries_are_skipped_not_written_as_files
(tmp_path: Path)
tests/lib/tools/test_skills.py:310
Function
test_zip_without_unix_attrs_is_not_executable
(tmp_path: Path)
tests/lib/tools/test_skills.py:226
Method
text
Read and decode the response content into a string.
src/anthropic/_response.py:371
Method
text
Read and decode the response content into a string.
src/anthropic/_response.py:484
Method
thread
Start a message thread: a conversation the server holds between turns, so each request sends only the new messages. Takes the arguments of `cr
src/anthropic/resources/beta/messages/messages.py:4315
Method
thread_a
()
tests/lib/test_refusal_fallback.py:1063
Method
thread_b
()
tests/lib/test_refusal_fallback.py:1074
Method
threading
Whether turns send a `thread` field at all.
src/anthropic/lib/threads/_thread_state.py:86
Method
threads
(self)
src/anthropic/resources/beta/sessions/sessions.py:69
Method
threads
(self)
src/anthropic/resources/beta/sessions/sessions.py:613
Method
threads
(self)
src/anthropic/resources/beta/sessions/sessions.py:1179
Method
threads
(self)
src/anthropic/resources/beta/sessions/sessions.py:1215
Method
threads
(self)
src/anthropic/resources/beta/sessions/sessions.py:1251
Method
threads
(self)
src/anthropic/resources/beta/sessions/sessions.py:1287
Function
timed_send
(*args: Any, **kwargs: Any)
tests/lib/tools/test_session_runner.py:1227
Method
timeout
(self)
src/anthropic/_request.py:62
Method
timeout
(self)
src/anthropic/_base_client.py:833
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:94
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:207
Method
to_dict
(self)
src/anthropic/lib/tools/_beta_functions.py:191
Method
to_dict
The `tools[]` entry to send. SDK-side behaviour options never appear here.
src/anthropic/lib/tools/_toolsets/_runnable.py:96
Method
to_dict
(self)
tests/lib/tools/test_open_telemetry.py:856
Method
to_dict
(self)
tests/lib/tools/toolsets/_stubs.py:76
Method
to_param
Convert this response BetaMessage to a BetaMessageParam so it can be passed back to the API as an input message, e.g. in the `messages` param.
src/anthropic/types/beta/beta_message.py:173
Method
token_provider
()
tests/lib/test_azure.py:42
Method
token_provider
()
tests/lib/test_azure.py:272
Method
token_provider
()
tests/lib/test_azure.py:322
Method
tool_result
(self, tool_use: BetaToolUseBlock)
src/anthropic/lib/tools/_toolsets/_runnable.py:181
Method
tool_runner
Dispatch a self-hosted session's tool-call events. The sessions-side counterpart to `client.beta.messages.tool_runner`: returns a `an
src/anthropic/resources/beta/sessions/events.py:589
Method
tool_runner
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:4061
Method
tool_runner
( self, *, max_iterations: int | Omit = omit, stream: Literal[False] | Omit =
src/anthropic/lib/threads/_beta_threads.py:251
Method
tool_runner
( self, *, max_iterations: int | Omit = omit, stream: Literal[False] | Omit =
src/anthropic/lib/threads/_beta_threads.py:464
Method
tool_use
(index: int, name: str, **fields: object)
tests/test_open_telemetry.py:5466
Method
tool_use_id
(self)
src/anthropic/lib/tools/_toolsets/_pipeline.py:72
Method
traceparents
(self)
tests/test_tracing.py:118
Function
tracer_provider_that_is_not_installed
A job can inherit an `OTEL_PYTHON_TRACER_PROVIDER` that names a provider its environment lacks. OpenTelemetry then raises each time it is asked f
tests/test_tracing.py:339
Method
triple_click
(self, context: BetaToolsetCallContext, input: BetaComputerTripleClickInput)
src/anthropic/lib/tools/_toolsets/_computer.py:244
Method
triple_click
(self, context: BetaToolsetCallContext, input: BetaComputerTripleClickInput)
src/anthropic/lib/tools/_toolsets/_computer.py:366
Method
triple_click
(self, context: BetaToolsetCallContext, input: BetaBrowserTripleClickInput)
src/anthropic/lib/tools/_toolsets/_browser.py:357
Method
triple_click
(self, context: BetaToolsetCallContext, input: BetaBrowserTripleClickInput)
src/anthropic/lib/tools/_toolsets/_browser.py:603
Method
tunnels
(self)
src/anthropic/resources/beta/beta.py:191
Method
tunnels
(self)
src/anthropic/resources/beta/beta.py:279
Method
tunnels
(self)
src/anthropic/resources/beta/beta.py:366
Method
tunnels
(self)
src/anthropic/resources/beta/beta.py:434
Method
tunnels
(self)
src/anthropic/resources/beta/beta.py:502
Method
tunnels
(self)
src/anthropic/resources/beta/beta.py:570
Method
type
(self, context: BetaToolsetCallContext, input: BetaComputerTypeInput)
src/anthropic/lib/tools/_toolsets/_computer.py:212
Method
type
(self, context: BetaToolsetCallContext, input: BetaComputerTypeInput)
src/anthropic/lib/tools/_toolsets/_computer.py:330
Method
type
(self, context: BetaToolsetCallContext, input: BetaBrowserTypeInput)
src/anthropic/lib/tools/_toolsets/_browser.py:631
Method
type
(self, context: BetaToolsetCallContext, input: BetaComputerTypeInput)
tests/lib/tools/toolsets/_computer_fakes.py:113
Method
type
(self, context: BetaToolsetCallContext, input: BetaComputerTypeInput)
tests/lib/tools/toolsets/_computer_fakes.py:168
Method
undocumented
(city: str)
tests/lib/tools/test_open_telemetry.py:851
Function
unloadable_global_tracer_provider
Makes OpenTelemetry fail to load its global tracer provider, as when the environment names one that is not installed.
tests/test_open_telemetry.py:8220
Method
unpause
Unpause Deployment Args: deployment_id: Unique identifier of the deployment to unpause. betas: This endpoint is
src/anthropic/resources/beta/deployments.py:1331
Method
until_done
Consumes the tool runner stream and returns the last message if it has not been consumed yet. If it has, it simply returns the last m
src/anthropic/lib/tools/_beta_runner.py:760
Method
until_done
Consumes the tool runner stream and returns the last message if it has not been consumed yet. If it has, it simply returns the last m
src/anthropic/lib/tools/_beta_runner.py:1304
Method
unwrap
Verifies the webhook signature from the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers using your webhook signing
src/anthropic/resources/beta/webhooks.py:76
Function
update
(params: Any)
tests/lib/tools/toolsets/test_browser_runner.py:422
Method
update
Change the details of a user profile, leaving the fields that you don't send as they are. See the [User profiles gui
src/anthropic/resources/user_profiles/user_profiles.py:206
Method
update
Change the details of a user profile, leaving the fields that you don't send as they are. See the [User profiles gui
src/anthropic/resources/user_profiles/user_profiles.py:588
Method
update
Update Deployment Args: deployment_id: Unique identifier of the deployment to update. agent: Agent to deploy. A
src/anthropic/resources/beta/deployments.py:242
Method
update
Update Deployment Args: deployment_id: Unique identifier of the deployment to update. agent: Agent to deploy. A
src/anthropic/resources/beta/deployments.py:921
Method
update
Update an existing environment's configuration. Args: config: Updated environment configuration description: Up
src/anthropic/resources/beta/environments/environments.py:221
Method
update
Update an existing environment's configuration. Args: config: Updated environment configuration description: Up
src/anthropic/resources/beta/environments/environments.py:725
Method
update
Update work item metadata with merge semantics. This endpoint accepts a Claude API key. It rejects the environment key and the
src/anthropic/resources/beta/environments/work.py:138
Method
update
Update work item metadata with merge semantics. This endpoint accepts a Claude API key. It rejects the environment key and the
src/anthropic/resources/beta/environments/work.py:768
Method
update
Update Session Resource Args: authorization_token: New authorization token for the resource. Currently only `github_reposi
src/anthropic/resources/beta/sessions/resources.py:125
Method
update
Update Session Resource Args: authorization_token: New authorization token for the resource. Currently only `github_reposi
src/anthropic/resources/beta/sessions/resources.py:523
Method
update
Update Session Args: agent: Agent configuration update. Only `tools` and `mcp_servers` are updatable mid-ses
src/anthropic/resources/beta/sessions/sessions.py:258
Method
update
Update Session Args: agent: Agent configuration update. Only `tools` and `mcp_servers` are updatable mid-ses
src/anthropic/resources/beta/sessions/sessions.py:802
Method
update
Update a Credential Args: vault_id: Identifier of the vault containing the credential. credential_id: Unique id
src/anthropic/resources/beta/vaults/credentials.py:204
Method
update
Update a Credential Args: vault_id: Identifier of the vault containing the credential. credential_id: Unique id
src/anthropic/resources/beta/vaults/credentials.py:775
Method
update
Update a Vault Args: vault_id: Unique identifier of the vault to update. display_name: Updated human-readable n
src/anthropic/resources/beta/vaults/vaults.py:198
Method
update
Update a Vault Args: vault_id: Unique identifier of the vault to update. display_name: Updated human-readable n
src/anthropic/resources/beta/vaults/vaults.py:648
Method
update
Change the details of a user profile, leaving the fields that you don't send as they are. See the [User profiles gui
src/anthropic/resources/beta/user_profiles/user_profiles.py:256
Method
update
Change the details of a user profile, leaving the fields that you don't send as they are. See the [User profiles gui
src/anthropic/resources/beta/user_profiles/user_profiles.py:824
Method
update
Set the default installation setting of one of the organization's own plugin marketplaces. Every Plugin in it without a setting of it
src/anthropic/resources/beta/organization/plugin_marketplaces.py:128
Method
update
Set the default installation setting of one of the organization's own plugin marketplaces. Every Plugin in it without a setting of it
src/anthropic/resources/beta/organization/plugin_marketplaces.py:618
Method
update
Rename External Storage or clear its name, in any status. Args: external_storage_id: The External Storage ID, which starts
src/anthropic/resources/beta/organization/external_storage.py:200
← previous
next →
11,601–11,700 of 12,522, ranked by callers