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
skills
(self)
src/anthropic/resources/beta/beta.py:540
Method
skills
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:119
Method
skills
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:184
Method
skills
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:252
Method
skills
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:301
Method
skills
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:350
Method
skills
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:399
Function
slow
(_input: dict[str, Any])
tests/lib/tools/test_session_runner.py:1460
Function
slow_gated
(_input: dict[str, Any])
tests/lib/tools/test_session_runner.py:1178
Function
slow_load
()
tests/lib/test_google_cloud.py:428
Method
slow_provider
(*, force_refresh: bool = False)
tests/lib/test_credentials.py:1725
Function
slow_setup_skills
(_self: Any)
tests/lib/environments/test_worker.py:1010
Function
snapshot_client
( is_recording: bool, http_snapshot_serializer_options: SnapshotSerializerOptions, http_snapshot:
tests/conftest.py:84
Method
some_function
Original description.
tests/lib/tools/test_functions.py:123
Method
spend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:182
Method
spend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:288
Method
spend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:401
Method
spend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:470
Method
spend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:539
Method
spend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:608
Function
spy
(fn: Any)
tests/lib/test_google_cloud.py:275
Function
spy
(path: str)
tests/lib/tools/toolsets/test_security.py:139
Function
stainless_helper_header_from_file
Build x-stainless-helper header dict from a file object.
src/anthropic/lib/_stainless_helpers.py:161
Method
stats
Get statistics about the work queue for an environment. Args: betas: Optional header to specify the beta version(s) you wa
src/anthropic/resources/beta/environments/work.py:1061
Method
status_code
(self)
src/anthropic/_response.py:93
Method
stop
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:541
Method
stop
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:1120
Method
stop
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:82
Method
stop
( self, work_id: str, *, environment_id: str, force: bool = False,
tests/lib/environments/test_worker.py:117
Method
stop
(self, *_a: Any, **_kw: Any)
tests/lib/tools/memory_sync/test_e2e_memory.py:63
Function
store
(tmp_path: Path)
tests/lib/tools/test_file_store.py:38
Method
str_replace
(self, command: BetaMemoryTool20250818StrReplaceCommand)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:501
Method
str_replace
(self, command: BetaMemoryTool20250818StrReplaceCommand)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:800
Method
stream
Stream Events Args: event_deltas: When set, this connection also receives streaming deltas (`event_start`, `
src/anthropic/resources/beta/sessions/events.py:223
Method
stream
Stream Events Args: event_deltas: When set, this connection also receives streaming deltas (`event_start`, `
src/anthropic/resources/beta/sessions/events.py:483
Method
stream
Stream Session Thread Events Args: event_deltas: When set, this connection also receives streaming deltas (`event_start`,
src/anthropic/resources/beta/sessions/threads/events.py:126
Method
stream
Stream Session Thread Events Args: event_deltas: When set, this connection also receives streaming deltas (`event_start`,
src/anthropic/resources/beta/sessions/threads/events.py:305
Method
stream
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:1637
Method
stream
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:3593
Method
stream
Create a Message stream
src/anthropic/resources/messages/messages.py:2542
Method
stream_to_file
Streams the output to the given file. Accepts a filename or any path-like object, e.g. pathlib.Path
src/anthropic/_response.py:590
Method
stream_to_file
(dest: str)
tests/lib/tools/test_skills.py:401
Method
summaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:99
Method
summaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:164
Method
summaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:232
Method
summaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:281
Method
summaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:330
Method
summaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:379
Function
swap_tools
(runner: Any)
tests/lib/tools/test_runners.py:2056
Method
switch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
src/anthropic/lib/tools/_toolsets/_browser.py:432
Method
switch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
src/anthropic/lib/tools/_toolsets/_browser.py:684
Method
switch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
tests/lib/tools/toolsets/_fakes.py:218
Method
switch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
tests/lib/tools/toolsets/_fakes.py:294
Function
sync
(request: pytest.FixtureRequest)
tests/lib/tools/test_runner_eager_tools.py:1154
Function
sync_client
()
tests/lib/test_google_cloud_live.py:32
Method
sync_fn
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:1347
Method
sync_fn
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:1877
Method
sync_fn
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:2158
Function
sync_key
A function tool named like the computer toolset's `key` tool.
tests/lib/tools/test_runner_eager_toolsets.py:53
Function
sync_local_filesystem_tool
(temp_directory: str)
tests/lib/tools/memory_tools/test_filesystem.py:33
Function
sync_lookup
Look up a key.
tests/lib/tools/test_runner_eager_tools.py:1015
Function
sync_tool
A sync tool.
tests/lib/tools/toolsets/test_runner.py:766
Method
tab_id
The tab the call names, or None when it names none (an absent or empty `tab_id` both mean the active tab, which is how drivers resolve them).
src/anthropic/lib/tools/_toolsets/_pipeline.py:61
Method
tag_attempt
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:938
Function
temp_directory
()
tests/lib/tools/memory_tools/test_filesystem.py:27
Method
test_401_invalidates_and_retries_with_new_token
A provider that takes no arguments still works, on the first call and on the retry after a 401.
tests/lib/test_credentials.py:3541
Method
test_401_invalidates_cache_and_retries_once
On 401 we invalidate the cache and retry the current request once with a freshly minted token. A second 401 is not retried (single-shot
tests/lib/test_credentials.py:2604
Method
test_401_retry_forces_refresh_while_another_request_is_fetching
A 401 retry gets a new token even when another request's non-forced provider call returns first.
tests/lib/test_credentials.py:2659
Method
test_401_retry_is_single_shot
Two consecutive 401s → exactly one retry, then the error surfaces even with max_retries > 1 remaining.
tests/lib/test_credentials.py:2641
Method
test_401_retry_passes_force_refresh
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3559
Method
test_401_with_workspace_id_set_omits_workspace_hint
When workspace_id is already set the multi-workspace fix is noise, but the federation-rule lead-in and Console pointer still apply.
tests/lib/test_credentials.py:1307
Method
test_401_without_workspace_id_includes_hint
A failed exchange with no workspace_id should surface all three hint parts: the federation-rule lead-in, the multi-workspace fix, and the
tests/lib/test_credentials.py:1287
Method
test_403_raises
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1247
Method
test_503_raises
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1260
Method
test_a_400_on_the_prefill_form_retries_the_same_hop_without_the_partial
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:417
Function
test_a_bad_field_is_refused_without_echoing_the_value
()
tests/lib/tools/toolsets/test_computer_pipeline.py:158
Function
test_a_bare_string_from_navigate_or_screenshot_reaches_the_model_as_an_error_naming_its_type
( flavour: type[FakeBrowser] | type[AsyncFakeBrowser], tool: str, given: dict[str, Any] )
tests/lib/tools/toolsets/test_pipeline.py:800
Function
test_a_binary_local_file_never_blocks_the_other_files
The store is utf-8-restricted, so a binary file the agent drops in the folder is refused at read — warned once and skipped until it changes —
tests/lib/tools/memory_sync/test_memory_sync.py:226
Function
test_a_broken_store_fails_the_whole_download
A store that cannot be materialised fails the download outright. A session served without a folder its system prompt names would run with amne
tests/lib/tools/memory_sync/test_memory_sync.py:335
Function
test_a_browser_state_hook_that_raises_is_a_developer_error
()
tests/lib/tools/toolsets/test_pipeline.py:529
Function
test_a_call_already_in_the_turn_gets_the_input_error_of_the_tool_added_under_its_name
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1914
Function
test_a_call_named_after_the_toolset_stops_the_toolsets_later_calls_in_the_reply
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_computer_runner.py:251
Function
test_a_call_named_after_the_toolset_without_toolset_name_gets_an_error_that_says_what_is_wrong
( respx_mock: MockRouter, client: Anthropic )
tests/lib/tools/toolsets/test_computer_runner.py:182
Function
test_a_call_named_like_a_toolset_with_no_toolset_name_holds_that_toolsets_later_calls
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:315
Function
test_a_call_naming_a_tab_the_last_report_did_not_list_goes_to_the_driver
()
tests/lib/tools/toolsets/test_enforcement.py:179
Function
test_a_call_that_has_run_does_not_answer_a_later_reply_that_reuses_its_id
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:773
Function
test_a_call_that_has_run_keeps_its_result_after_add_tools_replaces_its_tool
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:737
Function
test_a_call_that_has_run_keeps_its_result_after_remove_tools_which_refuses_a_call_that_has_not
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:719
Function
test_a_call_to_a_tool_removed_earlier_in_the_conversation_gets_a_not_found_result
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:752
Function
test_a_call_to_a_toolset_the_runner_does_not_have_is_answered_as_not_found
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:355
Method
test_a_capacity_failed_fallback_request_stamps_the_recommended_model
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:485
Method
test_a_chain_of_pre_stream_declines_queues_every_seam_in_order
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1074
Function
test_a_client_retry_refused_because_the_first_attempt_landed_is_remembered
The client's own retry re-sends the update with the old precondition; the first attempt already moved the server, so the retry gets a 409.
tests/lib/tools/memory_sync/test_lost_response.py:109
Function
test_a_closed_async_toolset_answers_no_member_call
()
tests/lib/tools/toolsets/test_pipeline.py:1168
Function
test_a_closed_toolset_answers_no_member_call
()
tests/lib/tools/toolsets/test_pipeline.py:1159
Function
test_a_closed_toolset_refuses_calls_and_a_member_cannot_nest_call
()
tests/lib/tools/toolsets/test_computer_pipeline.py:471
Function
test_a_computer_and_a_browser_toolset_serve_one_request_by_family
( respx_mock: MockRouter, client: Anthropic )
tests/lib/tools/toolsets/test_computer_runner.py:143
Function
test_a_confirm_answer_other_than_true_declines_the_call
()
tests/lib/tools/toolsets/test_confirm.py:199
Function
test_a_confirm_that_raises_refuses_the_call_and_a_tool_error_is_relayed
()
tests/lib/tools/toolsets/test_confirm.py:187
Function
test_a_confirm_that_raises_refuses_the_call_and_an_answer_other_than_true_declines
()
tests/lib/tools/toolsets/test_computer_pipeline.py:347
← previous
next →
3,801–3,900 of 9,455, ranked by callers