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_late_per_request_result_does_not_replace_cached_expiring_token
(self)
tests/lib/test_credentials.py:2071
Method
test_later_request_options_replace_the_threads_as_a_whole
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:136
Method
test_later_thread_events_do_not_replace_the_primary_thread
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2429
Method
test_later_turns_run_in_the_container_of_the_last_reply
( self, respx_mock: MockRouter, fields: dict[str, Any], expected: Any )
tests/lib/threads/test_beta_threads.py:1177
Function
test_leading_semicolon_rejected
(template: str, kwargs: dict[str, Any])
tests/test_utils/test_path.py:109
Function
test_lease_assumed_lost_releases_item_without_stopping_it
Transient heartbeat failures lasting past the lease TTL mean another worker may hold the item by now, so it is released without a force-stop.
tests/lib/environments/test_worker.py:557
Function
test_lease_lost_classification
Only the two reasons where the item now belongs to someone else read as lost; every other reason, and no recorded reason at all, keeps the for
tests/lib/environments/test_worker.py:588
Method
test_leaves_accepted_requests_and_the_response_untouched
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:232
Function
test_lets_the_caller_refuse_a_held_call_by_removing_its_tool
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:537
Method
test_lib_client_construction_validates_middleware
(self)
tests/test_middleware.py:2154
Method
test_lib_clients_copy_inherits_replaces_and_clears
(self)
tests/test_middleware.py:2114
Method
test_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:198
Method
test_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:317
Method
test_list_has_only_the_ids_in_its_path
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7590
Function
test_list_in_a_query
(client_class: ClientClass)
tests/lib/test_client_copy.py:349
Function
test_list_mismatched_type
()
tests/test_models.py:130
Function
test_list_nested_model
()
tests/test_models.py:69
Function
test_list_of_unions
()
tests/test_models.py:320
Function
test_list_optional_items_nested_model
()
tests/test_models.py:110
Method
test_list_popped_wholesale
(self)
tests/test_files.py:128
Function
test_lists_only_the_call_that_the_caller_defers_and_not_its_toolsets_later_calls
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:250
Function
test_lists_only_the_call_that_the_caller_defers_and_not_the_calls_after_it
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:445
Function
test_lists_the_calls_that_are_being_held_so_that_the_caller_can_decide_about_them
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:122
Function
test_live_idle_while_call_held_keeps_runner_alive
An `end_turn` idle arriving on the LIVE stream while a call is held for confirmation must not start the idle countdown — stopping would drop t
tests/lib/tools/test_session_runner.py:852
Method
test_live_stream_alone_does_not_tell_the_primary_thread
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2524
Function
test_local_deletions_reach_the_server_unless_it_changed
(tmp_path: Path, clock: Clock)
tests/lib/tools/memory_sync/test_memory_sync.py:79
Function
test_local_file_policy_construction_rules
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:362
Function
test_local_file_policy_download_visibility
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:347
Function
test_local_file_policy_resolves_uploads_under_its_roots
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:304
Function
test_local_file_policy_vets_document_ids_against_its_allowlist
()
tests/lib/tools/toolsets/test_security.py:324
Function
test_localfilestore_is_an_alias_for_the_combined_class
()
tests/lib/tools/test_file_store.py:42
Method
test_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:284
Method
test_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:1475
Method
test_location_from_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:320
Function
test_log_only_mode_logs_the_delete_but_never_sends_it
The dry-run setting: the full pipeline runs — window, re-checks, cap — but the confirmed delete is logged instead of sent, on every sync while
tests/lib/tools/memory_sync/test_delete_discipline.py:219
Method
test_long_token_masked_to_last_four
(self)
tests/lib/test_credentials.py:4792
Function
test_lowercase_authorization_header_respected
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:658
Method
test_lowercase_multipart_content_type
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:298
Function
test_make_status_error_sync_async_parity
(status_code: int)
tests/test_client.py:118
Method
test_managed_agents_routes
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:104
Method
test_managed_agents_routes
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:159
Method
test_mandatory_refresh_failure_raises
(self)
tests/lib/test_credentials.py:1689
Method
test_mantle_api_key_takes_precedence_over_aws
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:152
Method
test_mantle_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:2033
Function
test_mantle_user_profile_id_paths_are_up_to_date
()
tests/lib/test_platform_resources.py:155
Method
test_matches_the_first_party_client
(self)
tests/lib/test_bedrock_mantle.py:260
Method
test_max_content_bytes_bounds_a_streamed_message_too
( self, beta: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3992
Method
test_max_content_bytes_is_the_size_bound
( self, source: str, sync: bool, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3960
Method
test_max_iterations
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:353
Function
test_max_tokens_ends_runner_without_executing_tools_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:938
Function
test_max_tokens_ends_runner_without_executing_tools_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:904
Method
test_mcp_tool_name
(self)
tests/lib/tools/test_mcp_tool.py:302
Method
test_mcp_tool_no_description
(self)
tests/lib/tools/test_mcp_tool.py:307
Method
test_mcp_tool_to_dict
(self)
tests/lib/tools/test_mcp_tool.py:291
Method
test_mcp_tool_with_cache_control
(self)
tests/lib/tools/test_mcp_tool.py:312
Function
test_member_call_roundtrip_async
( async_client: AsyncAnthropic, respx_mock: MockRouter, async_navigate: BetaAsyncFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:515
Function
test_member_call_routes_by_family_not_name_sync
( client: Anthropic, respx_mock: MockRouter, navigate: BetaFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:171
Function
test_member_calls_round_trip_through_the_async_runner
( respx_mock: MockRouter, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_computer_runner.py:285
Function
test_member_calls_round_trip_through_the_async_runner
( respx_mock: MockRouter, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_browser_runner.py:108
Function
test_member_calls_round_trip_through_the_runner
(respx_mock: MockRouter, client: Anthropic)
tests/lib/tools/toolsets/test_computer_runner.py:68
Function
test_member_calls_round_trip_through_the_runner
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:66
Function
test_member_enabled_fails_closed
()
tests/lib/tools/toolsets/test_computer_registry.py:75
Function
test_member_enabled_fails_closed
()
tests/lib/tools/toolsets/test_registry.py:98
Function
test_member_errors_carry_toolset_name
( client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, flavour: str )
tests/lib/tools/toolsets/test_runner.py:388
Function
test_member_resolution_and_input_refusals
()
tests/lib/tools/toolsets/test_refusals.py:57
Function
test_member_resolution_refusals
()
tests/lib/tools/toolsets/test_computer_pipeline.py:206
Function
test_member_set_matches_the_generated_configs_param
()
tests/lib/tools/toolsets/test_computer_registry.py:46
Function
test_member_set_matches_the_generated_configs_param
()
tests/lib/tools/toolsets/test_registry.py:67
Function
test_member_set_matches_the_published_toolset
()
tests/lib/tools/toolsets/test_registry.py:36
Function
test_member_set_matches_the_published_toolset_in_its_order
()
tests/lib/tools/toolsets/test_computer_registry.py:34
Function
test_members_that_do_not_type_need_no_confirm
(twin: bool)
tests/lib/tools/toolsets/test_computer_interface.py:293
Function
test_members_that_need_a_confirm_match_the_published_toolset
()
tests/lib/tools/toolsets/test_registry.py:59
Function
test_message_block_types_are_all_a_part_with_content_or_with_only_their_type
( blocks: tuple[Any, ...], expected: set[str] )
tests/test_open_telemetry.py:8427
Function
test_message_content_list_is_copied
(message_cls: type[Union[Message, BetaMessage]])
tests/types/test_to_param.py:66
Function
test_message_delta_fields_are_all_accumulated
()
tests/lib/streaming/test_messages.py:792
Function
test_message_delta_fields_are_all_accumulated
()
tests/lib/streaming/test_beta_messages.py:1018
Method
test_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:448
Method
test_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:723
Method
test_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:651
Method
test_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:974
Method
test_message_delta_omitted_usage_keeps_message_start
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:461
Method
test_message_delta_omitted_usage_keeps_message_start
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:737
Function
test_message_role_and_content
(message_cls: type[Union[Message, BetaMessage]])
tests/types/test_to_param.py:57
Function
test_message_serializes_as_request_param
(message_cls: type[Union[Message, BetaMessage]])
tests/types/test_to_param.py:76
Method
test_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:475
Method
test_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:754
Method
test_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:588
Method
test_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:907
Method
test_message_with_cache_control
(self)
tests/lib/tools/test_mcp_tool.py:192
Method
test_messages_appended_before_a_call_that_fails_stay_staged
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:732
Method
test_messages_appended_before_a_call_that_fails_stay_staged
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:438
Method
test_messages_appended_before_a_refused_turn_stay_staged
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:860
Method
test_messages_appended_during_a_turn_are_staged_once_it_finishes
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1649
Method
test_messages_available
(self)
tests/lib/test_bedrock_mantle.py:192
Function
test_messages_cannot_be_replaced_while_compacting_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:3139
Function
test_messages_create_response_paths_are_all_final_from_message_start_or_from_message_delta
()
tests/test_open_telemetry.py:8361
Function
test_messages_passed_as_a_one_shot_iterable_reach_every_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, thread: bool | No
tests/lib/tools/toolsets/test_browser_runner.py:554
Method
test_messages_request_has_bearer_and_beta
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2463
Function
test_messages_retries
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:121
Method
test_messages_retries
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:160
← previous
next →
6,601–6,700 of 12,431, ranked by callers