MCPcopy Create free account

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

Functions14,068 in github.com/anthropics/anthropic-sdk-python

Methodtest_streaming_runner_keeps_messages_appended_after_a_mid_loop_rewrite
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:551
Methodtest_streaming_runner_set_messages_params_adds_ahead_of_the_in_flight_reply
( self, respx_mock: MockRouter )
tests/lib/threads/test_thread_tool_runner.py:141
Methodtest_streaming_runner_set_messages_params_replaces_the_history_mid_loop
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:1241
Methodtest_streaming_runner_whose_stream_fails_leaves_the_thread_free
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:470
Methodtest_streaming_runner_whose_stream_fails_leaves_the_thread_free
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:1280
Functiontest_streams_without_a_stream_class
(client_class: ClientClass)
tests/lib/test_client_copy.py:458
Functiontest_strict_validation_unknown_fields
()
tests/test_models.py:175
Functiontest_string_not_allowed
()
tests/test_files.py:101
Functiontest_string_schema_with_format_and_default
()
tests/lib/_parse/test_transform.py:251
Functiontest_string_schema_without_format
()
tests/lib/_parse/test_transform.py:272
Functiontest_strip_top
()
tests/lib/tools/test_skills.py:158
Methodtest_strips_connection_header
Connection header must not be signed (may be stripped by proxies).
tests/lib/test_aws_auth.py:505
Functiontest_strips_inherited_authorization_from_parent_default_headers
If the parent client was configured with a custom `default_headers={"Authorization": ...}` (or `X-Api-Key`), those would otherwise win over th
tests/lib/test_scoped_client.py:88
Functiontest_strips_omit_and_not_given
(send: Send)
tests/test_prepare.py:215
Functiontest_subagents_call_does_not_run_when_an_outdated_session_idle_lists_it_after_an_interrupt
()
tests/lib/tools/test_session_runner.py:692
Functiontest_subagents_call_runs_when_an_idle_lists_it_after_an_early_end_of_the_turn
(then: list[Step])
tests/lib/tools/test_session_runner.py:684
Functiontest_subagents_call_runs_when_its_thread_lists_it_again
(at: float)
tests/lib/tools/test_session_runner.py:666
Functiontest_subagents_calls_run_after_an_interrupt_that_names_the_primary_thread
(at: float)
tests/lib/tools/test_session_runner.py:657
Functiontest_symlink_escape_after_dangling_symlink_is_rejected
( tmp_path: Path, make_tool: Any, tool_input: dict[str, str] )
tests/lib/tools/test_agent_toolset.py:1789
Methodtest_symlink_validation_reject_creating_files_through_symlink_pointing_outside
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:672
Methodtest_symlink_validation_reject_creating_files_through_symlink_pointing_outside
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1346
Methodtest_symlink_validation_reject_parent_directory_that_is_symlink_pointing_outside
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:688
Methodtest_symlink_validation_reject_parent_directory_that_is_symlink_pointing_outside
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1363
Methodtest_symlink_validation_reject_symlink_pointing_outside_memories
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:630
Methodtest_symlink_validation_reject_symlink_pointing_outside_memories
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1303
Methodtest_sync_callable_object_handles_requests
(self, respx_mock: MockRouter)
tests/test_middleware.py:585
Methodtest_sync_callable_returning_a_coroutine_is_rejected
The coroutine is closed, so nothing warns that it was never awaited.
tests/lib/test_credentials.py:1622
Methodtest_sync_callable_returning_a_coroutine_is_rejected
`lambda: fetch()` is a sync provider that hands back a coroutine. It fails before any request is sent.
tests/lib/test_credentials.py:4102
Methodtest_sync_client_accepts_a_provider_that_only_has_aclose
As on the sync client before async providers existed: `aclose()` is not its hook, so it is left alone.
tests/lib/test_credentials.py:4485
Methodtest_sync_client_accepts_sync_callable_object
(self)
tests/test_middleware.py:579
Methodtest_sync_client_calls_close_and_ignores_aclose
(self, in_a_partial: bool)
tests/lib/test_credentials.py:4471
Methodtest_sync_client_rejects_an_async_close
(self, in_a_partial: bool)
tests/lib/test_credentials.py:4461
Methodtest_sync_client_rejects_async_callable_object
(self)
tests/test_middleware.py:550
Methodtest_sync_client_rejects_async_handle_override
(self)
tests/test_middleware.py:608
Methodtest_sync_client_rejects_non_callable
(self)
tests/test_middleware.py:600
Methodtest_sync_context_manager_tool
(self)
tests/lib/tools/test_functions.py:459
Functiontest_sync_intervals_below_the_floor_are_rejected
(tmp_path: Path)
tests/lib/tools/memory_sync/test_memory_sync.py:718
Functiontest_sync_is_interrupted_when_serving_ends
(notes: Path, steps: list[Step], stopped_at: float)
tests/lib/tools/memory_sync/test_e2e_memory.py:469
Functiontest_sync_matrix
( tmp_path: Path, clock: Clock, name: str, local: Any, remote: Any, disk: Any, sto
tests/lib/tools/memory_sync/test_memory_sync.py:486
Methodtest_sync_provider_runs_off_the_event_loop_thread
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:4091
Methodtest_sync_providers_are_not_detected_as_async
(self, shape: Callable[..., Any])
tests/lib/test_credentials.py:4076
Functiontest_sync_token_provider_on_async_client_runs_off_event_loop
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_google_cloud.py:452
Functiontest_sync_tool_delays_the_stop_before_the_token_expires_by_at_most_150_seconds
( seconds: float, sent: str, at: float )
tests/lib/environments/test_worker.py:431
Functiontest_sync_tool_runner_rejects_an_async_toolset
(client: Anthropic)
tests/lib/tools/toolsets/test_runner.py:746
Functiontest_sync_tool_runs_off_the_event_loop
(backend: str)
tests/lib/tools/test_session_runner.py:1076
Functiontest_sync_tool_takes_a_thread_of_the_default_limiter_only_when_calls_run_one_at_a_time
( limit: int | None, borrowed: str )
tests/lib/tools/test_session_runner.py:278
Functiontest_sync_tools_do_not_wait_for_the_default_thread_limiter
()
tests/lib/tools/test_session_runner.py:262
Methodtest_system_instructions_are_removed_first
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6615
Methodtest_system_instructions_go_before_the_input_and_the_output
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6638
Methodtest_system_instructions_lose_parts_from_their_start
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6660
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:2067
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:401
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:361
Functiontest_tar_preserves_executable_bit
(tmp_path: Path)
tests/lib/tools/test_skills.py:241
Functiontest_tar_special_members_are_skipped
(tmp_path: Path)
tests/lib/tools/test_skills.py:285
Functiontest_tar_top_level_special_does_not_defeat_wrapper_stripping
(tmp_path: Path)
tests/lib/tools/test_skills.py:350
Functiontest_target_is_the_call_that_an_input_is_about
(event: Event, id: str)
tests/lib/tools/test_fake_sessions_api.py:328
Functiontest_text_completions_path_is_not_rewritten
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:927
Functiontest_text_completions_path_is_not_rewritten_async
(respx_mock: MockRouter)
tests/lib/test_bedrock.py:939
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:650
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
Methodtest_text_stream
(self, beta: bool, client: Anthropic, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:545
Methodtest_text_stream
(self, beta: bool, async_client: AsyncAnthropic, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:876
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:1371
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:4396
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:7978
Methodtest_the_call_returns_its_result_from_one_request
( self, sync: bool, failure: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7965
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:1895
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:1005
Methodtest_the_first_turn_sends_the_cache_markers_of_the_seed_as_given
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:921
Methodtest_the_former_name_of_the_content_mode_variable_is_not_read
( self, registered: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5628
Functiontest_the_gate_runs_before_an_execute_override
()
tests/lib/tools/toolsets/test_computer_pipeline.py:374
← previousnext →12,501–12,600 of 14,068, ranked by callers