Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,431 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,431
◇
Types & classes
4,007
↳
Endpoints
47
Method
test_config_file_symlink_outside_config_dir_rejected
( self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_credentials.py:981
Method
test_config_param_builds_in_memory_federation
`Anthropic(config={...})` accepts a config-file-shaped dict and wires it through to a federation provider, including `workspace_id` as
tests/lib/test_credentials.py:3026
Function
test_configs_are_gated_on_the_copy_that_is_sent
()
tests/lib/tools/toolsets/test_interface.py:157
Function
test_configs_is_a_read_only_copy_of_what_to_dict_sends
()
tests/lib/tools/toolsets/test_interface.py:304
Function
test_configs_is_a_read_only_copy_of_what_to_dict_sends
()
tests/lib/tools/toolsets/test_computer_interface.py:218
Function
test_confirm_context_describes_the_target_tab_as_of_the_last_block_and_costs_nothing_unread
()
tests/lib/tools/toolsets/test_confirm.py:99
Function
test_confirm_refusals
()
tests/lib/tools/toolsets/test_refusals.py:114
Function
test_confirm_sees_every_call_and_a_decline_never_reaches_the_driver
()
tests/lib/tools/toolsets/test_confirm.py:44
Function
test_confirm_sees_every_call_with_the_member_and_its_parsed_input
()
tests/lib/tools/toolsets/test_computer_pipeline.py:327
Function
test_confirmation_for_unknown_id_is_ignored
A confirmation for a call this runner has never seen (another client's call, or an `agent.mcp_tool_use` it never dispatches) is recorded but m
tests/lib/tools/test_session_runner.py:988
Function
test_confirmation_in_history_releases_ask_call
An ask-gated call whose `allow` confirmation is already in history (e.g. it was posted while the runner was disconnected) executes on the reco
tests/lib/tools/test_session_runner.py:772
Method
test_conflicts_still_raise
( self, client_class: type[AnthropicFoundry | AsyncAnthropicFoundry], monkeypatch: pytest.MonkeyPatch
tests/lib/test_azure.py:230
Method
test_connection_error
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1027
Method
test_consecutive_user_messages_are_sent_as_they_were_appended
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:270
Method
test_construction_accepts_async_middleware
(self)
tests/test_middleware.py:1880
Method
test_construction_accepts_sync_middleware
(self)
tests/test_middleware.py:1345
Method
test_construction_rejects_async_function
(self)
tests/test_middleware.py:1338
Method
test_construction_rejects_async_only_middleware
(self)
tests/test_middleware.py:1334
Method
test_construction_rejects_sync_function
(self)
tests/test_middleware.py:1873
Method
test_construction_rejects_sync_only_middleware
(self)
tests/test_middleware.py:1869
Method
test_constructor_starts_the_same_thread_as_the_factory
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1954
Function
test_content_fetches_fan_out_within_a_store
The first memory's fetch completes only after the second's starts — only parallel fetches satisfy that; serial ones would time out.
tests/lib/tools/memory_sync/test_two_pass.py:78
Method
test_content_is_off_by_default
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:759
Method
test_content_mode
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4905
Function
test_content_mode_decides_whether_a_content_query_is_recorded
( new_client: NewClient, monkeypatch: pytest.MonkeyPatch, content_mode: str, endpoint_content_
tests/test_tracing.py:177
Method
test_context_management_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:664
Method
test_context_management_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:988
Method
test_context_manager
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:297
Method
test_context_manager
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:600
Method
test_context_manager
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:531
Method
test_context_manager
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:784
Function
test_context_manager_closes_the_toolset
()
tests/lib/tools/toolsets/test_runnable.py:191
Method
test_continue_omits_the_system_and_tools_the_server_holds
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:139
Method
test_continue_unthreaded_counts_the_create_after_a_replay_that_failed_as_the_replay
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:571
Method
test_continue_unthreaded_keeps_threading_unless_both_rejections_are_thread_not_found
( self, respx_mock: MockRouter, first: httpx2.Response, second: httpx2.Response )
tests/lib/threads/test_beta_threads.py:661
Method
test_continue_unthreaded_replay_that_is_unsupported_goes_without_a_thread
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:508
Method
test_continue_unthreaded_replays_a_thread_that_is_lost_after_a_continue_that_succeeded
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:626
Method
test_continue_unthreaded_stops_threading_after_an_unsupported_request_that_lists_no_feature
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:461
Method
test_continue_unthreaded_stops_threading_for_good_after_an_unsupported_request
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, unsupported: list[str] )
tests/lib/threads/test_beta_threads.py:479
Method
test_continue_unthreaded_stops_threading_for_good_after_an_unsupported_request
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:273
Method
test_continue_unthreaded_stops_threading_when_the_thread_is_lost_again_right_after_a_replay
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, method: str )
tests/lib/threads/test_beta_threads.py:530
Method
test_continue_unthreaded_stops_threading_when_the_thread_is_lost_again_right_after_a_replay
( self, respx_mock: MockRouter, method: str )
tests/lib/threads/test_async_beta_threads.py:296
Method
test_continue_unthreaded_stream_stops_threading_for_good_after_an_unsupported_request
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:674
Method
test_conversation_id_is_the_events_thread_when_the_application_set_none
( self, spans: Spans, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:2317
Function
test_coordinate_lists_must_have_the_shape_the_model_was_told
()
tests/lib/tools/toolsets/test_computer_pipeline.py:173
Method
test_copied_client_does_not_close_http
(self)
tests/test_client.py:1212
Method
test_copied_client_does_not_close_http
(self)
tests/test_client.py:2677
Method
test_copies_top_level_dict
(self)
tests/test_files.py:116
Method
test_copy
(self, client: Anthropic)
tests/test_client.py:169
Method
test_copy
(self, async_client: AsyncAnthropic)
tests/test_client.py:1614
Method
test_copy
(self)
tests/lib/test_vertex.py:270
Method
test_copy
(self)
tests/lib/test_vertex.py:791
Method
test_copy
Test copy() carries over the client configuration.
tests/lib/test_azure.py:78
Method
test_copy
Test copy() carries over the client configuration.
tests/lib/test_azure.py:164
Function
test_copy_accepts_credentials_none_noop
()
tests/lib/test_aws.py:854
Function
test_copy_accepts_credentials_none_noop_async
()
tests/lib/test_aws.py:869
Method
test_copy_build_request
(self, client: Anthropic)
tests/test_client.py:283
Method
test_copy_build_request
(self, async_client: AsyncAnthropic)
tests/test_client.py:1728
Method
test_copy_clears_workspace_without_skip_auth
(self)
tests/lib/test_google_cloud.py:1030
Method
test_copy_credential_brings_its_own_host_and_headers
( self, respx_mock: MockRouter, parent_arguments: dict[str, Any], client_cls:
tests/lib/test_credentials.py:4626
Method
test_copy_credential_drops_the_parents_host_and_headers
( self, respx_mock: MockRouter, parent_arguments: dict[str, Any], client_cls:
tests/lib/test_credentials.py:4614
Method
test_copy_credential_keeps_a_passed_base_url
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, parent_argument
tests/lib/test_credentials.py:4655
Method
test_copy_credential_keeps_passed_default_headers
( self, respx_mock: MockRouter, parent_arguments: dict[str, Any], client_cls:
tests/lib/test_credentials.py:4675
Method
test_copy_credential_replaces_the_parents
( self, respx_mock: MockRouter, credential_arguments: dict[str, Any], client_c
tests/lib/test_credentials.py:4504
Method
test_copy_credentials_replaces_a_subclass_api_key
( self, respx_mock: MockRouter, credential_arguments: dict[str, Any], client_c
tests/lib/test_credentials.py:4559
Method
test_copy_deep_copies_body
(self)
tests/test_middleware.py:440
Method
test_copy_default_headers
(self)
tests/test_client.py:193
Method
test_copy_default_headers
(self)
tests/test_client.py:1638
Method
test_copy_default_headers
(self)
tests/lib/test_vertex.py:303
Method
test_copy_default_headers
(self)
tests/lib/test_vertex.py:824
Method
test_copy_default_options
(self, client: Anthropic)
tests/test_client.py:177
Method
test_copy_default_options
(self, async_client: AsyncAnthropic)
tests/test_client.py:1622
Method
test_copy_default_options
(self)
tests/lib/test_vertex.py:287
Method
test_copy_default_options
(self)
tests/lib/test_vertex.py:808
Method
test_copy_default_query
(self)
tests/test_client.py:228
Method
test_copy_default_query
(self)
tests/test_client.py:1673
Method
test_copy_does_not_deep_copy_file_objects
(self, tmp_path: Path)
tests/test_middleware.py:452
Method
test_copy_header_mutations_do_not_affect_original
(self)
tests/test_middleware.py:479
Method
test_copy_inherits_replaces_and_clears_middleware
(self)
tests/test_middleware.py:1230
Method
test_copy_inherits_replaces_and_clears_middleware
(self)
tests/test_middleware.py:1821
Method
test_copy_inherits_the_parents_credential
( self, respx_mock: MockRouter, credential_arguments: dict[str, Any], client_c
tests/lib/test_credentials.py:4519
Method
test_copy_inherits_the_parents_host_and_headers
( self, respx_mock: MockRouter, parent_arguments: dict[str, Any], client_cls:
tests/lib/test_credentials.py:4638
Function
test_copy_keeps_every_constructor_argument
( client_class: ClientClass, arguments: dict[str, object], all_arguments: bool )
tests/lib/test_client_copy.py:255
Function
test_copy_keeps_propagation
(new_client: NewClient)
tests/test_tracing.py:285
Method
test_copy_keeps_routing
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1652
Method
test_copy_keeps_user_supplied_base_url
(self)
tests/lib/test_google_cloud.py:960
Method
test_copy_location_rederives_base_url
(self)
tests/lib/test_google_cloud.py:952
Method
test_copy_lower_tier_credential_takes_effect
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:975
Method
test_copy_of_a_client_assigned_a_second_credential
( self, respx_mock: MockRouter, credential_arguments: dict[str, Any], client_c
tests/lib/test_credentials.py:4545
Function
test_copy_of_a_client_built_from_the_environment
( client_class: ClientClass, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_client_copy.py:267
Method
test_copy_of_a_client_resolved_from_both_env_vars
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, client_cls: typ
tests/lib/test_credentials.py:4531
Method
test_copy_of_a_client_whose_constructor_takes_no_open_telemetry_keeps_the_option
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4682
Function
test_copy_of_a_scoped_client_keeps_its_bearer_alone
A new client reads `ANTHROPIC_CUSTOM_HEADERS` again, and a custom header goes before the client's own credentials. A plain `copy()` of the scoped
tests/lib/test_scoped_client.py:275
Function
test_copy_of_deferred_client_still_backfills_and_shares_adc
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:879
Method
test_copy_of_federation_profile_client_exchanges_per_client
Profile-backed federation: the copy exchanges at its own host and stays out of the profile's on-disk token cache, which belongs to the
tests/lib/test_credentials.py:2966
Method
test_copy_of_user_oauth_profile_client_keeps_refresh_endpoint
A user_oauth profile's refresh token belongs to the deployment that issued it: a copy pointed at another host still refreshes at the p
tests/lib/test_credentials.py:2999
Method
test_copy_of_workspaceless_client_keeps_assigned_base_url
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1626
Method
test_copy_of_workspaceless_client_keeps_assigned_base_url
(self, respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1770
Function
test_copy_overrides_aws_options
()
tests/lib/test_aws.py:736
Function
test_copy_overrides_aws_profile
(client_class: "type[AnthropicBedrock] | type[AsyncAnthropicBedrock]")
tests/lib/test_bedrock.py:448
← previous
next →
5,801–5,900 of 12,431, ranked by callers