Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
13,873 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
13,873
◇
Types & classes
4,472
↳
Endpoints
93
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_mantle.py:249
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_mantle.py:439
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_client.py:246
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/bedrock/_client.py:428
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/aws/_client.py:378
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:135
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/vertex/_client.py:301
Method
_prepare_options
(self, options: FinalRequestOptions)
src/anthropic/lib/google_cloud/_client.py:604
Method
_prepare_options
(self, options: FinalRequestOptions)
tests/test_client.py:2226
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/bedrock/_client.py:250
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/bedrock/_client.py:432
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/aws/_client.py:158
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/vertex/_client.py:139
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/vertex/_client.py:305
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/google_cloud/_client.py:399
Method
_prepare_request
(self, request: httpx2.Request)
src/anthropic/lib/google_cloud/_client.py:617
Method
_prepare_url
(self, url: str)
src/anthropic/lib/google_cloud/_client.py:126
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
_raise_unless_vanished
(error: OSError)
src/anthropic/lib/tools/_file_store.py:359
Method
_read
(self, stdout: IO[bytes], stderr: IO[bytes])
src/anthropic/lib/tools/agent_toolset.py:715
Function
_read_env_token
()
src/anthropic/lib/credentials/_chain.py:49
Method
_record
(self, request: httpx2.Request)
tests/test_prepare.py:68
Method
_replace_saved_output
(self)
src/anthropic/lib/tools/agent_toolset.py:674
Function
_replace_via_temp
(dest: Path, data: bytes, is_executable: bool)
src/anthropic/lib/tools/_file_store.py:318
Method
_repr_pretty_
(self, printer: Any, _cycle: bool)
tests/lib/tools/_fake_sessions_api.py:75
Function
_reset_model_build_lock
()
src/anthropic/_models.py:122
Method
_reset_shadow_one_shot
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:4547
Function
_resolved
(_path: str)
tests/lib/tools/toolsets/test_security.py:214
Method
_respond
(self, kind: str, request: httpx2.Request)
tests/lib/environments/_fake_work_api.py:198
Function
_retrieve
(session_id: str)
tests/lib/tools/memory_sync/_fake_anthropic.py:232
Function
_rewrite_then_append
(runner: Any, _reply: Any, _tool_response: Any)
tests/lib/threads/helpers.py:599
Method
_run
(self, thread: str | None, run: Callable[[RunningCall], Awaitable[None]])
src/anthropic/lib/tools/_beta_session_runner.py:924
Method
_run_call
( self, call: DispatchedToolUseEvent, tool: BetaAnyRunnableTool, confirmation:
src/anthropic/lib/tools/_beta_session_runner.py:562
Method
_save_in_turn
(self, save: Callable[[], Awaitable[None]])
src/anthropic/lib/environments/_worker.py:578
Method
_serialize
Always serialize as a list so Pydantic's JSON encoder is happy.
src/anthropic/_models.py:561
Method
_serve_session
(self)
src/anthropic/lib/environments/_worker.py:500
Function
_set_messages_params
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:823
Function
_set_messages_params_max_tokens
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:831
Method
_set_private_attributes
( self, model: Type[_T], client: AsyncAPIClient, options: FinalRequestOptions,
src/anthropic/_base_client.py:377
Method
_should_retry
(self, response: httpx2.Response)
src/anthropic/_client.py:837
Method
_sleep
(self, seconds: float)
src/anthropic/_resource.py:22
Method
_sleep
(self, seconds: float)
src/anthropic/_resource.py:38
Method
_spin
(self)
examples/memory/basic.py:61
Function
_symlinks_in_dir
(root: Path, under: str, base: Path)
src/anthropic/lib/tools/_file_store.py:388
Method
_sync_store
(self, store: _AttachedStore, final: bool = False)
src/anthropic/lib/tools/_memories.py:393
Method
_test
()
tests/lib/tools/test_mcp_tool.py:335
Method
_toolset_confirm
(self, name: str, shown: BetaToolsetCallContext)
src/anthropic/lib/tools/_toolsets/_base.py:407
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_computer.py:179
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_computer.py:299
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_browser.py:256
Method
_toolset_run
( self, context: BetaToolsetCallContext, name: str, input: Mapping[str, object] )
src/anthropic/lib/tools/_toolsets/_browser.py:497
Method
_toolsets_by_family
The runnable toolsets among the thread's tools, read again on each access, and the ones the runner was given apart from them, by family (`tool
src/anthropic/lib/tools/_beta_runner.py:601
Method
_tracer
This client's tracer, or `None` when it has no spans. The client gets it when it first needs it, so constructing or copying a client calls no
src/anthropic/_base_client.py:483
Function
_update_max_tokens
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:827
Function
_update_system
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:815
Function
_update_tools
(thread: BetaMessageThread[Any] | BetaAsyncMessageThread[Any])
tests/lib/threads/helpers.py:819
Method
_validate
(v: Iterable[_T], handler: "ValidatorFunctionWrapHandler")
src/anthropic/_models.py:532
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:406
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:814
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/foundry.py:299
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/foundry.py:505
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/bedrock/_mantle.py:245
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/bedrock/_mantle.py:435
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/aws/_client.py:372
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/google_cloud/_client.py:366
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/google_cloud/_client.py:583
Method
a_sync_cm
()
tests/lib/tools/test_functions.py:542
Method
ack
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:927
Function
aclose
()
tests/lib/tools/test_session_runner.py:1958
Method
aclose
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:77
Method
aclose
(self)
tests/lib/test_credentials.py:4259
Method
aclose
(self)
tests/lib/test_credentials.py:4284
Method
action_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:50
Method
action_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:432
Method
action_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:829
Method
action_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:854
Method
action_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:879
Method
action_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:904
Method
action_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:56
Method
action_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:628
Method
action_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1218
Method
action_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1250
Method
action_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1282
Method
action_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1314
Method
activate
Verify pending External Storage and make it available. Storage that is already available, active or draining comes back unchanged, wi
src/anthropic/resources/beta/organization/external_storage.py:888
Function
add
(params: dict[str, Any])
tests/lib/threads/helpers.py:590
Method
add
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:351
Method
add
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:749
Method
add
**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federat
src/anthropic/resources/beta/organization/federation/rules/workspaces.py:120
Method
add
**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federat
src/anthropic/resources/beta/organization/federation/rules/workspaces.py:361
Method
add
**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federat
src/anthropic/resources/beta/organization/workspaces/service_accounts.py:270
Method
add
**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federat
src/anthropic/resources/beta/organization/workspaces/service_accounts.py:664
Method
add
Create Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. workspace_
src/anthropic/resources/beta/organization/workspaces/members.py:224
Method
add
Create Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. workspace_
src/anthropic/resources/beta/organization/workspaces/members.py:538
Method
add
Add a User to an RBAC Group. Membership of groups provisioned by an identity provider (source type `"scim"`) cannot be modified via t
src/anthropic/resources/beta/organization/rbac_groups/members.py:102
Method
add
Add a User to an RBAC Group. Membership of groups provisioned by an identity provider (source type `"scim"`) cannot be modified via t
src/anthropic/resources/beta/organization/rbac_groups/members.py:305
Method
add
Add one workspace to a destination's workspace list. Under `include` the workspace's spans start going to the destination. Under
src/anthropic/resources/beta/organization/telemetry_destinations/workspaces.py:129
Method
add
Add one workspace to a destination's workspace list. Under `include` the workspace's spans start going to the destination. Under
src/anthropic/resources/beta/organization/telemetry_destinations/workspaces.py:389
← previous
next →
3,101–3,200 of 13,873, ranked by callers