Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
12,274 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
12,274
◇
Types & classes
3,937
↳
Endpoints
46
Method
test_a_tool_the_mcp_helper_made_without_a_description_has_none
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1942
Method
test_a_tools_list_edited_in_place_is_sent_on_the_create_and_refused_on_a_continue
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:2049
Function
test_a_tools_list_edited_in_place_is_sent_when_the_message_thread_is_created_and_refused_after_that
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:499
Function
test_a_tools_list_is_kept_so_editing_it_in_place_reaches_the_next_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, with_toolset: boo
tests/lib/tools/toolsets/test_browser_runner.py:408
Function
test_a_toolset_call_does_not_run_a_function_tool_of_the_same_name
(setup: SetupFactory, sync: bool)
tests/lib/tools/test_runner_eager_toolsets.py:47
Function
test_a_toolset_call_that_the_caller_defers_holds_its_toolsets_later_calls_and_no_other_call
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:200
Function
test_a_toolset_in_set_messages_params_is_sent_as_its_wire_entry
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:145
Function
test_a_toolset_instance_is_a_tool_like
()
tests/lib/tools/toolsets/test_surface.py:179
Function
test_a_toolset_instance_is_a_tool_like
()
tests/lib/tools/toolsets/test_computer_surface.py:93
Function
test_a_toolset_instance_stands_in_tools_for_create_and_count_tokens
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_computer_runner.py:302
Function
test_a_toolset_instance_stands_in_tools_for_create_and_count_tokens
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:584
Function
test_a_toolset_of_the_other_flavour_is_refused_when_the_runner_is_built
( client: Anthropic, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_browser_runner.py:124
Function
test_a_toolset_runs_only_while_set_messages_params_leaves_its_definition_in_tools
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, kept: bool )
tests/lib/tools/toolsets/test_browser_runner.py:166
Function
test_a_toolset_taken_out_of_the_list_in_place_is_not_sent_with_the_next_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:469
Function
test_a_toolset_that_does_not_extend_the_sdks_classes_starts_its_calls_early_too
( setup: SetupFactory, sync: bool )
tests/lib/tools/test_runner_eager_toolsets.py:390
Function
test_a_toolset_that_serves_keyboard_input_will_not_build_without_a_confirm
(member: str, twin: bool)
tests/lib/tools/toolsets/test_computer_interface.py:256
Function
test_a_toolset_with_all_three_keyboard_members_disabled_needs_no_confirm
(Desktop: Any)
tests/lib/tools/toolsets/test_computer_interface.py:282
Function
test_a_toolset_with_no_member_enabled_sends_every_member_disabled
()
tests/lib/tools/toolsets/test_computer_interface.py:58
Function
test_a_toolset_with_the_keyboard_off_runs_its_calls_with_no_confirm
()
tests/lib/tools/toolsets/test_computer_pipeline.py:411
Method
test_a_turn_that_no_reply_answered_keeps_its_cache_markers
( self, respx_mock: MockRouter, new_messages: list[BetaMessageParam] )
tests/lib/threads/test_beta_threads.py:935
Method
test_a_turn_that_no_reply_answered_keeps_its_cache_markers
( self, respx_mock: MockRouter, new_messages: list[BetaMessageParam] )
tests/lib/threads/test_async_beta_threads.py:561
Method
test_a_turn_that_pauses_twice_continues_from_the_second_pause_with_no_messages
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:307
Function
test_a_url_or_paths_on_another_member_is_not_policy_checked
( flavour: type[FakeBrowser] | type[AsyncFakeBrowser], )
tests/lib/tools/toolsets/test_pipeline.py:417
Method
test_a_url_that_cannot_be_recorded_leaves_the_call_as_it_is
( self, sync: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:8013
Method
test_a_value_in_the_path_that_is_no_id_is_recorded_as_it_is
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7364
Function
test_a_work_item_without_data_is_acked_and_given_with_a_span
(sync: bool, respx_mock: MockRouter)
tests/lib/environments/test_poller_method.py:782
Method
test_absent_from_body_when_not_given
(self, client: AnthropicBedrockMantle, respx_mock: MockRouter)
tests/lib/test_bedrock_mantle.py:731
Method
test_absolute_request_url
(self, client: Anthropic)
tests/test_client.py:1184
Method
test_absolute_request_url
(self, client: AsyncAnthropic)
tests/test_client.py:2632
Method
test_access_key_alone_returns_true
(self)
tests/lib/test_aws_auth.py:63
Method
test_access_key_only_raises
(self)
tests/lib/test_aws_auth.py:28
Method
test_access_key_only_raises
(self)
tests/lib/test_bedrock_mantle.py:322
Function
test_adc_path
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:545
Function
test_adc_without_project_raises_on_first_request
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:842
Function
test_adc_without_project_raises_on_first_request_async
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:927
Function
test_add_tools_refuses_a_raw_definition_of_the_runners_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, definition_type:
tests/lib/tools/toolsets/test_browser_runner.py:243
Function
test_add_tools_refuses_a_tool_named_like_the_runners_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, added: str )
tests/lib/tools/toolsets/test_browser_runner.py:263
Function
test_add_tools_refuses_a_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:189
Function
test_add_tools_replaces_a_tool_of_the_same_name_straight_away
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1895
Function
test_add_tools_sends_a_raw_toolset_definition_of_another_family
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:290
Function
test_add_tools_sends_the_definition_with_the_next_request
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1684
Method
test_add_without_the_named_field_in_its_response
( self, body: dict[str, Any], spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7715
Method
test_advisory_caller_skips_when_refresh_in_flight
A caller in the advisory window does NOT start a second refresh and does NOT wait on a running one — it just returns the cached token.
tests/lib/test_credentials.py:1869
Method
test_advisory_failure_serves_cached_and_mandatory_failure_raises
(self)
tests/lib/test_credentials.py:3881
Method
test_advisory_refresh_backoff_after_failure
After an advisory refresh failure, subsequent advisory callers within ADVISORY_REFRESH_BACKOFF_SECONDS reuse the cached token instead
tests/lib/test_credentials.py:2103
Method
test_advisory_refresh_failure_serves_stale
(self, caplog: pytest.LogCaptureFixture)
tests/lib/test_credentials.py:1667
Method
test_advisory_refresh_success
(self)
tests/lib/test_credentials.py:1658
Method
test_agent_id_is_the_conventions_attribute
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7631
Function
test_agent_message_accepts_none_snapshot
()
tests/lib/sessions/test_accumulate.py:153
Function
test_agent_message_replaces_the_preview_with_a_copy_of_the_final_event
()
tests/lib/sessions/test_accumulate.py:137
Function
test_agent_toolset_filter_and_extend
The list returned by beta_agent_toolset_20260401 is a plain list that callers can filter or extend.
tests/lib/tools/test_agent_toolset.py:194
Function
test_agent_toolset_names_and_type
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:187
Method
test_aiohttp_refused_connection_is_not_a_timeout
(self, async_client: AsyncAnthropic)
tests/test_client.py:2988
Function
test_aiter_work_backs_off_on_transient_error
(status: int)
tests/lib/environments/test_poller_method.py:445
Function
test_aiter_work_calls_stop_when_body_raises
()
tests/lib/environments/test_poller_method.py:432
Function
test_aiter_work_drain_auto_stop_false_dispatch_shape
()
tests/lib/environments/test_poller_method.py:483
Function
test_aiter_work_logs_idle_polling
(monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_poller_method.py:400
Function
test_aiter_work_propagates_non_api_error_instead_of_retrying
Async counterpart: a non-API/non-transport error propagates instead of being retried forever.
tests/lib/environments/test_poller_method.py:471
Function
test_aiter_work_stop_conflict_is_silent
(caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_poller_method.py:455
Function
test_aiter_work_threads_extra_headers_into_force_stop
()
tests/lib/environments/test_poller_method.py:553
Function
test_aiter_work_threads_extra_headers_into_poll_ack_stop
()
tests/lib/environments/test_poller_method.py:538
Function
test_aiter_work_yields_acks_and_stops_one_item
()
tests/lib/environments/test_poller_method.py:416
Function
test_aliases
()
tests/test_models.py:186
Function
test_all_blank_upload_roots_report_no_configured_roots
()
tests/lib/tools/toolsets/test_security.py:296
Method
test_all_none_output_config_subfields_on_a_missing_original_add_nothing
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:496
Method
test_all_of_the_async_runners_code_runs_in_the_tool_runner_span
( self, stream: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:1320
Method
test_all_of_the_runners_code_runs_in_the_tool_runner_span
( self, stream: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:1281
Function
test_allof
()
tests/lib/_parse/test_transform.py:133
Function
test_allow_after_end_turn_resumes_idle_stop
The `allow` twin of the test above: the released call runs and posts its result, nothing else arrives, and the runner must still stop on its own.
tests/lib/tools/test_session_runner.py:1165
Function
test_allowed_call_of_terminated_thread_does_not_start_idle_countdown_after_failed_history_read
An allowed call is running or queued when its thread terminates, and the history read fails. The end of the call must not start the countdown that
tests/lib/tools/test_session_runner.py:1665
Function
test_ambient_first_party_credentials_do_not_warn
( client_cls: _AWSClientClass, monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
tests/lib/test_aws.py:249
Method
test_an_absent_output_config_keeps_the_original
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:448
Function
test_an_approval_covers_the_last_report_and_the_page_is_not_read_again
()
tests/lib/tools/toolsets/test_confirm.py:164
Function
test_an_async_browser_state_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_pipeline.py:955
Function
test_an_async_confirm_that_raises_refuses_the_call_and_a_tool_error_is_relayed
()
tests/lib/tools/toolsets/test_confirm.py:283
Function
test_an_async_execute_override_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_computer_pipeline.py:429
Function
test_an_async_execute_override_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_pipeline.py:990
Function
test_an_async_execute_override_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_interface.py:358
Function
test_an_async_file_policy_hides_the_path_on_the_async_class_too
()
tests/lib/tools/toolsets/test_pipeline.py:296
Function
test_an_async_member_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_interface.py:241
Function
test_an_async_member_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_computer_interface.py:148
Function
test_an_async_new_tab_whose_tab_is_not_the_active_one_fails_too
()
tests/lib/tools/toolsets/test_pipeline.py:776
Function
test_an_async_pure_action_may_return_one_line_too
()
tests/lib/tools/toolsets/test_pipeline.py:140
Function
test_an_async_unexpected_exception_is_logged_with_folded_names_and_answered_with_bounded_text
( caplog: pytest.LogCaptureFixture, )
tests/lib/tools/toolsets/test_runnable.py:237
Function
test_an_edit_made_after_a_lost_upload_response_still_reaches_the_server
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:59
Function
test_an_edit_written_mid_sync_still_survives_a_remote_delete
The directory scan saw the file unedited; an edit is written while the server listing is in flight. The removal must re-read the file instead
tests/lib/tools/memory_sync/test_keep_only_copy.py:129
Function
test_an_edited_file_survives_a_remote_delete_and_is_re_created
( tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_keep_only_copy.py:32
Method
test_an_emitted_start_leaves_the_delta_untouched
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1192
Function
test_an_emptied_folder_issues_no_deletes_and_is_repopulated
( tmp_path: Path, caplog: pytest.LogCaptureFixture, clock: Clock )
tests/lib/tools/memory_sync/test_folder_trust.py:71
Function
test_an_emptied_folder_with_the_marker_left_behind_issues_no_deletes
`rm <mount>/*`: shell globs skip dotfiles, so the marker survives the wipe — an intact marker alone must not clear a folder whose every memory
tests/lib/tools/memory_sync/test_folder_trust.py:95
Method
test_an_empty_chain_disables_the_middleware
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:561
Method
test_an_empty_chain_passes_the_stream_through_untouched
(self, caplog: pytest.LogCaptureFixture)
tests/lib/test_refusal_fallback_streaming.py:898
Method
test_an_empty_request_option_clears_the_threads
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1255
Function
test_an_empty_text_block_is_dropped_from_error_content_so_the_placeholder_applies
()
tests/lib/tools/toolsets/test_runnable.py:135
Function
test_an_enabled_the_types_do_not_allow_fails_closed_if_it_gets_past_them
()
tests/lib/tools/toolsets/test_pipeline.py:447
Method
test_an_entry_that_sets_thinking_overrides_between_tools
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:371
Method
test_an_equal_copy_of_system_and_tools_continues_the_thread
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:2085
Method
test_an_exception_inside_the_stream_block_records_the_partial_reply
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1698
Function
test_an_execute_only_subclass_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_pipeline.py:467
Function
test_an_execute_only_subclass_serves_every_member_and_turns_members_off_with_configs
()
tests/lib/tools/toolsets/test_interface.py:118
← previous
next →
5,201–5,300 of 12,274, ranked by callers