Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
9,455 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
9,455
◇
Types & classes
3,151
↳
Endpoints
25
Function
recording_finish
(self: memories_mod.SessionMemoryStores)
tests/lib/tools/memory_sync/test_e2e_memory.py:532
Function
recording_heartbeat_loop
(*args: Any, **kwargs: Any)
tests/lib/tools/memory_sync/test_e2e_memory.py:560
Method
redact
Redact a memory version Args: memory_store_id: The ID of the memory store that holds the version (`memstore_...`).
src/anthropic/resources/beta/memory_stores/memory_versions.py:530
Function
refresh_credentials
Refresh `credentials` in place via `google.auth.transport.requests`. Blocking — async callers wrap with `anthropic._utils.asyncify`.
src/anthropic/lib/_extras/_google_auth.py:66
Function
refuse
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_refusals.py:139
Function
refuse
(_path: str)
tests/lib/tools/memory_sync/test_memory_sync.py:283
Function
refusing
(context: BetaComputerConfirmContext)
tests/lib/tools/toolsets/test_computer_pipeline.py:357
Function
refusing
(context: BetaConfirmContext)
tests/lib/tools/toolsets/test_confirm.py:193
Method
region
(self)
src/anthropic/lib/vertex/_client.py:41
Method
reload
Drop the cached config so the next call re-reads it from disk. `CredentialsFile` caches the parsed config across calls to keep the ho
src/anthropic/lib/credentials/_providers.py:446
Method
reload
(self)
src/anthropic/lib/credentials/_providers.py:877
Method
remove
Remove a member from the organization. Args: user_id: ID of the User. extra_headers: Send extra headers
src/anthropic/resources/beta/organization/users.py:196
Method
remove
Remove a member from the organization. Args: user_id: ID of the User. extra_headers: Send extra headers
src/anthropic/resources/beta/organization/users.py:406
Method
remove
**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:181
Method
remove
**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:400
Method
remove
**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:321
Method
remove
**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:680
Method
remove
Delete Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. extra_head
src/anthropic/resources/beta/organization/workspaces/members.py:249
Method
remove
Delete Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. extra_head
src/anthropic/resources/beta/organization/workspaces/members.py:520
Method
remove
Remove a User from an RBAC Group. Membership of groups provisioned by an identity provider (source type `"scim"`) cannot be modified
src/anthropic/resources/beta/organization/rbac_groups/members.py:149
Method
remove
Remove a User from an RBAC Group. Membership of groups provisioned by an identity provider (source type `"scim"`) cannot be modified
src/anthropic/resources/beta/organization/rbac_groups/members.py:326
Method
remove
Remove an organization-owned Plugin's own installation setting for the whole organization or for one RBAC Group. Removing th
src/anthropic/resources/beta/organization/plugins/installation_settings.py:147
Method
remove
Remove an organization-owned Plugin's own installation setting for the whole organization or for one RBAC Group. Removing th
src/anthropic/resources/beta/organization/plugins/installation_settings.py:448
Method
remove
**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/service_accounts/workspaces.py:193
Method
remove
**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/service_accounts/workspaces.py:426
Method
remove
Remove a member from the organization. Args: user_id: ID of the User. extra_headers: Send extra headers
src/anthropic/resources/organization/users.py:196
Method
remove
Remove a member from the organization. Args: user_id: ID of the User. extra_headers: Send extra headers
src/anthropic/resources/organization/users.py:406
Method
remove
**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/organization/federation/rules/workspaces.py:166
Method
remove
**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/organization/federation/rules/workspaces.py:364
Method
remove
**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/organization/workspaces/service_accounts.py:288
Method
remove
**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/organization/workspaces/service_accounts.py:608
Method
remove
Delete Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. extra_head
src/anthropic/resources/organization/workspaces/members.py:249
Method
remove
Delete Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. extra_head
src/anthropic/resources/organization/workspaces/members.py:520
Method
remove
**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/organization/service_accounts/workspaces.py:178
Method
remove
**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/organization/service_accounts/workspaces.py:390
Function
remove_then_add
(runner: Any)
tests/lib/tools/test_runners.py:1861
Function
remove_weather
(runner: Any)
tests/lib/tools/test_runners.py:1812
Function
remove_weather_and_compact
(runner: Any)
tests/lib/tools/test_runners.py:2137
Function
removeprefix
Remove a prefix from a string. Backport of `str.removeprefix` for Python < 3.9
src/anthropic/_utils/_utils.py:381
Function
removesuffix
Remove a suffix from a string. Backport of `str.removesuffix` for Python < 3.9
src/anthropic/_utils/_utils.py:391
Method
rename
(self, command: BetaMemoryTool20250818RenameCommand)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:594
Method
rename
(self, command: BetaMemoryTool20250818RenameCommand)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:896
Method
request_id
(self)
src/anthropic/_response.py:300
Method
request_id
(self)
src/anthropic/_response.py:413
Method
request_id
(self)
src/anthropic/lib/streaming/_beta_messages.py:64
Method
request_id
(self)
src/anthropic/lib/streaming/_beta_messages.py:218
Method
request_id
(self)
src/anthropic/lib/streaming/_messages.py:61
Method
request_id
(self)
src/anthropic/lib/streaming/_messages.py:214
Function
required_args
Decorator to enforce a given set of arguments or variants of arguments are passed to the decorated function. Useful for enforcing runtime validat
src/anthropic/_utils/_utils.py:226
Method
resolve_upload_documents
Vet each document id (a file staged with the Files API) the model asked to upload, or raise `ToolError` to refuse. The driver receives the ret
src/anthropic/lib/tools/_toolsets/_hooks.py:65
Method
resolve_upload_documents
(self, context: object, document_ids: object)
tests/lib/tools/toolsets/test_pipeline.py:245
Method
resolve_upload_paths
Resolve each path the model asked to upload, or raise `ToolError` to refuse. The driver receives the returned paths in `input.paths`.
src/anthropic/lib/tools/_toolsets/_hooks.py:60
Method
resolve_upload_paths
(self, context: Any, paths: Any)
tests/lib/tools/toolsets/test_refusals.py:179
Method
resolve_upload_paths
(self, context: object, paths: object)
tests/lib/tools/toolsets/test_pipeline.py:242
Method
resolve_upload_paths
(self, context: BetaURLContext, paths: Sequence[str])
tests/lib/tools/toolsets/test_pipeline.py:428
Method
resolve_upload_paths
(self, context: Any, paths: Any)
tests/lib/tools/toolsets/test_enforcement.py:344
Method
resolve_upload_paths
(self, context: Any, paths: Any)
tests/lib/tools/toolsets/test_enforcement.py:357
Method
resolve_upload_paths
(self, context: Any, paths: Any)
tests/lib/tools/toolsets/test_enforcement.py:516
Method
resolved_base_url
The `base_url` declared in the profile config file, if any. Returns `None` when the config has no top-level `base_url` key — callers
src/anthropic/lib/credentials/_providers.py:216
Method
resources
(self)
src/anthropic/resources/beta/sessions/sessions.py:64
Method
resources
(self)
src/anthropic/resources/beta/sessions/sessions.py:578
Method
resources
(self)
src/anthropic/resources/beta/sessions/sessions.py:1114
Method
resources
(self)
src/anthropic/resources/beta/sessions/sessions.py:1150
Method
resources
(self)
src/anthropic/resources/beta/sessions/sessions.py:1186
Method
resources
(self)
src/anthropic/resources/beta/sessions/sessions.py:1222
Method
respond
(request: httpx2.Request)
tests/lib/tools/test_runner_eager_tools.py:1118
Method
response
(self)
src/anthropic/lib/streaming/_beta_messages.py:60
Method
response
(self)
src/anthropic/lib/streaming/_beta_messages.py:214
Method
response
(self)
src/anthropic/lib/streaming/_messages.py:57
Method
response
(self)
src/anthropic/lib/streaming/_messages.py:210
Method
results
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/beta/messages/batches.py:415
Method
results
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/beta/messages/batches.py:877
Method
results
Streams the results of a Message Batch as a `.jsonl` file. Each line in the file is a JSON object containing the result of a single
src/anthropic/resources/messages/batches.py:731
Method
retrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/models.py:210
Method
retrieve
Get Deployment Run Args: deployment_run_id: Unique identifier of the deployment run. betas: Optional header to
src/anthropic/resources/beta/deployment_runs.py:49
Method
retrieve
Get Deployment Run Args: deployment_run_id: Unique identifier of the deployment run. betas: Optional header to
src/anthropic/resources/beta/deployment_runs.py:230
Method
retrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/beta/models.py:46
Method
retrieve
Get a specific model. The Models API response can be used to determine information about a specific model or resolve a model
src/anthropic/resources/beta/models.py:210
Method
retrieve
Get User Profile Args: user_profile_id: The ID of the user profile to get (`uprof_...`). betas: Optional header
src/anthropic/resources/beta/user_profiles.py:159
Method
retrieve
Get User Profile Args: user_profile_id: The ID of the user profile to get (`uprof_...`). betas: Optional header
src/anthropic/resources/beta/user_profiles.py:607
Method
retrieve
Get a dream by ID to check its status, output memory store, and token usage. Archived dreams are returned too. See the
src/anthropic/resources/beta/dreams.py:149
Method
retrieve
Get a dream by ID to check its status, output memory store, and token usage. Archived dreams are returned too. See the
src/anthropic/resources/beta/dreams.py:570
Method
retrieve
Get Deployment Args: deployment_id: Unique identifier of the deployment. betas: Optional header to specify the
src/anthropic/resources/beta/deployments.py:171
Method
retrieve
Get Deployment Args: deployment_id: Unique identifier of the deployment. betas: Optional header to specify the
src/anthropic/resources/beta/deployments.py:811
Method
retrieve
Retrieve a specific environment by ID. Args: betas: Optional header to specify the beta version(s) you want to use.
src/anthropic/resources/beta/environments/environments.py:142
Method
retrieve
Retrieve a specific environment by ID. Args: betas: Optional header to specify the beta version(s) you want to use.
src/anthropic/resources/beta/environments/environments.py:585
Method
retrieve
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:58
Method
retrieve
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:637
Method
retrieve
Get Session Resource Args: betas: Optional header to specify the beta version(s) you want to use. workspace_id:
src/anthropic/resources/beta/sessions/resources.py:51
Method
retrieve
Get Session Resource Args: betas: Optional header to specify the beta version(s) you want to use. workspace_id:
src/anthropic/resources/beta/sessions/resources.py:429
Method
retrieve
Get Session Args: betas: Optional header to specify the beta version(s) you want to use. workspace_id: Optional
src/anthropic/resources/beta/sessions/sessions.py:187
Method
retrieve
Get Session Args: betas: Optional header to specify the beta version(s) you want to use. workspace_id: Optional
src/anthropic/resources/beta/sessions/sessions.py:701
Method
retrieve
Get Session Thread Args: betas: Optional header to specify the beta version(s) you want to use. workspace_id: O
src/anthropic/resources/beta/sessions/threads/threads.py:59
Method
retrieve
Get Session Thread Args: betas: Optional header to specify the beta version(s) you want to use. workspace_id: O
src/anthropic/resources/beta/sessions/threads/threads.py:292
Method
retrieve
Get Credential Args: vault_id: Identifier of the vault containing the credential. credential_id: Unique identif
src/anthropic/resources/beta/vaults/credentials.py:125
Method
retrieve
Get Credential Args: vault_id: Identifier of the vault containing the credential. credential_id: Unique identif
src/anthropic/resources/beta/vaults/credentials.py:664
Method
retrieve
Get Vault Args: vault_id: Unique identifier of the vault to retrieve. betas: Optional header to specify the bet
src/anthropic/resources/beta/vaults/vaults.py:127
Method
retrieve
Get Vault Args: vault_id: Unique identifier of the vault to retrieve. betas: Optional header to specify the bet
src/anthropic/resources/beta/vaults/vaults.py:546
Method
retrieve
Retrieve a plugin marketplace by ID. **Accepted credentials:** an Admin API key with the `read:plugins` or `read:org_audit`
src/anthropic/resources/beta/organization/plugin_marketplaces.py:49
Method
retrieve
Retrieve a plugin marketplace by ID. **Accepted credentials:** an Admin API key with the `read:plugins` or `read:org_audit`
src/anthropic/resources/beta/organization/plugin_marketplaces.py:508
← previous
next →
3,501–3,600 of 9,455, ranked by callers