MCPcopy Create free account

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

Functions9,455 in github.com/anthropics/anthropic-sdk-python

Functiontest_iter_work_stop_conflict_is_silent
A 409 from `stop` means the work already ended; it is neither logged nor allowed to break the loop.
tests/lib/environments/test_poller_method.py:182
Functiontest_iter_work_threads_extra_headers_into_force_stop
A permanent ack failure force-stops the item; the passthrough header must ride along on that force-stop call too.
tests/lib/environments/test_poller_method.py:503
Functiontest_iter_work_threads_extra_headers_into_poll_ack_stop
()
tests/lib/environments/test_poller_method.py:489
Functiontest_iter_work_yields_acks_and_stops_one_item
()
tests/lib/environments/test_poller_method.py:135
Functiontest_iterable_construction
(data: Iterable[int], expected_validated: Iterable[int])
tests/test_models.py:1066
Functiontest_iterable_construction_str_falls_back_to_list
()
tests/test_models.py:1082
Methodtest_iterables_and_mappings
(self)
tests/test_utils/test_json.py:38
Functiontest_jitter_within_bounds
()
tests/lib/environments/test_poller.py:23
Methodtest_json_string_echo_response_does_not_retain_assertion
A 200 whose body is a JSON *string* echoing the assertion must be rejected at the wrap boundary — never bound to a frame local on its
tests/lib/test_credentials.py:4490
Functiontest_keeps_none
(send: Send)
tests/test_prepare.py:232
Functiontest_keyword_only_param
()
tests/test_required_args.py:30
Methodtest_late_per_request_result_does_not_replace_cached_expiring_token
(self)
tests/lib/test_credentials.py:2011
Functiontest_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:550
Functiontest_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:581
Methodtest_leaves_accepted_requests_and_the_response_untouched
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:210
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:2157
Methodtest_lib_clients_copy_inherits_replaces_and_clears
(self)
tests/test_middleware.py:2117
Methodtest_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:198
Methodtest_list_comprehension
(self)
tests/lib/tools/test_mcp_tool.py:317
Functiontest_list_mismatched_type
()
tests/test_models.py:115
Functiontest_list_nested_model
()
tests/test_models.py:54
Functiontest_list_of_unions
()
tests/test_models.py:305
Functiontest_list_optional_items_nested_model
()
tests/test_models.py:95
Methodtest_list_popped_wholesale
(self)
tests/test_files.py:128
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_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:827
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:324
Functiontest_local_file_policy_download_visibility
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:309
Functiontest_local_file_policy_resolves_uploads_under_its_roots
(tmp_path: Path)
tests/lib/tools/toolsets/test_security.py:266
Functiontest_local_file_policy_vets_document_ids_against_its_allowlist
()
tests/lib/tools/toolsets/test_security.py:286
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:93
Methodtest_location_defaults_to_global
(self)
tests/lib/test_google_cloud.py:1082
Methodtest_location_from_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:131
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:4355
Functiontest_lowercase_authorization_header_respected
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:471
Methodtest_lowercase_multipart_content_type
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:272
Functiontest_make_status_error_sync_async_parity
(status_code: int)
tests/test_client.py:117
Methodtest_mandatory_refresh_failure_raises
(self)
tests/lib/test_credentials.py:1629
Methodtest_mantle_api_key_takes_precedence_over_aws
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:104
Methodtest_mantle_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:2036
Methodtest_max_iterations
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:391
Functiontest_max_tokens_ends_runner_without_executing_tools_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:964
Functiontest_max_tokens_ends_runner_without_executing_tools_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:930
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:510
Functiontest_member_call_routes_by_family_not_name_sync
( client: Anthropic, respx_mock: MockRouter, navigate: BetaFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:166
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:107
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:65
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:383
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_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:645
Functiontest_message_delta_fields_are_all_accumulated
()
tests/lib/streaming/test_beta_messages.py:899
Methodtest_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:400
Methodtest_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:594
Methodtest_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:601
Methodtest_message_delta_fields_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:855
Methodtest_message_delta_omitted_usage_keeps_message_start
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:413
Methodtest_message_delta_omitted_usage_keeps_message_start
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:608
Functiontest_message_role_and_content
(message_cls: type[Union[Message, BetaMessage]])
tests/types/test_to_param.py:57
Functiontest_message_serializes_as_request_param
(message_cls: type[Union[Message, BetaMessage]])
tests/types/test_to_param.py:76
Methodtest_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:427
Methodtest_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:625
Methodtest_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:538
Methodtest_message_stop_event_serialization
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:788
Methodtest_message_with_cache_control
(self)
tests/lib/tools/test_mcp_tool.py:192
Methodtest_messages_available
(self)
tests/lib/test_bedrock_mantle.py:144
Functiontest_messages_cannot_be_replaced_while_compacting_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:3114
Functiontest_messages_passed_as_a_one_shot_iterable_reach_every_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:490
Methodtest_messages_request_has_bearer_and_beta
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2330
Functiontest_messages_retries
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:74
Methodtest_messages_retries
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:76
Methodtest_messages_retries
(self, respx_mock: MockRouter)
tests/lib/test_vertex.py:270
Functiontest_messages_retries_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:109
Methodtest_method_ack
(self, client: Anthropic)
tests/api_resources/beta/environments/test_work.py:194
Methodtest_method_ack
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/environments/test_work.py:641
Methodtest_method_ack_with_all_params
(self, client: Anthropic)
tests/api_resources/beta/environments/test_work.py:202
Methodtest_method_ack_with_all_params
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/environments/test_work.py:649
Methodtest_method_add
(self, client: Anthropic)
tests/api_resources/beta/sessions/test_resources.py:255
Methodtest_method_add
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/sessions/test_resources.py:548
← previousnext →5,001–5,100 of 9,455, ranked by callers