MCPcopy Create free account

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

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

Methodtest_raw_response_update
(self, client: Anthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:34
Methodtest_raw_response_update
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/workspaces/test_rate_limits.py:167
Methodtest_raw_response_upload
(self, client: Anthropic)
tests/api_resources/test_files.py:234
Methodtest_raw_response_upload
(self, async_client: AsyncAnthropic)
tests/api_resources/test_files.py:470
Methodtest_raw_response_upload
(self, client: Anthropic)
tests/api_resources/beta/test_files.py:261
Methodtest_raw_response_upload
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/test_files.py:526
Methodtest_raw_response_validate
(self, client: Anthropic)
tests/api_resources/beta/organization/test_external_keys.py:270
Methodtest_raw_response_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_external_keys.py:555
Methodtest_raw_response_validate
(self, client: Anthropic)
tests/api_resources/organization/test_external_keys.py:246
Methodtest_raw_response_validate
(self, async_client: AsyncAnthropic)
tests/api_resources/organization/test_external_keys.py:505
Methodtest_raw_response_validate_archive
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:190
Methodtest_raw_response_validate_archive
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:433
Methodtest_raw_response_validate_repository
(self, client: Anthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:234
Methodtest_raw_response_validate_repository
(self, async_client: AsyncAnthropic)
tests/api_resources/beta/organization/test_plugin_marketplaces.py:477
Methodtest_raw_response_whose_body_is_not_read_to_the_end_has_no_status
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1230
Methodtest_raw_response_whose_connection_is_lost_in_the_body
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1588
Methodtest_raw_response_whose_events_the_application_reads_itself
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1535
Functiontest_read_binary_custom_media_caps
The media caps are configurable: a small custom cap rejects, a larger/disabled one permits.
tests/lib/tools/test_agent_toolset.py:603
Functiontest_read_binary_honors_explicit_cap
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:585
Functiontest_read_binary_not_subject_to_text_cap
An image over the 256 KiB text default still reads (the API media caps govern).
tests/lib/tools/test_agent_toolset.py:574
Functiontest_read_binary_rejects_over_media_cap
An image whose base64 form would exceed the default per-image cap is rejected up front.
tests/lib/tools/test_agent_toolset.py:593
Functiontest_read_binary_rejects_view_range
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:625
Functiontest_read_binary_returns_content_block
Images/PDFs come back as base64 content blocks, not UnicodeDecodeError.
tests/lib/tools/test_agent_toolset.py:557
Functiontest_read_custom_max_bytes_rejects_below_cap
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:494
Functiontest_read_follows_symlink_chain_inside_workdir
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1827
Functiontest_read_of_the_session_ends_with_the_lease
()
tests/lib/environments/test_worker.py:589
Functiontest_read_of_the_session_is_repeated_until_the_lease_ends
(fault: Fault)
tests/lib/environments/test_worker.py:577
Functiontest_read_of_the_session_times_out_after_30_seconds
()
tests/lib/environments/test_worker.py:583
Functiontest_read_only_stores_are_never_written
(tmp_path: Path)
tests/lib/tools/memory_sync/test_memory_sync.py:125
Functiontest_read_oversized_file_view_range_wrong_arity_is_rejected
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:310
Functiontest_read_preserves_crlf_line_endings
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:258
Functiontest_read_preserves_lone_cr
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:267
Functiontest_read_refused_permanently_is_raised
(kind: str, requests: list[str], status: int)
tests/lib/tools/test_session_runner.py:1511
Functiontest_read_rejects_directory
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:384
Functiontest_read_rejects_directory_even_when_uncapped
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:511
Methodtest_read_rejects_file_replaced_with_symlink_before_open
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool, monkeypatch: pytest
tests/lib/tools/memory_tools/test_filesystem.py:594
Methodtest_read_rejects_file_replaced_with_symlink_before_open
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool, monkeypatch:
tests/lib/tools/memory_tools/test_filesystem.py:1263
Functiontest_read_rejects_oversized_file
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:300
Methodtest_read_rejects_symlink_created_after_validation
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool, monkeypatch: pytest
tests/lib/tools/memory_tools/test_filesystem.py:571
Methodtest_read_rejects_symlink_created_after_validation
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool, monkeypatch:
tests/lib/tools/memory_tools/test_filesystem.py:1240
Functiontest_read_resolves_dangling_symlink_from_its_real_directory
(tmp_path: Path, rest: str)
tests/lib/tools/test_agent_toolset.py:1818
Functiontest_read_symlink_loop_is_rejected
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1721
Functiontest_read_text_exact_keeps_crlf_and_lone_cr
(tmp_path: Path)
tests/lib/tools/test_files.py:8
Functiontest_read_through_symlink_escape_is_rejected
resolve_path realpaths, so a symlink that escapes the workdir is caught.
tests/lib/tools/test_agent_toolset.py:1706
Functiontest_read_uncapped_allows_oversized
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:504
Functiontest_read_undecodable_binary_raises_tool_error
Non-image/PDF binary surfaces a clean ToolError, not a raw UnicodeDecodeError.
tests/lib/tools/test_agent_toolset.py:633
Functiontest_read_under_unreadable_directory_reports_permission_denied
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:1846
Functiontest_read_view_range
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:224
Functiontest_read_view_range_edges
(tmp_path: Path, view_range: list[int], want: str)
tests/lib/tools/test_agent_toolset.py:242
Functiontest_read_view_range_over_cap_crosses_chunk_boundaries
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:375
Functiontest_read_view_range_over_cap_preserves_crlf_line_endings
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:354
Functiontest_read_view_range_over_cap_preserves_lone_cr
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:361
Functiontest_read_view_range_over_cap_rejects_oversized_slice
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:335
Functiontest_read_view_range_over_cap_single_long_line
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:345
Functiontest_read_view_range_streams_file_over_cap
(tmp_path: Path, view_range: list[int], want: str)
tests/lib/tools/test_agent_toolset.py:328
Functiontest_read_view_range_wrong_arity_is_rejected
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:249
Functiontest_read_whose_body_is_not_from_the_api_reconnects
(kind: str, body: str)
tests/lib/tools/test_session_runner.py:1479
Functiontest_read_write_edit_roundtrip
(tmp_path: Path)
tests/lib/tools/test_agent_toolset.py:209
Methodtest_reads_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:218
Methodtest_reads_env_var_path
(self, tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_credentials.py:238
Functiontest_reads_get_longer_limits_until_a_connection_succeeds
(kind: str)
tests/lib/tools/test_session_runner.py:1497
Methodtest_received_text_for_expected_json
(self, respx_mock: MockRouter)
tests/test_client.py:1327
Methodtest_received_text_for_expected_json
(self, respx_mock: MockRouter)
tests/test_client.py:3094
Functiontest_reconnect_to_a_running_session_uploads_nothing
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:427
Functiontest_reconnects_and_repeated_events_change_nothing_that_is_observable
(data: st.DataObject)
tests/lib/tools/test_session_runner_properties.py:553
Functiontest_recursive_proxy
()
tests/test_utils/test_proxy.py:17
Methodtest_reentering_the_same_state_nests
(self)
tests/lib/test_refusal_fallback.py:1038
Functiontest_ref_schema
()
tests/lib/_parse/test_transform.py:14
Functiontest_ref_schema_with_defs
()
tests/lib/_parse/test_transform.py:20
Methodtest_refresh_failure_does_not_retain_refresh_token
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path )
tests/lib/test_credentials.py:5456
Methodtest_refresh_invalid_expires_does_not_retain_new_token
( self, respx_mock: MockRouter, clean_env: pytest.MonkeyPatch, tmp_path: pathlib.Path, expires_in: str
tests/lib/test_credentials.py:5467
Methodtest_refresh_json_array_response_raises_redacted_error
A JSON-but-non-object refresh body (which can echo the request's refresh token) is rejected at the wrap boundary and never bound to a
tests/lib/test_credentials.py:5497
Methodtest_refresh_non_json_response_raises_redacted_error
A non-JSON refresh response raises WorkloadIdentityError (it previously escaped as a raw json ValueError whose `.doc` carries the full
tests/lib/test_credentials.py:5481
Methodtest_refresh_success_writes_raw_tokens_to_disk_and_wire
SecretStr wrapping is an in-memory concern only: the refresh POST body and the persisted credentials file must carry the raw values —
tests/lib/test_credentials.py:5526
Functiontest_refresh_without_google_auth_raises_actionable_error
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_vertex.py:661
Functiontest_refresh_without_google_auth_raises_actionable_error
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_google_cloud.py:537
Methodtest_refusal_after_a_completed_server_tool
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1354
Functiontest_refusal_ends_runner_without_executing_tools_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:618
Functiontest_refusal_ends_runner_without_executing_tools_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:581
Methodtest_refusal_stop_details_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:467
Methodtest_refusal_stop_details_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:791
Methodtest_refusal_stop_details_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:595
Methodtest_refusal_stop_details_propagated
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:927
Methodtest_refusal_with_no_credit_token_passes_a_through_and_logs_an_error
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:427
Functiontest_refusals_before_dispatch_read_as_tool_errors_and_never_reach_the_driver
()
tests/lib/tools/toolsets/test_pipeline.py:313
Functiontest_refused_read_is_not_raised_to_a_consumer_that_closes_the_iterator
()
tests/lib/tools/test_session_runner.py:1537
Functiontest_refused_read_is_raised_after_the_running_call_is_yielded_and_the_tools_are_closed
()
tests/lib/tools/test_session_runner.py:1521
Functiontest_refused_result_is_replaced_with_an_error_result
(call: Call, message: str)
tests/lib/tools/test_session_runner.py:1234
Functiontest_region_constructor_overrides_env
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:365
Methodtest_region_from_aws_default_region_env_var
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:168
Methodtest_region_from_aws_region_env_var
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:160
Functiontest_region_from_constructor
()
tests/lib/test_aws.py:359
Functiontest_region_infer_from_aws_profile_argument
( mock_aws_config: None, # noqa: ARG001 monkeypatch: t.Any, )
tests/lib/test_bedrock.py:517
Functiontest_region_infer_from_profile
( mock_aws_config: None, # noqa: ARG001 profiles: t.List[AwsConfigProfile], )
tests/lib/test_bedrock.py:482
Functiontest_region_infer_from_specified_profile
( mock_aws_config: None, # noqa: ARG001 profiles: t.List[AwsConfigProfile], aws_profile: str,
tests/lib/test_bedrock.py:501
Functiontest_region_is_required
( mock_aws_config: None, # noqa: ARG001 monkeypatch: t.Any, )
tests/lib/test_bedrock.py:528
Methodtest_regional_base_url
Test that regional endpoints use the correct base URL format.
tests/lib/test_vertex.py:369
Methodtest_regional_base_url
Test that regional endpoints use the correct base URL format.
tests/lib/test_vertex.py:889
Methodtest_reinvokes_identity_provider
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1291
Methodtest_rejected_previous_message_id_replays_the_full_history_under_a_new_thread
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture, rejection: httpx2.Response, reason:
tests/lib/threads/test_beta_threads.py:407
← previousnext →11,001–11,100 of 14,068, ranked by callers