MCPcopy Create free account

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

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

Methodspend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:697
Methodspend_limits
(self)
src/anthropic/resources/beta/organization/organization.py:790
Methodspend_limits
(self)
src/anthropic/resources/organization/organization.py:166
Methodspend_limits
(self)
src/anthropic/resources/organization/organization.py:266
Methodspend_limits
(self)
src/anthropic/resources/organization/organization.py:373
Methodspend_limits
(self)
src/anthropic/resources/organization/organization.py:434
Methodspend_limits
(self)
src/anthropic/resources/organization/organization.py:495
Methodspend_limits
(self)
src/anthropic/resources/organization/organization.py:556
Functionspy
(fn: Any)
tests/lib/test_google_cloud.py:462
Functionspy
(path: str)
tests/lib/tools/toolsets/test_security.py:141
Functionstainless_helper_header_from_file
Build x-stainless-helper header dict from a file object.
src/anthropic/lib/_stainless_helpers.py:162
Methodstats
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:1152
Methodstatus_code
(self)
src/anthropic/_response.py:93
Methodstep
(number: int)
tests/lib/tools/test_open_telemetry.py:1333
Methodstop
Stop a work item, initiating graceful or forced shutdown. Args: force: If true, immediately stop work without graceful shu
src/anthropic/resources/beta/environments/work.py:590
Methodstop
Stop a work item, initiating graceful or forced shutdown. Args: force: If true, immediately stop work without graceful shu
src/anthropic/resources/beta/environments/work.py:1220
Methodstop
(self, work_id: str, **kwargs: Any)
tests/lib/environments/test_poller_method.py:98
Methodstop
( self, work_id: str, *, environment_id: str, force: bool = False,
tests/lib/environments/test_worker.py:122
Methodstop
(self, *_a: Any, **_kw: Any)
tests/lib/tools/memory_sync/test_e2e_memory.py:63
Functionstore
(tmp_path: Path)
tests/lib/tools/test_file_store.py:38
Methodstr_replace
(self, command: BetaMemoryTool20250818StrReplaceCommand)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:507
Methodstr_replace
(self, command: BetaMemoryTool20250818StrReplaceCommand)
src/anthropic/lib/tools/_beta_builtin_memory_tool.py:805
Functionstream
(request: Request)
tests/utils.py:311
Functionstream
(client: AnthropicBedrockMantle, user_profile_id: str | Omit, extra_body: object)
tests/lib/test_bedrock_mantle.py:467
Methodstream
Stream Events Args: event_deltas: When set, this connection also receives streaming deltas (`event_start`, `
src/anthropic/resources/beta/sessions/events.py:233
Methodstream
Stream Events Args: event_deltas: When set, this connection also receives streaming deltas (`event_start`, `
src/anthropic/resources/beta/sessions/events.py:508
Methodstream
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:129
Methodstream
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:314
Methodstream
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:1991
Methodstream
( self, *, max_tokens: int, messages: Iterable[BetaMessageParam], mode
src/anthropic/resources/beta/messages/messages.py:4349
Methodstream
Create a Message stream
src/anthropic/resources/messages/messages.py:3105
Methodstream
Like `send()`, and returns the reply's stream. The turn is in progress until the stream ends or is closed.
src/anthropic/lib/threads/_beta_threads.py:439
Methodstream_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:592
Methodstream_to_file
(dest: str)
tests/lib/tools/test_skills.py:431
Methodstring
(city: str)
tests/lib/tools/test_open_telemetry.py:519
Methodsummaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:115
Methodsummaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:188
Methodsummaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:264
Methodsummaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:321
Methodsummaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:378
Methodsummaries
(self)
src/anthropic/resources/beta/organization/analytics/analytics.py:435
Methodsummaries
(self)
src/anthropic/resources/organization/analytics/analytics.py:67
Methodsummaries
(self)
src/anthropic/resources/organization/analytics/analytics.py:116
Methodsummaries
(self)
src/anthropic/resources/organization/analytics/analytics.py:168
Methodsummaries
(self)
src/anthropic/resources/organization/analytics/analytics.py:201
Methodsummaries
(self)
src/anthropic/resources/organization/analytics/analytics.py:234
Methodsummaries
(self)
src/anthropic/resources/organization/analytics/analytics.py:267
Functionswap_tools
(runner: Any)
tests/lib/tools/test_runners.py:2064
Methodswitch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
src/anthropic/lib/tools/_toolsets/_browser.py:432
Methodswitch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
src/anthropic/lib/tools/_toolsets/_browser.py:684
Methodswitch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
tests/lib/tools/toolsets/_fakes.py:218
Methodswitch_tab
( self, context: BetaToolsetCallContext, input: BetaBrowserSwitchTabInput )
tests/lib/tools/toolsets/_fakes.py:294
Functionsync
(request: pytest.FixtureRequest)
tests/lib/tools/test_runner_eager_tools.py:1154
Methodsync_fn
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:1346
Methodsync_fn
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:1874
Methodsync_fn
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:2155
Functionsync_key
A function tool named like the computer toolset's `key` tool.
tests/lib/tools/test_runner_eager_toolsets.py:53
Functionsync_local_filesystem_tool
(temp_directory: str)
tests/lib/tools/memory_tools/test_filesystem.py:35
Functionsync_lookup
Look up a key.
tests/lib/tools/test_runner_eager_tools.py:1015
Functionsync_tool
A sync tool.
tests/lib/tools/toolsets/test_runner.py:771
Methodtab_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
Methodtag_attempt
(request: APIRequest, call_next: CallNext)
tests/test_middleware.py:939
Methodtargets
(self)
src/anthropic/resources/beta/organization/claude_tag/bundles/bundles.py:36
Methodtargets
(self)
src/anthropic/resources/beta/organization/claude_tag/bundles/bundles.py:284
Methodtargets
(self)
src/anthropic/resources/beta/organization/claude_tag/bundles/bundles.py:545
Methodtargets
(self)
src/anthropic/resources/beta/organization/claude_tag/bundles/bundles.py:564
Methodtargets
(self)
src/anthropic/resources/beta/organization/claude_tag/bundles/bundles.py:583
Methodtargets
(self)
src/anthropic/resources/beta/organization/claude_tag/bundles/bundles.py:602
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:258
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:391
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:531
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:624
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:717
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:810
Functiontemp_directory
()
tests/lib/tools/memory_tools/test_filesystem.py:29
Methodtest
Send one test span, named `anthropic.test`, to the destination with its registered headers, once and without retries, and report the
src/anthropic/resources/beta/organization/telemetry_destinations/telemetry_destinations.py:1027
Methodtest_401_for_a_request_with_its_own_credential_keeps_the_cached_token
(self, header: str)
tests/lib/test_credentials.py:2959
Methodtest_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:3988
Methodtest_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:2828
Methodtest_401_refreshes_on_the_next_call_when_max_retries_is_zero
(self)
tests/lib/test_credentials.py:2944
Methodtest_401_refreshes_when_authorization_was_changed_on_the_request
A revoked token is dropped even if the request no longer shows it by the time the 401 is handled.
tests/lib/test_credentials.py:2932
Methodtest_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:2972
Methodtest_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:2865
Methodtest_401_retry_passes_force_refresh
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:4006
Methodtest_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:1372
Methodtest_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:1352
Methodtest_403_raises
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1312
Methodtest_503_raises
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1325
Methodtest_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:447
Functiontest_a_bad_field_is_refused_without_echoing_the_value
()
tests/lib/tools/toolsets/test_computer_pipeline.py:158
Functiontest_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
Functiontest_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
Methodtest_a_body_read_the_wrong_way_can_still_be_read_the_right_way
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1515
Functiontest_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
Functiontest_a_browser_state_hook_that_raises_is_a_developer_error
()
tests/lib/tools/toolsets/test_pipeline.py:529
Functiontest_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:1922
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_a_call_naming_a_tab_the_last_report_did_not_list_goes_to_the_driver
()
tests/lib/tools/toolsets/test_enforcement.py:179
← previousnext →5,101–5,200 of 12,824, ranked by callers