MCPcopy Create free account

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

Functions12,274 in github.com/anthropics/anthropic-sdk-python

Functiontest_a_dismissed_dialog_is_a_line_of_text_with_its_message_capped
()
tests/lib/tools/toolsets/test_pipeline.py:814
Functiontest_a_download_change_without_a_url_is_the_drivers_bug
()
tests/lib/tools/toolsets/test_enforcement.py:198
Functiontest_a_download_path_is_exposed_on_the_async_class_only_when_the_file_policy_answers_true
()
tests/lib/tools/toolsets/test_pipeline.py:1383
Functiontest_a_download_path_is_exposed_only_when_the_file_policy_answers_true
()
tests/lib/tools/toolsets/test_pipeline.py:230
Functiontest_a_download_path_outside_the_download_dir_is_hidden_without_touching_the_filesystem
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/toolsets/test_security.py:157
Functiontest_a_driver_error_reaches_the_model_as_text_and_a_refusal_is_relayed
()
tests/lib/tools/toolsets/test_computer_pipeline.py:224
Functiontest_a_driver_exception_reads_as_its_type_and_message
(raised: Exception, expected: str)
tests/lib/tools/toolsets/test_computer_pipeline.py:291
Functiontest_a_drivers_error_text_reaches_the_model_as_written_and_cut_to_the_field_limit
()
tests/lib/tools/toolsets/test_enforcement.py:372
Functiontest_a_duration_is_not_bounded_by_the_sdk
()
tests/lib/tools/toolsets/test_pipeline.py:153
Methodtest_a_failed_fallback_request_replays_the_refusal_and_logs_an_error
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:477
Functiontest_a_failed_fetch_keeps_the_old_state_and_the_next_sync_retries
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:110
Functiontest_a_failed_local_removal_never_re_uploads_the_deleted_memory
The server deleted the memory; removing our copy fails. The baseline must stay put — dropping it would read the leftover file as a new local file
tests/lib/tools/memory_sync/test_memory_sync.py:593
Functiontest_a_failed_member_stops_the_rest_of_the_turns_members_but_not_function_tools_async
( async_client: AsyncAnthropic, respx_mock: MockRouter, async_navigate: BetaAsyncFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:557
Functiontest_a_failed_member_stops_the_rest_of_the_turns_members_but_not_function_tools_sync
( client: Anthropic, respx_mock: MockRouter, navigate: BetaFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:425
Functiontest_a_failed_pull_leaves_the_old_file_and_retries
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/memory_sync/test_memory_sync.py:568
Functiontest_a_failed_re_read_does_not_resurrect_a_server_deleted_memory
The re-read before removal can fail (a transient I/O error). That must mean "retry next sync", not "file gone": dropping the entry would make
tests/lib/tools/memory_sync/test_keep_only_copy.py:160
Methodtest_a_failed_request_for_a_malformed_id_has_the_id_and_the_path
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7385
Functiontest_a_failed_upload_keeps_the_local_edit_and_retries
(tmp_path: Path)
tests/lib/tools/memory_sync/test_memory_sync.py:546
Methodtest_a_failing_propagator_sends_the_request_without_a_trace_context
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:8033
Functiontest_a_failure_halts_the_later_computer_actions_of_the_turn_with_the_computer_wording
( respx_mock: MockRouter, client: Anthropic )
tests/lib/tools/toolsets/test_computer_runner.py:107
Methodtest_a_failure_to_record_attributes_does_not_fail_the_api_call
( self, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:1161
Methodtest_a_fallback_request_is_a_resend_and_keeps_the_first_url
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3543
Methodtest_a_fallback_request_that_raises_replays_the_refusal
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:537
Methodtest_a_field_given_as_omit_is_left_out
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1941
Functiontest_a_file_already_holding_the_remote_content_is_adopted_without_a_fetch
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:59
Functiontest_a_file_policy_hook_may_return_any_iterable
()
tests/lib/tools/toolsets/test_enforcement.py:265
Functiontest_a_file_policy_hook_may_return_any_iterable_on_the_async_class
()
tests/lib/tools/toolsets/test_enforcement.py:536
Functiontest_a_file_policy_that_fails_refuses_the_upload_and_the_call_is_still_observed
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:341
Functiontest_a_file_policy_that_fails_refuses_the_upload_on_the_async_class
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:500
Functiontest_a_file_that_reappears_is_not_deleted_and_leaves_pending
(tmp_path: Path, clock: Clock)
tests/lib/tools/memory_sync/test_delete_discipline.py:65
Functiontest_a_flush_cut_off_part_way_logs_how_many_files_it_had_not_uploaded
( tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_final_flush.py:128
Functiontest_a_folder_destroyed_mid_sync_sends_no_deletes
The directory scan saw an intact folder, then the folder vanished while the server listing was in flight: the re-check just before the delete
tests/lib/tools/memory_sync/test_delete_discipline.py:152
Functiontest_a_folder_wiped_after_a_lost_create_response_is_rebuilt_not_read_as_deletions
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:153
Functiontest_a_folder_wiped_again_mid_recovery_is_rebuilt_by_the_next_sync
A re-download writes the marker first and the memories after it; a second rm -rf between those writes must not leave memories on disk without
tests/lib/tools/memory_sync/test_folder_trust.py:331
Functiontest_a_folder_wiped_while_a_locally_deleted_memory_is_being_restored_is_rebuilt
A file deleted locally but changed on the server is restored by the next sync; an rm -rf that lands while that restore is downloading must lea
tests/lib/tools/memory_sync/test_folder_trust.py:300
Functiontest_a_folder_wiped_while_a_pull_is_in_flight_is_rebuilt_not_distrusted
rm -rf lands between a sync's scan and its content write: the write must not bring the folder back without its marker, or every later sync rea
tests/lib/tools/memory_sync/test_folder_trust.py:266
Functiontest_a_function_call_that_the_caller_defers_holds_no_other_call
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:233
Functiontest_a_function_tool_appended_to_the_list_in_place_is_sent_with_the_next_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:435
Functiontest_a_held_call_named_like_a_toolset_with_no_toolset_name_holds_that_toolsets_later_calls
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:335
Functiontest_a_held_change_and_a_replayed_one_give_way_to_the_newest_for_that_download
()
tests/lib/tools/toolsets/test_pipeline.py:698
Methodtest_a_history_seam_without_a_state_does_not_pin
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1218
Functiontest_a_hook_refusal_is_cut_to_the_field_limit_and_stays_the_cause
()
tests/lib/tools/toolsets/test_refusals.py:135
Methodtest_a_hop_http_error_surfaces_to_the_app
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:530
Methodtest_a_hop_whose_request_raises_is_skipped_and_the_unredeemed_token_carries
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:937
Functiontest_a_key_the_schema_does_not_declare_reaches_the_driver_and_confirm
( flavour: type[FakeBrowser] | type[AsyncFakeBrowser], )
tests/lib/tools/toolsets/test_pipeline.py:354
Functiontest_a_legal_mount_path_is_honored_and_an_unclean_one_is_refused
mount_path is the location the agent's system prompt names. A clean absolute one is honored verbatim, and dispose removes it when the download
tests/lib/tools/memory_sync/test_memory_sync.py:351
Functiontest_a_line_that_folds_to_nothing_renders_as_the_acknowledgment_alone
()
tests/lib/tools/toolsets/test_computer_pipeline.py:123
Functiontest_a_line_that_folds_to_nothing_renders_as_the_acknowledgment_alone_on_the_async_class
()
tests/lib/tools/toolsets/test_computer_pipeline.py:132
Methodtest_a_list_already_on_the_delta_is_kept
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1154
Functiontest_a_local_deletion_is_confirmed_before_it_reaches_the_server
(tmp_path: Path, clock: Clock)
tests/lib/tools/memory_sync/test_delete_discipline.py:43
Functiontest_a_lone_surrogate_in_error_text_becomes_the_replacement_character
()
tests/lib/tools/toolsets/test_runnable.py:119
Functiontest_a_long_reported_tab_url_is_cut_to_the_field_limit_and_its_controls_folded
()
tests/lib/tools/toolsets/test_enforcement.py:207
Functiontest_a_look_alike_sibling_of_an_upload_root_is_refused_under_windows_path_rules
( root: str, candidate: str, strict_roots: bool )
tests/lib/tools/toolsets/test_security.py:266
Functiontest_a_malformed_report_is_a_contract_error_on_the_async_class_too
()
tests/lib/tools/toolsets/test_pipeline.py:574
Functiontest_a_marker_from_an_older_format_no_longer_clears_the_folder
The marker carries a format version so an SDK upgrade can retire every folder written before it: a marker in the old format (the bare store id)
tests/lib/tools/memory_sync/test_folder_trust.py:244
Methodtest_a_max_content_bytes_option_below_1_is_the_default
(self, given: int, resolved: int, sync: bool)
tests/test_open_telemetry.py:4050
Methodtest_a_max_content_bytes_variable_is_decimal_digits_with_or_without_whitespace_around_them
( self, value: str, sync: bool )
tests/test_open_telemetry.py:4038
Methodtest_a_max_content_bytes_variable_that_is_not_valid_is_ignored
( self, value: str, sync: bool, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4020
Functiontest_a_member_without_fields_takes_an_empty_object
()
tests/lib/tools/toolsets/test_pipeline.py:507
Functiontest_a_memory_deleted_between_listing_and_fetch_waits_for_the_next_sync
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:129
Functiontest_a_memory_deleted_between_the_listing_and_the_update_is_re_created
An update that meets a 404 re-creates the memory in the same pass.
tests/lib/tools/memory_sync/test_keep_only_copy.py:107
Methodtest_a_name_that_only_starts_with_a_content_parameter_is_left_out
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3327
Functiontest_a_new_tab_result_carries_only_its_own_tab_opened_and_holds_a_popups_for_the_next_block
()
tests/lib/tools/toolsets/test_pipeline.py:720
Functiontest_a_new_tab_result_gets_a_tab_opened_when_the_driver_reported_none
()
tests/lib/tools/toolsets/test_pipeline.py:755
Functiontest_a_new_tab_result_that_is_not_a_tab_entry_still_renders_the_block
()
tests/lib/tools/toolsets/test_pipeline.py:588
Functiontest_a_new_tab_whose_tab_is_not_the_active_one_fails_and_its_tab_opened_waits_for_the_next_block
()
tests/lib/tools/toolsets/test_pipeline.py:764
Methodtest_a_non_refusal_stream_is_passed_through_untouched
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:600
Functiontest_a_null_configs_entry_leaves_the_member_at_its_defaults_and_goes_to_the_api_as_given
()
tests/lib/tools/toolsets/test_interface.py:149
Functiontest_a_null_configs_entry_leaves_the_member_at_its_defaults_and_goes_to_the_api_as_given
()
tests/lib/tools/toolsets/test_computer_interface.py:121
Methodtest_a_one_turn_system_on_a_first_turn_that_goes_without_a_thread_is_for_that_turn_only
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:2204
Methodtest_a_one_turn_system_on_a_first_turn_that_goes_without_a_thread_is_for_that_turn_only
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:715
Methodtest_a_one_turn_system_or_tools_on_a_first_turn_that_fails_does_not_stay_with_the_thread
( self, respx_mock: MockRouter, method: str, override: dict[str, Any] )
tests/lib/threads/test_beta_threads.py:2134
Methodtest_a_one_turn_system_or_tools_on_a_first_turn_that_fails_does_not_stay_with_the_thread
( self, respx_mock: MockRouter, method: str, override: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:645
Methodtest_a_one_turn_system_or_tools_on_a_first_turn_whose_stream_ends_early_does_not_stay_with_the_thread
( self, respx_mock: MockRouter, next_turn: list[BetaMessageParam], override: dict[str, Any] )
tests/lib/threads/test_beta_threads.py:2154
Methodtest_a_one_turn_system_or_tools_on_a_first_turn_whose_stream_ends_early_does_not_stay_with_the_thread
( self, respx_mock: MockRouter, next_turn: list[BetaMessageParam], override: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:665
Methodtest_a_one_turn_system_or_tools_on_the_turn_that_creates_the_thread_stays_with_the_thread
( self, respx_mock: MockRouter, method: str, override: dict[str, Any], kept: dict[str, Any] )
tests/lib/threads/test_beta_threads.py:2119
Methodtest_a_one_turn_system_or_tools_on_the_turn_that_creates_the_thread_stays_with_the_thread
( self, respx_mock: MockRouter, method: str, override: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:630
Methodtest_a_one_turn_system_override_is_refused_and_takes_the_turn_back
( self, respx_mock: MockRouter, method: str )
tests/lib/threads/test_beta_threads.py:2219
Methodtest_a_one_turn_system_override_is_refused_and_takes_the_turn_back
( self, respx_mock: MockRouter, method: str )
tests/lib/threads/test_async_beta_threads.py:607
Methodtest_a_parameter_is_content_only_on_the_endpoints_where_its_value_is
( self, call: ScopedContentCall, content_mode: str, sync: bool, spans: Spans, respx_mock: MockRouter
tests/test_open_telemetry.py:3272
Methodtest_a_partial_of_only_thinking_falls_back_to_the_same_body_form
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1582
Methodtest_a_partial_reply_keeps_finished_blocks_and_drops_an_unfinished_tool_call
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:1794
Functiontest_a_path_under_an_upload_root_is_granted_under_windows_path_rules
(candidate: str)
tests/lib/tools/toolsets/test_security.py:278
Methodtest_a_pinned_continuation_seams_from_the_pinned_model
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:285
Methodtest_a_pinned_state_starts_on_the_pinned_entry_and_chains_past_it
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:677
Functiontest_a_plain_execute_override_on_the_async_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_computer_pipeline.py:439
Functiontest_a_plain_execute_override_on_the_async_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_pipeline.py:1001
Functiontest_a_policy_that_raises_something_else_refuses_with_the_sdks_text_and_logs
( caplog: pytest.LogCaptureFixture, )
tests/lib/tools/toolsets/test_enforcement.py:107
Functiontest_a_policy_that_raises_something_else_refuses_with_the_sdks_text_and_logs_on_the_async_class
( caplog: pytest.LogCaptureFixture, )
tests/lib/tools/toolsets/test_enforcement.py:471
Functiontest_a_predicate_shaped_or_async_policy_on_the_sync_class_is_a_contract_error
()
tests/lib/tools/toolsets/test_enforcement.py:127
Methodtest_a_propagator_that_is_not_installed_fails_neither_the_import_nor_a_call
In a subprocess, because `opentelemetry.propagate` reads `OTEL_PROPAGATORS` once, when it is imported.
tests/test_open_telemetry.py:8050
Functiontest_a_pure_action_may_return_one_line_the_model_reads_after_the_acknowledgment
()
tests/lib/tools/toolsets/test_pipeline.py:117
Functiontest_a_pure_action_renders_its_acknowledgment_then_the_line_it_returned
()
tests/lib/tools/toolsets/test_computer_pipeline.py:88
Methodtest_a_query_that_is_content_needs_content_mode_and_so_does_the_full_url
( self, call: ContentQueryCall, content_mode: str, sync: bool, spans: Spans, respx_mock: MockRouter
tests/test_open_telemetry.py:3207
Methodtest_a_query_that_is_no_content_is_there_in_both_modes
( self, content_mode: str, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3308
Functiontest_a_raised_exception_reads_as_its_type_and_message_only
()
tests/lib/tools/toolsets/test_enforcement.py:393
Functiontest_a_raised_exception_reads_the_same_on_the_function_tool_and_toolset_paths
(exc: Exception, text: str)
tests/lib/tools/toolsets/test_runnable.py:151
Functiontest_a_raw_definition_is_sent_as_given_and_never_run
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:2007
Methodtest_a_raw_response_that_was_retried_has_the_resend_count
( self, sync: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:3611
Functiontest_a_read_only_pull_over_a_local_edit_is_warned
Read-only stores always take the server version, but overwriting a local edit must leave a trace instead of happening silently.
tests/lib/tools/memory_sync/test_keep_only_copy.py:144
← previousnext →5,001–5,100 of 12,274, ranked by callers