MCPcopy Create free account

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

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

Methodtest_rejected_previous_message_id_replays_the_full_history_under_a_new_thread
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:167
Methodtest_rejects_both_output_format_and_config
(self, async_client: AsyncAnthropic)
tests/lib/_parse/test_beta_messages.py:105
Functiontest_remove_tools_refuses_a_toolset_and_queues_nothing
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, removed: str )
tests/lib/tools/toolsets/test_browser_runner.py:212
Functiontest_remove_tools_removes_a_function_tool_named_like_a_member
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:312
Functiontest_remove_tools_stops_a_call_already_in_the_turn
( sync: bool, remove_by: str, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1775
Functiontest_remove_tools_with_a_member_name_removes_only_the_function_tool_of_that_name
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_browser_runner.py:338
Functiontest_removes_files_from_input
()
tests/test_extract_files.py:11
Methodtest_rename
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:480
Methodtest_rename
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:1118
Methodtest_rename_error_when_destination_exists
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:522
Methodtest_rename_error_when_destination_exists
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1160
Methodtest_rename_error_when_source_not_found
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:512
Methodtest_rename_error_when_source_not_found
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1150
Methodtest_rename_not_allow_renaming_memories_directory
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool, old_path: str )
tests/lib/tools/memory_tools/test_filesystem.py:541
Methodtest_rename_not_allow_renaming_memories_directory
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool, old_path: str )
tests/lib/tools/memory_tools/test_filesystem.py:1179
Methodtest_rename_to_nested_path
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:497
Methodtest_rename_to_nested_path
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:1135
Functiontest_repeated_events_neither_run_a_resolved_call_nor_change_the_status
()
tests/lib/tools/test_session_runner.py:1606
Methodtest_replay_after_a_continue_sends_system_and_tools_again
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:152
Functiontest_reported_names
(tmp_path: Path, baseline: dict[str, str], tip: dict[str, str], reported: list[str])
tests/test_detect_breaking_changes.py:187
Functiontest_repr
()
tests/test_models.py:198
Functiontest_repr_nested_model
()
tests/test_models.py:204
Methodtest_request_attributes_are_on_the_span_from_its_start
(self, respx_mock: MockRouter)
tests/test_open_telemetry.py:2621
Methodtest_request_body_that_cannot_be_prepared_has_no_span
(self, spans: Spans, tmp_path: pathlib.Path)
tests/test_open_telemetry.py:1007
Methodtest_request_data_prepared_before_prepare_options
( self, respx_mock: MockRouter, client: Anthropic, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
tests/test_client.py:820
Methodtest_request_data_prepared_before_prepare_options
( self, respx_mock: MockRouter, async_client: AsyncAnthropic, tmp_path: Path, monkeypatch: pytest.Monk
tests/test_client.py:2572
Methodtest_request_does_not_modify_the_options_it_is_given
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:862
Methodtest_request_does_not_modify_the_options_it_is_given
( self, respx_mock: MockRouter, async_client: AsyncAnthropic )
tests/test_client.py:2614
Methodtest_request_extra_headers
(self, client: Anthropic)
tests/test_client.py:886
Methodtest_request_extra_headers
(self, client: Anthropic)
tests/test_client.py:2640
Methodtest_request_extra_headers_httpx_headers
(self, client: Anthropic)
tests/test_client.py:908
Methodtest_request_extra_headers_httpx_headers
(self, async_client: AsyncAnthropic)
tests/test_client.py:2662
Methodtest_request_extra_json
(self, client: Anthropic)
tests/test_client.py:759
Methodtest_request_extra_json
(self, client: Anthropic)
tests/test_client.py:2511
Methodtest_request_extra_json_merged_before_prepare_options
(self, respx_mock: MockRouter)
tests/test_client.py:794
Methodtest_request_extra_json_merged_before_prepare_options
(self, respx_mock: MockRouter)
tests/test_client.py:2546
Methodtest_request_extra_query
(self, client: Anthropic)
tests/test_client.py:990
Methodtest_request_extra_query
(self, client: Anthropic)
tests/test_client.py:2744
Methodtest_request_id_surfaced_on_error
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1337
Functiontest_request_is_retried_as_the_client_is_configured_to
(kind: str, retry_counts: list[str])
tests/lib/tools/test_session_runner.py:1399
Methodtest_request_modifications_do_not_persist_across_attempts
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_middleware.py:1070
Methodtest_request_mutation_changes_outgoing_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:716
Methodtest_request_mutation_changes_outgoing_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:1591
Methodtest_request_query_spaces
(self, client: Anthropic)
tests/test_client.py:1031
Methodtest_request_query_spaces
(self, client: Anthropic)
tests/test_client.py:2785
Methodtest_request_that_sends_a_tools_result_follows_the_clients_other_options
( self, propagation: bool, environment_key: str | None, spans: Spans )
tests/lib/tools/test_open_telemetry.py:2318
Methodtest_request_that_sends_a_tools_result_has_the_environment_keys_credentials_alone
( self, spans: Spans, thread: str, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:2329
Methodtest_request_timeout
(self, client: Anthropic)
tests/test_client.py:408
Methodtest_request_timeout
(self, async_client: AsyncAnthropic)
tests/test_client.py:2152
Functiontest_request_whose_response_is_not_json_is_repeated
(kind: str, applied: bool, body: str)
tests/lib/environments/test_worker.py:163
Methodtest_request_x_stainless_helper_header_appends
(self, client: Anthropic)
tests/test_client.py:921
Methodtest_request_x_stainless_helper_header_appends
(self, async_client: AsyncAnthropic)
tests/test_client.py:2675
Methodtest_request_x_stainless_helper_header_collapses_case_variants
(self, client: Anthropic)
tests/test_client.py:944
Methodtest_request_x_stainless_helper_header_collapses_case_variants
(self, async_client: AsyncAnthropic)
tests/test_client.py:2698
Methodtest_request_x_stainless_helper_header_dedupes
(self, client: Anthropic)
tests/test_client.py:933
Methodtest_request_x_stainless_helper_header_dedupes
(self, async_client: AsyncAnthropic)
tests/test_client.py:2687
Methodtest_request_x_stainless_helper_header_dedupes_multi_value
(self, client: Anthropic)
tests/test_client.py:959
Methodtest_request_x_stainless_helper_header_dedupes_multi_value
(self, async_client: AsyncAnthropic)
tests/test_client.py:2713
Methodtest_requests
(self, sync: bool, respx_mock: MockRouter)
tests/lib/test_azure.py:358
Methodtest_requests_carry_the_trace_context_by_default
( self, provider: str, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4149
Functiontest_requests_for_an_item_are_in_its_span
(request_kind: str)
tests/lib/environments/test_worker.py:1018
Functiontest_requests_for_an_item_are_in_its_span_and_polls_are_not
(sync: bool, request_kind: str)
tests/lib/environments/test_poller.py:342
Methodtest_rereads_on_each_call
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:229
Functiontest_resolvable_profile_cannot_leak
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch, profile_config_dir: pathlib.Path )
tests/lib/test_google_cloud.py:1254
Functiontest_resolvable_profile_cannot_leak_async
( respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch, profile_config_dir: pathlib.Path )
tests/lib/test_google_cloud.py:1280
Functiontest_resolve_path
(tmp_path: Path, description: str, p: str, expect_error: bool)
tests/lib/tools/test_agent_toolset.py:56
Functiontest_resolve_path_absolute_inside_workdir
An absolute path that canonicalises inside the workdir is permitted in confined mode — the containment check is what guards the jail, not the
tests/lib/tools/test_agent_toolset.py:71
Functiontest_resolve_path_allowed_roots
A path inside an allowed root resolves; one outside the workdir and every allowed root is refused, and the refusal names no internal options.
tests/lib/tools/test_agent_toolset.py:151
Functiontest_resolve_path_dotdot_is_lexical_before_symlinks
`a/../b` never touches `a`, so a cycle at `a` cannot carry `b` past the containment check on any interpreter.
tests/lib/tools/test_agent_toolset.py:127
Functiontest_resolve_path_rejects_symlink_escape_live_and_dangling
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:142
Functiontest_resolve_path_rejects_symlink_loop
(tmp_path: Path, p: str)
tests/lib/tools/test_agent_toolset.py:116
Functiontest_resolve_path_segment_aware_sibling
A sibling directory sharing a prefix (workdir vs workdir2) must not satisfy the jail.
tests/lib/tools/test_agent_toolset.py:182
Functiontest_resolve_path_symlink_out_of_allowed_root_is_rejected
Symlinks are canonicalised before the containment check, so a link inside an allowed root cannot reach outside it.
tests/lib/tools/test_agent_toolset.py:167
Methodtest_resource_link_unsupported
(self)
tests/lib/tools/test_mcp_tool.py:142
Functiontest_response_basemodel_request_id
(client: Anthropic)
tests/test_response.py:159
Functiontest_response_parse_annotated_type
(client: Anthropic)
tests/test_response.py:202
Functiontest_response_parse_bool
(client: Anthropic, content: str, expected: bool)
tests/test_response.py:247
Functiontest_response_parse_custom_model
(client: Anthropic)
tests/test_response.py:128
Functiontest_response_parse_custom_stream
(client: Anthropic)
tests/test_response.py:94
Functiontest_response_parse_expect_model_union_non_json_content
(client: Anthropic)
tests/test_response.py:291
Functiontest_response_parse_json_content_type_case_insensitive
(client: Anthropic)
tests/test_response.py:354
Functiontest_response_parse_mismatched_basemodel
(client: Anthropic)
tests/test_response.py:59
Functiontest_response_parse_pep604_union
(client: Anthropic)
tests/test_response.py:323
Methodtest_response_wrapper_cast_to_is_returned_unparsed
(self, respx_mock: MockRouter)
tests/test_middleware.py:1260
Methodtest_response_wrapper_cast_to_is_returned_unparsed
(self, respx_mock: MockRouter)
tests/test_middleware.py:1900
Functiontest_restart_replaces_only_the_shell_of_the_calls_thread
(shell: list[Any])
tests/lib/tools/test_session_runner.py:383
Functiontest_result_block_list_types_all_keep_their_fields_or_only_their_type
( blocks: tuple[Any, ...], keep_their_fields: set[str] )
tests/test_open_telemetry.py:8462
Functiontest_result_is_kept_only_for_a_call_that_is_unresolved_and_allowed
( steps: list[Step], fields: Event, status: int, pending: list[str], session: FakeSession, http: httpx2.As
tests/lib/tools/test_fake_sessions_api.py:258
Functiontest_result_kinds_and_confirmation_texts
()
tests/lib/tools/toolsets/test_computer_registry.py:63
Functiontest_result_kinds_confirmations_and_default_flags_match_the_published_toolset
()
tests/lib/tools/toolsets/test_registry.py:48
Functiontest_result_of_a_call_whose_thread_terminated_is_not_posted
()
tests/lib/tools/test_session_runner.py:1162
Functiontest_result_of_a_sync_tool_that_returns_after_the_lease_was_lost_is_not_sent
(backend: str)
tests/lib/environments/test_worker.py:400
Methodtest_results_of_two_threads_are_each_sent_in_their_own_conversation
( self, spans: Spans, environment_key: str | None )
tests/lib/tools/test_open_telemetry.py:2305
Methodtest_resume_stream_that_ends_before_any_content_keeps_the_paused_reply_resumable
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:360
Methodtest_resume_stream_that_ends_mid_text_keeps_the_paused_reply_resumable
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1777
Methodtest_resume_that_finds_the_thread_gone_replays_the_history_ending_in_the_paused_reply
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:380
Functiontest_resumed_thread_is_refused_until_it_restarts_its_shell
(shell: list[Any], tmp_path: Path)
tests/lib/tools/test_session_runner.py:351
Functiontest_resumed_thread_keeps_its_shell_between_calls
(shell: list[Any])
tests/lib/tools/test_session_runner.py:327
Methodtest_resuming_after_a_break_continues_the_span
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:938
Methodtest_resuming_after_an_async_break_continues_the_span
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1129
← previousnext →11,101–11,200 of 14,068, ranked by callers