MCPcopy Create free account

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

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

Functiontest_sync_tool_runs_off_the_event_loop
A sync tool runs on a worker thread: the event loop keeps running while its body blocks.
tests/lib/tools/test_session_runner.py:1910
Methodtest_system_instructions_are_removed_first
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6613
Methodtest_system_instructions_go_before_the_input_and_the_output
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6636
Methodtest_system_instructions_lose_parts_from_their_start
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6658
Methodtest_system_or_a_tool_edited_in_place_is_refused_and_a_thread_from_the_params_takes_the_edit
( self, respx_mock: MockRouter, field: str, edit: InPlaceEdit )
tests/lib/threads/test_beta_threads.py:2066
Methodtest_system_or_a_tool_edited_in_place_is_refused_and_a_thread_from_the_params_takes_the_edit
( self, respx_mock: MockRouter, field: str, edit: InPlaceEdit )
tests/lib/threads/test_async_beta_threads.py:924
Functiontest_tab_members_render_the_browser_state_block_alone
()
tests/lib/tools/toolsets/test_pipeline.py:184
Methodtest_tags_the_original_and_fallback_requests
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:698
Functiontest_tar_path_screen_applies_to_skipped_members
A member that would be skipped for its type is still subject to the path-traversal screen, so the archive is refused as a whole.
tests/lib/tools/test_skills.py:398
Functiontest_tar_pax_global_header_is_not_extracted
`git archive` tarballs start with a PAX global header; it is metadata, not a member, and must neither appear on disk nor stop wrapper stripping.
tests/lib/tools/test_skills.py:358
Functiontest_tar_preserves_executable_bit
(tmp_path: Path)
tests/lib/tools/test_skills.py:238
Functiontest_tar_special_members_are_skipped
(tmp_path: Path)
tests/lib/tools/test_skills.py:282
Functiontest_tar_top_level_special_does_not_defeat_wrapper_stripping
(tmp_path: Path)
tests/lib/tools/test_skills.py:347
Functiontest_terminated_event_ends_iteration
()
tests/lib/tools/test_session_runner.py:1316
Functiontest_termination_on_live_stream_after_failed_history_read_cancels_idle_countdown
After a failed history read, the countdown may come from an idle that the session has left. A termination on the live stream cancels it, running o
tests/lib/tools/test_session_runner.py:1608
Functiontest_text_completions_path_is_not_rewritten
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:926
Functiontest_text_completions_path_is_not_rewritten_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:938
Methodtest_text_content
(self)
tests/lib/tools/test_mcp_tool.py:77
Methodtest_text_content_with_cache_control
(self)
tests/lib/tools/test_mcp_tool.py:82
Functiontest_text_io_is_utf8_under_ascii_locale
Text I/O is explicitly UTF-8: an ASCII-locale host (LANG=C) must not mislabel valid UTF-8 as binary. Runs in a subprocess because the locale d
tests/lib/tools/test_agent_toolset.py:592
Functiontest_text_members_render_verbatim_and_empty_text_gets_a_placeholder
()
tests/lib/tools/toolsets/test_pipeline.py:173
Functiontest_text_mode_files_elsewhere_are_rejected
( send: Send, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch )
tests/test_prepare.py:616
Methodtest_text_resource
(self)
tests/lib/tools/test_mcp_tool.py:215
Methodtest_text_resource
(self)
tests/lib/tools/test_mcp_tool.py:264
Functiontest_the_abstract_classes_declare_every_member_and_the_constructor_options
()
tests/lib/tools/toolsets/test_surface.py:103
Functiontest_the_abstract_classes_declare_every_member_and_the_constructor_options
()
tests/lib/tools/toolsets/test_computer_surface.py:68
Methodtest_the_applications_code_between_items_keeps_its_own_context
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1361
Methodtest_the_applications_conversation_id_goes_before_a_session_threads
( self, call: ThreadCall, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4395
Functiontest_the_async_class_cuts_a_refusal_raised_before_the_call
()
tests/lib/tools/toolsets/test_computer_pipeline.py:386
Functiontest_the_async_class_enforces_upload_roots_too
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:461
Functiontest_the_async_class_names_its_confirm_refusals_the_same_way
()
tests/lib/tools/toolsets/test_refusals.py:211
Functiontest_the_async_class_names_its_refusals_the_same_way
()
tests/lib/tools/toolsets/test_refusals.py:192
Functiontest_the_async_class_names_its_upload_refusals_the_same_way
(tmp_path: Path)
tests/lib/tools/toolsets/test_refusals.py:233
Functiontest_the_async_class_renders_and_refuses_the_same_way
()
tests/lib/tools/toolsets/test_computer_pipeline.py:450
Functiontest_the_async_class_takes_a_plain_or_a_coroutine_policy_and_calls_it_the_same_way
()
tests/lib/tools/toolsets/test_enforcement.py:420
Functiontest_the_async_class_with_the_keyboard_off_runs_its_calls_with_no_confirm
()
tests/lib/tools/toolsets/test_computer_pipeline.py:419
Functiontest_the_async_gate_runs_before_an_execute_override
()
tests/lib/tools/toolsets/test_confirm.py:299
Functiontest_the_async_url_policy_runs_before_confirm
()
tests/lib/tools/toolsets/test_confirm.py:313
Methodtest_the_betas_option_replaces_the_default
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:648
Methodtest_the_betas_option_replaces_the_default_on_every_request
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:364
Methodtest_the_call_raises_the_error_of_the_api_after_its_retries
( self, sync: bool, failure: str, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatc
tests/test_open_telemetry.py:7976
Methodtest_the_call_returns_its_result_from_one_request
( self, sync: bool, failure: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7963
Functiontest_the_callers_configs_pass_through_untouched_and_are_copied
()
tests/lib/tools/toolsets/test_interface.py:101
Functiontest_the_callers_configs_pass_through_untouched_and_are_copied
()
tests/lib/tools/toolsets/test_computer_interface.py:78
Methodtest_the_constructor_takes_the_arguments_of_thread
( self, make_client: Callable[[], Anthropic | AsyncAnthropic] )
tests/lib/threads/test_beta_threads.py:1894
Functiontest_the_developer_error_class_propagates_out_of_call
()
tests/lib/tools/toolsets/test_pipeline.py:522
Functiontest_the_error_family_is_one_hierarchy
()
tests/lib/tools/toolsets/test_surface.py:54
Functiontest_the_error_family_is_one_hierarchy_shared_with_the_browser_toolset
()
tests/lib/tools/toolsets/test_computer_surface.py:53
Functiontest_the_final_sync_waives_the_window_but_still_re_checks
A deletion made in a session shorter than the waiting window still goes through: the final sync skips the wait, and the re-check just before t
tests/lib/tools/memory_sync/test_delete_discipline.py:138
Methodtest_the_first_turn_of_a_fork_drops_the_cache_markers_of_the_recorded_messages
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:1004
Methodtest_the_first_turn_sends_the_cache_markers_of_the_seed_as_given
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:920
Methodtest_the_former_name_of_the_content_mode_variable_is_not_read
( self, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5627
Functiontest_the_gate_runs_before_an_execute_override
()
tests/lib/tools/toolsets/test_computer_pipeline.py:374
Functiontest_the_gate_runs_before_an_execute_override
()
tests/lib/tools/toolsets/test_confirm.py:219
Functiontest_the_helper_header_names_the_toolset_the_runner_was_created_with_async
( async_client: AsyncAnthropic, respx_mock: MockRouter, async_navigate: BetaAsyncFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:834
Functiontest_the_helper_header_names_the_toolset_the_runner_was_created_with_sync
( client: Anthropic, respx_mock: MockRouter, navigate: BetaFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:816
Functiontest_the_hold_ends_with_the_reply
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:266
Functiontest_the_last_sync_runs_after_the_bash_subprocesses_are_killed
finish() skips the delete waiting window, so it must only run once nothing can still be rewriting files — after env teardown kills the session
tests/lib/tools/memory_sync/test_e2e_memory.py:517
Functiontest_the_lease_is_heartbeated_until_the_memory_teardown_is_done
The lease must not lapse while the final sync, flush and dispose still hold the folder.
tests/lib/tools/memory_sync/test_e2e_memory.py:553
Methodtest_the_list_is_forwarded_on_a_degraded_chains_replayed_refusal
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:1169
Functiontest_the_marker_never_syncs_in_either_direction
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/lib/tools/memory_sync/test_folder_trust.py:185
Functiontest_the_module_exports_only_the_browser_only_errors
()
tests/lib/tools/toolsets/test_surface.py:89
Methodtest_the_non_beta_messages_surface_passes_through
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:572
Functiontest_the_option_is_not_sent_to_the_api
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:219
Functiontest_the_option_needs_stream
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, stream: bool | None )
tests/lib/tools/test_runner_eager_tools.py:240
Methodtest_the_option_read_from_a_client_has_every_field_of_traces
( self, given: Any, traces: dict[str, Any], sync: bool )
tests/test_open_telemetry.py:4565
Methodtest_the_option_read_from_a_client_is_a_copy
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4521
Functiontest_the_option_read_from_a_client_type_checks_as_an_option_of_a_copy
The type checker checks these lines, which have no cast: what a client reads back spreads into an option.
tests/test_open_telemetry.py:3755
Methodtest_the_original_request_is_not_resent
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:928
Methodtest_the_original_request_is_not_resent
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:1027
Methodtest_the_original_request_is_not_resent
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1779
Methodtest_the_original_request_is_not_resent
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:2035
Methodtest_the_output_format_is_given_only_when_the_thread_is_created
( self, make_client: Callable[[], Anthropic | AsyncAnthropic], method: str, field: str )
tests/lib/threads/test_beta_threads.py:1921
Functiontest_the_per_pass_cap_spreads_deletes_over_passes
( tmp_path: Path, clock: Clock, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_delete_discipline.py:112
Functiontest_the_policy_is_called_once_per_navigate_with_the_url_as_written_before_the_driver_runs
()
tests/lib/tools/toolsets/test_enforcement.py:43
Functiontest_the_refusal_names_the_keyboard_members_still_enabled_and_says_how_to_go_on
()
tests/lib/tools/toolsets/test_computer_interface.py:265
Functiontest_the_refusals_are_exported_tool_errors
()
tests/lib/tools/toolsets/test_surface.py:72
Methodtest_the_retry_without_the_partial_does_not_go_back_to_fast
( self, respx_mock: MockRouter, statuses: List[int], hop_requests: List[tuple[str | None, bool]] )
tests/lib/test_refusal_fallback_streaming.py:1704
Methodtest_the_retry_without_the_partial_does_not_go_back_to_fast
( self, respx_mock: MockRouter, statuses: List[int], hop_requests: List[tuple[str | None, bool]] )
tests/lib/test_refusal_fallback_streaming.py:1956
Functiontest_the_runnable_toolset_bases_are_exported_next_to_the_runner
()
tests/lib/tools/toolsets/test_runnable.py:230
Methodtest_the_serving_start_opens_the_wire_with_the_primary_message_id
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1065
Functiontest_the_shutdown_flush_pushes_a_revert_made_after_a_lost_upload_response
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:174
Functiontest_the_shutdown_flush_pushes_an_edit_made_after_a_lost_upload_response
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:207
Functiontest_the_shutdown_flush_sends_nothing_for_a_revert_whose_upload_never_landed
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:190
Methodtest_the_stream_helper_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:278
Methodtest_the_stream_helper_gets_the_fallback
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1830
Methodtest_the_suppressed_starts_input_transformations_are_forwarded_on_the_terminal
( self, respx_mock: MockRouter )
tests/lib/test_refusal_fallback_streaming.py:1840
Methodtest_the_suppressed_starts_list_is_forwarded_on_the_terminal
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1146
Functiontest_the_toolset_path_stays_encodable_and_cuts_to_the_field_limit
()
tests/lib/tools/toolsets/test_runnable.py:156
Methodtest_the_turn_after_a_refused_one_drops_the_cache_markers_of_the_recorded_messages
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:1018
Functiontest_the_url_policy_runs_before_confirm
()
tests/lib/tools/toolsets/test_confirm.py:233
Methodtest_the_variable_sets_propagation_for_a_client_that_is_given_no_option
( self, variable: str, option: OpenTelemetryClientOption, propagates: bool,
tests/test_open_telemetry.py:4252
Methodtest_the_variables_are_read_under_their_traces_names_only
(self, sync: bool)
tests/test_open_telemetry.py:4060
Methodtest_the_variables_do_not_reach_a_client_that_is_given_false
(self, sync: bool)
tests/test_open_telemetry.py:3922
Methodtest_the_variables_do_not_reach_a_client_that_is_given_the_option
( self, option: dict[str, Any], sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3899
Methodtest_the_variables_do_not_reach_a_platform_client_that_is_given_the_option
(self, spans: Spans)
tests/test_open_telemetry.py:3935
Methodtest_thinking_is_a_reasoning_part_without_its_signature
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5507
Methodtest_third_party_provider_names
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2807
Methodtest_third_party_streams_and_token_counts_have_the_request_model
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2848
Methodtest_thread_params_types_hold_the_fields_of_create
(self)
tests/lib/threads/test_beta_threads.py:1990
← previousnext →11,401–11,500 of 12,824, ranked by callers