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
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
_stop
(_work_id: str, **_kwargs: Any)
tests/lib/environments/test_poller_method.py:187
Method
_stop_watcher
When `_stop` is set, close the work stream so `_dispatch_loop` exits.
src/anthropic/lib/tools/_beta_session_runner.py:983
Method
_stream_loop
(self)
src/anthropic/lib/tools/_beta_session_runner.py:657
Function
_symlinks_in_dir
(root: Path, under: str, base: Path)
src/anthropic/lib/tools/_file_store.py:388
Function
_sync_noop
(_seconds: float)
tests/lib/environments/test_poller_method.py:106
Method
_sync_store
(self, store: _AttachedStore, final: bool = False)
src/anthropic/lib/tools/_memories.py:373
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
_validate
(v: Iterable[_T], handler: "ValidatorFunctionWrapHandler")
src/anthropic/_models.py:463
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:405
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/_client.py:839
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/foundry.py:304
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/foundry.py:516
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/bedrock/_mantle.py:247
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/bedrock/_mantle.py:440
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/aws/_client.py:357
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/google_cloud/_client.py:311
Method
_validate_headers
(self, headers: httpx2.Headers, omitted: frozenset[str])
src/anthropic/lib/google_cloud/_client.py:543
Function
_waiter
(ev: anyio.Event)
src/anthropic/lib/tools/_beta_session_runner.py:1005
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:850
Method
ack
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:79
Method
aclose
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:76
Method
aclose
(self)
tests/lib/test_credentials.py:3837
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:715
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:116
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:335
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:251
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:610
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:201
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:472
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:100
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:277
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/service_accounts/workspaces.py:124
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/service_accounts/workspaces.py:357
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/organization/federation/rules/workspaces.py:108
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/organization/federation/rules/workspaces.py:306
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/organization/workspaces/service_accounts.py:227
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/organization/workspaces/service_accounts.py:547
Method
add
Create Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. workspace_
src/anthropic/resources/organization/workspaces/members.py:201
Method
add
Create Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. workspace_
src/anthropic/resources/organization/workspaces/members.py:472
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/organization/service_accounts/workspaces.py:116
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/organization/service_accounts/workspaces.py:328
Method
add_leak
(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.StatisticDiff)
tests/test_client.py:291
Method
add_leak
(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.StatisticDiff)
tests/test_client.py:1584
Method
add_numbers
Add two numbers together.
tests/lib/tools/test_functions.py:79
Function
add_raw_definitions
(runner: Any)
tests/lib/tools/test_runners.py:2019
Function
add_then_remove
(runner: Any)
tests/lib/tools/test_runners.py:1857
Method
add_trace_header
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:778
Method
add_trace_header
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1514
Function
add_weather_and_compact
(runner: Any)
tests/lib/tools/test_runners.py:2095
Method
adder_cm
()
tests/lib/tools/test_functions.py:467
Method
agents
(self)
src/anthropic/resources/beta/beta.py:140
Method
agents
(self)
src/anthropic/resources/beta/beta.py:225
Method
agents
(self)
src/anthropic/resources/beta/beta.py:313
Method
agents
(self)
src/anthropic/resources/beta/beta.py:378
Method
agents
(self)
src/anthropic/resources/beta/beta.py:443
Method
agents
(self)
src/anthropic/resources/beta/beta.py:508
Method
aiter_bytes
Given an async iterator that yields raw binary data, iterate over it & yield every event encountered
src/anthropic/_streaming.py:510
Method
aiter_bytes
Given an async iterator that yields lines, iterate over it & yield every event encountered
src/anthropic/lib/bedrock/_stream_decoder.py:43
Function
allow
A `confirm` that approves every call.
tests/lib/tools/test_runner_eager_toolsets.py:415
Method
an_async_cm
()
tests/lib/tools/test_functions.py:538
Method
analytics
(self)
src/anthropic/resources/beta/organization/organization.py:178
Method
analytics
(self)
src/anthropic/resources/beta/organization/organization.py:284
Method
analytics
(self)
src/anthropic/resources/beta/organization/organization.py:397
Method
analytics
(self)
src/anthropic/resources/beta/organization/organization.py:466
Method
analytics
(self)
src/anthropic/resources/beta/organization/organization.py:535
Method
analytics
(self)
src/anthropic/resources/beta/organization/organization.py:604
Method
api_keys
(self)
src/anthropic/resources/beta/organization/organization.py:142
Method
api_keys
(self)
src/anthropic/resources/beta/organization/organization.py:248
Method
api_keys
(self)
src/anthropic/resources/beta/organization/organization.py:361
Method
api_keys
(self)
src/anthropic/resources/beta/organization/organization.py:430
Method
api_keys
(self)
src/anthropic/resources/beta/organization/organization.py:499
Method
api_keys
(self)
src/anthropic/resources/beta/organization/organization.py:568
Method
api_keys
(self)
src/anthropic/resources/organization/organization.py:94
Method
api_keys
(self)
src/anthropic/resources/organization/organization.py:176
Method
api_keys
(self)
src/anthropic/resources/organization/organization.py:265
Method
api_keys
(self)
src/anthropic/resources/organization/organization.py:310
Method
api_keys
(self)
src/anthropic/resources/organization/organization.py:355
Method
api_keys
(self)
src/anthropic/resources/organization/organization.py:400
Function
approve
(_context: BetaConfirmContext)
tests/lib/tools/toolsets/_fakes.py:311
Function
approve
(context: object)
tests/lib/tools/toolsets/_computer_fakes.py:74
Method
approve
Approve a pending spend limit increase request. Writes a per-user spend limit at `amount` for the requester and transitions the
src/anthropic/resources/beta/organization/spend_limits/increase_requests.py:374
Method
apps
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:107
Method
apps
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:172
Method
apps
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:240
Method
apps
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:289
Method
apps
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:338
Method
apps
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:387
Method
archive
Hide a `completed`, `failed`, or `canceled` dream from the default list of dreams. Archiving a `pending` or `running` dream
src/anthropic/resources/beta/dreams.py:732
Method
archive
Archive Deployment Args: deployment_id: Unique identifier of the deployment to archive. betas: Optional header
src/anthropic/resources/beta/deployments.py:435
Method
archive
Archive Deployment Args: deployment_id: Unique identifier of the deployment to archive. betas: Optional header
src/anthropic/resources/beta/deployments.py:1075
Method
archive
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:418
← previous
next →
2,201–2,300 of 9,455, ranked by callers