MCPcopy Create free account

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

Functions13,873 in github.com/anthropics/anthropic-sdk-python

Methodtest_late_401_forces_refresh_for_per_request_tokens
A per-request token (`expires_at=0`) differs on every call, so a late 401 still forces a refresh.
tests/lib/test_credentials.py:2908
Methodtest_late_per_request_result_does_not_replace_cached_expiring_token
(self)
tests/lib/test_credentials.py:2076
Functiontest_late_stop_is_sent_without_a_heartbeat
(ending: Step, at: float)
tests/lib/environments/test_worker.py:492
Methodtest_later_request_options_replace_the_threads_as_a_whole
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:136
Methodtest_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
Functiontest_leading_semicolon_rejected
(template: str, kwargs: dict[str, Any])
tests/test_utils/test_path.py:109
Functiontest_lease_cannot_expire_early
(actions: list[Step], at: float)
tests/lib/environments/test_fake_work_api.py:109
Functiontest_lease_is_kept_until_the_memory_is_saved
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:324
Functiontest_lease_is_kept_when_a_heartbeat_succeeds_after_the_event_loop_was_blocked_past_the_ttl
( call: Call, at: float )
tests/lib/environments/test_worker.py:283
Functiontest_lease_is_kept_when_a_heartbeat_succeeds_after_the_ttl
()
tests/lib/environments/test_worker.py:292
Functiontest_lease_is_kept_when_the_api_accepts_the_repeat_of_a_heartbeat_whose_response_was_lost
( fault: Fault, variant: Variant )
tests/lib/environments/test_worker.py:271
Functiontest_lease_is_lost_one_ttl_after_the_last_heartbeat_that_succeeded_was_sent
(ttl: int)
tests/lib/environments/test_worker.py:347
Functiontest_lease_is_lost_when_it_expires_while_a_cancelled_worker_waits_for_a_sync_tool
(backend: str)
tests/lib/environments/test_worker.py:411
Functiontest_lease_of_another_worker_is_not_extended_after_a_failed_heartbeat
( fault: Fault, applied: bool, variant: Variant )
tests/lib/environments/test_worker.py:324
Methodtest_leaves_accepted_requests_and_the_response_untouched
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:232
Functiontest_lets_the_caller_refuse_a_held_call_by_removing_its_tool
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:537
Methodtest_lib_client_construction_validates_middleware
(self)
tests/test_middleware.py:2154
Methodtest_lib_clients_copy_inherits_replaces_and_clears
(self)
tests/test_middleware.py:2114
Functiontest_limit_below_one_is_rejected_when_the_runner_is_built
(async_client: AsyncAnthropic, limit: int)
tests/lib/tools/test_session_runner.py:292
Methodtest_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:198
Methodtest_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:317
Methodtest_list_has_only_the_ids_in_its_path
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7590
Functiontest_list_in_a_query
(client_class: ClientClass)
tests/lib/test_client_copy.py:349
Functiontest_list_mismatched_type
()
tests/test_models.py:130
Functiontest_list_nested_model
()
tests/test_models.py:69
Functiontest_list_of_unions
()
tests/test_models.py:320
Functiontest_list_optional_items_nested_model
()
tests/test_models.py:110
Methodtest_list_popped_wholesale
(self)
tests/test_files.py:128
Functiontest_listed_call_still_runs_after_another_thread_lists_its_own_calls
()
tests/lib/tools/test_session_runner.py:502
Functiontest_listed_call_still_runs_after_the_status_changes
(then: list[Step])
tests/lib/tools/test_session_runner.py:494
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_local_deletions_reach_the_server_unless_it_changed
(tmp_path: Path, clock: Clock)
tests/lib/tools/memory_sync/test_memory_sync.py:79
Functiontest_local_file_policy_construction_rules
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:362
Functiontest_local_file_policy_download_visibility
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:347
Functiontest_local_file_policy_resolves_uploads_under_its_roots
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:304
Functiontest_local_file_policy_vets_document_ids_against_its_allowlist
()
tests/lib/tools/toolsets/test_security.py:324
Functiontest_localfilestore_is_an_alias_for_the_combined_class
()
tests/lib/tools/test_file_store.py:42
Methodtest_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:284
Methodtest_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:1475
Methodtest_location_from_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:320
Functiontest_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
Methodtest_long_token_masked_to_last_four
(self)
tests/lib/test_credentials.py:5117
Functiontest_lowercase_authorization_header_respected
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:658
Methodtest_lowercase_multipart_content_type
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:298
Functiontest_make_status_error_sync_async_parity
(status_code: int)
tests/test_client.py:118
Functiontest_managed_agents_are_on_the_raw_and_streaming_response_wrappers
()
tests/lib/test_bedrock.py:1162
Functiontest_managed_agents_request_goes_to_the_control_plane
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:1058
Functiontest_managed_agents_request_is_signed_over_the_anthropic_path
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_bedrock.py:1078
Functiontest_managed_agents_request_keeps_the_anthropic_version_of_the_client
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1153
Functiontest_managed_agents_request_sends_a_list_in_the_query_with_brackets
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:1169
Methodtest_managed_agents_routes
(self, sync_client: AnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:104
Methodtest_managed_agents_routes
(self, async_client: AsyncAnthropicGoogleCloud)
tests/lib/test_google_cloud_live.py:159
Functiontest_managed_agents_stream_is_read_as_server_sent_events
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:1196
Methodtest_mandatory_refresh_failure_raises
(self)
tests/lib/test_credentials.py:1694
Methodtest_mantle_api_key_takes_precedence_over_aws
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:152
Methodtest_mantle_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:2033
Functiontest_mantle_user_profile_id_paths_are_up_to_date
()
tests/lib/test_platform_resources.py:155
Methodtest_matches_the_first_party_client
(self)
tests/lib/test_bedrock_mantle.py:260
Functiontest_max_concurrent_calls_below_one_is_rejected
(worker: Callable[..., EnvironmentWorker])
tests/lib/environments/test_worker.py:985
Functiontest_max_concurrent_calls_decides_when_the_call_of_a_second_thread_starts
( worker: Callable[..., EnvironmentWorker], options: dict[str, Any], second_starts_at: float )
tests/lib/environments/test_worker.py:974
Methodtest_max_content_bytes_bounds_a_streamed_message_too
( self, beta: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3992
Methodtest_max_content_bytes_is_the_size_bound
( self, source: str, sync: bool, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3960
Functiontest_max_idle_decides_when_the_item_of_an_idle_session_is_stopped
( worker: Callable[..., EnvironmentWorker], options: dict[str, Any], stops: list[float] )
tests/lib/environments/test_worker.py:962
Functiontest_max_idle_set_during_iteration_is_not_used
()
tests/lib/tools/test_session_runner.py:2081
Methodtest_max_iterations
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:353
Functiontest_max_tokens_ends_runner_without_executing_tools_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:938
Functiontest_max_tokens_ends_runner_without_executing_tools_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:904
Methodtest_mcp_tool_name
(self)
tests/lib/tools/test_mcp_tool.py:302
Methodtest_mcp_tool_no_description
(self)
tests/lib/tools/test_mcp_tool.py:307
Methodtest_mcp_tool_to_dict
(self)
tests/lib/tools/test_mcp_tool.py:291
Methodtest_mcp_tool_with_cache_control
(self)
tests/lib/tools/test_mcp_tool.py:312
Functiontest_member_call_roundtrip_async
( async_client: AsyncAnthropic, respx_mock: MockRouter, async_navigate: BetaAsyncFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:515
Functiontest_member_call_routes_by_family_not_name_sync
( client: Anthropic, respx_mock: MockRouter, navigate: BetaFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:171
Functiontest_member_calls_round_trip_through_the_async_runner
( respx_mock: MockRouter, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_computer_runner.py:285
Functiontest_member_calls_round_trip_through_the_async_runner
( respx_mock: MockRouter, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_browser_runner.py:108
Functiontest_member_calls_round_trip_through_the_runner
(respx_mock: MockRouter, client: Anthropic)
tests/lib/tools/toolsets/test_computer_runner.py:68
Functiontest_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
Functiontest_member_enabled_fails_closed
()
tests/lib/tools/toolsets/test_computer_registry.py:75
Functiontest_member_enabled_fails_closed
()
tests/lib/tools/toolsets/test_registry.py:98
Functiontest_member_errors_carry_toolset_name
( client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, flavour: str )
tests/lib/tools/toolsets/test_runner.py:388
Functiontest_member_resolution_and_input_refusals
()
tests/lib/tools/toolsets/test_refusals.py:57
Functiontest_member_resolution_refusals
()
tests/lib/tools/toolsets/test_computer_pipeline.py:206
Functiontest_member_set_matches_the_generated_configs_param
()
tests/lib/tools/toolsets/test_computer_registry.py:46
Functiontest_member_set_matches_the_generated_configs_param
()
tests/lib/tools/toolsets/test_registry.py:67
Functiontest_member_set_matches_the_published_toolset
()
tests/lib/tools/toolsets/test_registry.py:36
Functiontest_member_set_matches_the_published_toolset_in_its_order
()
tests/lib/tools/toolsets/test_computer_registry.py:34
Functiontest_members_that_do_not_type_need_no_confirm
(twin: bool)
tests/lib/tools/toolsets/test_computer_interface.py:293
Functiontest_members_that_need_a_confirm_match_the_published_toolset
()
tests/lib/tools/toolsets/test_registry.py:59
Functiontest_memory_is_saved_after_the_tool_context_is_closed
(notes: Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/memory_sync/test_e2e_memory.py:333
Functiontest_memory_is_saved_and_removed_when_closing_the_tool_context_fails
( notes: Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/memory_sync/test_e2e_memory.py:344
Functiontest_memory_is_synced_after_a_call_once_the_interval_has_passed
( notes: Path, interval: float, uploads: list[float] )
tests/lib/tools/memory_sync/test_e2e_memory.py:77
Functiontest_memory_write_in_flight_finishes_when_the_session_ends
(notes: Path, name: str, ending: Step)
tests/lib/tools/memory_sync/test_e2e_memory.py:183
Functiontest_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
Functiontest_message_content_list_is_copied
(message_cls: type[Union[Message, BetaMessage]])
tests/types/test_to_param.py:66
Functiontest_message_delta_fields_are_all_accumulated
()
tests/lib/streaming/test_messages.py:827
Functiontest_message_delta_fields_are_all_accumulated
()
tests/lib/streaming/test_beta_messages.py:1053
Methodtest_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:469
Methodtest_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:758
← previousnext →7,301–7,400 of 13,873, ranked by callers