MCPcopy Create free account

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

Functions12,795 in github.com/anthropics/anthropic-sdk-python

Function_reset_model_build_lock
()
src/anthropic/_models.py:122
Method_reset_shadow_one_shot
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:4222
Function_resolved
(_path: str)
tests/lib/tools/toolsets/test_security.py:214
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
Function_run_session_tools
(*_a: Any, **_kw: Any)
tests/lib/tools/memory_sync/test_e2e_memory.py:102
Function_scoped
(_client: Any, *, auth_token: str, helper: str)
tests/lib/tools/memory_sync/test_e2e_memory.py:80
Method_serialize
Always serialize as a list so Pydantic's JSON encoder is happy.
src/anthropic/_models.py:561
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:840
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:203
Method_stop_watcher
When `_stop` is set, close the work stream so `_dispatch_loop` exits.
src/anthropic/lib/tools/_beta_session_runner.py:1147
Method_stream_loop
(self)
src/anthropic/lib/tools/_beta_session_runner.py:713
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:122
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_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:817
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
Function_waiter
(ev: anyio.Event)
src/anthropic/lib/tools/_beta_session_runner.py:1169
Methoda_sync_cm
()
tests/lib/tools/test_functions.py:542
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:927
Methodack
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:95
Methodack
(self, work_id: str, **_kwargs: Any)
tests/lib/environments/test_worker.py:1251
Methodaclose
(self)
src/anthropic/_vendor/httpx_aiohttp/transport.py:77
Methodaclose
(self)
tests/lib/test_credentials.py:3959
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:50
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:432
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:829
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:854
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:879
Methodaction_urls
(self)
src/anthropic/resources/user_profiles/user_profiles.py:904
Methodaction_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:56
Methodaction_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:628
Methodaction_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1218
Methodaction_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1250
Methodaction_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1282
Methodaction_urls
(self)
src/anthropic/resources/beta/user_profiles/user_profiles.py:1314
Methodactivate
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
Functionadd
(params: dict[str, Any])
tests/lib/threads/helpers.py:590
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:749
Methodadd
**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
Methodadd
**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
Methodadd
**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
Methodadd
**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
Methodadd
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
Methodadd
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
Methodadd
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
Methodadd
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
Methodadd
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
Methodadd
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
Methodadd
**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:128
Methodadd
**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:383
Methodadd
**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:111
Methodadd
**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:328
Methodadd
**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:245
Methodadd
**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:599
Methodadd
Create Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. workspace_
src/anthropic/resources/organization/workspaces/members.py:221
Methodadd
Create Workspace Member Args: workspace_id: ID of the Workspace. user_id: ID of the User. workspace_
src/anthropic/resources/organization/workspaces/members.py:530
Methodadd
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/organization/rbac_groups/members.py:101
Methodadd
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/organization/rbac_groups/members.py:301
Methodadd
**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:119
Methodadd
**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:350
Methodadd_leak
(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.StatisticDiff)
tests/test_client.py:344
Methodadd_leak
(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.StatisticDiff)
tests/test_client.py:1789
Methodadd_numbers
Add two numbers together.
tests/lib/tools/test_functions.py:79
Functionadd_raw_definitions
(runner: Any)
tests/lib/tools/test_runners.py:2027
Functionadd_then_remove
(runner: Any)
tests/lib/tools/test_runners.py:1865
Methodadd_trace_header
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:779
Methodadd_trace_header
(request: APIRequest, call_next: AsyncCallNext)
tests/test_middleware.py:1513
Functionadd_weather_and_compact
(runner: Any)
tests/lib/tools/test_runners.py:2103
Methodadder_cm
()
tests/lib/tools/test_functions.py:467
Methodagents
(self)
src/anthropic/resources/beta/beta.py:148
Methodagents
(self)
src/anthropic/resources/beta/beta.py:240
Methodagents
(self)
src/anthropic/resources/beta/beta.py:335
Methodagents
(self)
src/anthropic/resources/beta/beta.py:407
Methodagents
(self)
src/anthropic/resources/beta/beta.py:479
← previousnext →2,901–3,000 of 12,795, ranked by callers