MCPcopy Create free account

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

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

Methodtest_signed_request_without_propagation_keeps_a_valid_signature
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4326
Functiontest_sigv4_binary_file_upload
(sync: bool, respx_mock: MockRouter)
tests/lib/test_aws.py:536
Methodtest_sigv4_ignores_env
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:241
Methodtest_sigv4_mode_returns_empty_auth_headers
(self)
tests/lib/test_bedrock_mantle.py:243
Functiontest_sigv4_signature
(sync: bool, connection_header: bool)
tests/lib/test_bedrock.py:866
Methodtest_sigv4_signature_does_not_cover_the_trace_headers_that_the_sdk_replaces
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2873
Methodtest_sigv4_signing_runs_off_event_loop
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock_mantle.py:361
Functiontest_sigv4_signing_runs_off_event_loop_async
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_bedrock.py:847
Functiontest_sigv4_signing_runs_off_event_loop_async
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:939
Functiontest_sigv4_signs_binary_body
(sync: bool, respx_mock: MockRouter)
tests/lib/test_bedrock.py:708
Functiontest_sigv4_user_profile_id_header
(sync: bool, respx_mock: MockRouter)
tests/lib/test_aws.py:608
Functiontest_sigv4_user_profiles_requests
(sync: bool, respx_mock: MockRouter)
tests/lib/test_aws.py:569
Functiontest_sigv4_with_options_ignores_ambient_first_party_credentials
( sync: bool, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_aws.py:678
Methodtest_size_bound_cases
( self, spans: Spans, limit: int, content: dict[str, Any], expected: d
tests/test_open_telemetry.py:6580
Methodtest_size_bound_cases_of_a_tool_span
( self, spans: Spans, limit: int, arguments: dict[str, Any], result: l
tests/lib/tools/test_open_telemetry.py:616
Methodtest_size_bound_counts_a_result_that_is_one_object
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6060
Methodtest_size_bound_counts_bytes_not_characters
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6425
Methodtest_size_bound_counts_streamed_output_and_removes_the_oldest_input_parts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6125
Methodtest_size_bound_counts_the_content_of_a_tool_result
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6019
Methodtest_size_bound_counts_the_stop_sequences_that_stay
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6759
Methodtest_size_bound_cuts_text_between_two_characters
(self)
tests/test_open_telemetry.py:6319
Methodtest_size_bound_cuts_the_newest_input_part_when_no_other_is_left
(self)
tests/test_open_telemetry.py:6516
Methodtest_size_bound_gives_what_removing_one_part_or_character_at_a_time_gives
(self)
tests/test_open_telemetry.py:6533
Methodtest_size_bound_keeps_the_last_text_part_with_empty_content_when_none_of_it_fits
(self)
tests/test_open_telemetry.py:6304
Methodtest_size_bound_removes_a_part_without_text_whole
(self)
tests/test_open_telemetry.py:6336
Methodtest_size_bound_removes_input_parts_not_whole_messages
(self)
tests/test_open_telemetry.py:6496
Methodtest_size_bound_removes_the_first_output_parts_once_no_input_part_remains
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6180
Methodtest_size_bound_removes_the_oldest_input_parts
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5991
Methodtest_size_bound_removes_the_output_parts_from_the_start
(self)
tests/test_open_telemetry.py:6275
Methodtest_size_bound_removes_the_output_parts_of_a_stream_from_the_start
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6209
Methodtest_size_bound_removes_the_tool_call_before_the_text_that_it_cuts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6368
Functiontest_skip_auth_async
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:183
Functiontest_skip_auth_base_url_env_overrides_region
(client_cls: _AWSClientClass, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:168
Functiontest_skip_auth_base_url_from_region_arg
(client_cls: _AWSClientClass, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:152
Functiontest_skip_auth_base_url_from_region_env
(client_cls: _AWSClientClass, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:160
Methodtest_skip_auth_derives_url_with_workspace
(self)
tests/lib/test_google_cloud.py:301
Methodtest_skip_auth_derives_url_with_workspace
(self)
tests/lib/test_google_cloud.py:1490
Methodtest_skip_auth_deriving_base_url_requires_project
(self)
tests/lib/test_google_cloud.py:292
Methodtest_skip_auth_deriving_base_url_requires_project
(self)
tests/lib/test_google_cloud.py:1482
Methodtest_skip_auth_does_not_sign_request
(self, get_auth_headers_recorder: GetAuthHeadersRecorder)
tests/lib/test_bedrock_mantle.py:272
Functiontest_skip_auth_explicit_auth_token_on_copy_is_sent
( sync: bool, via: str, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_aws.py:265
Functiontest_skip_auth_explicit_base_url_wins
(client_cls: _AWSClientClass, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:176
Methodtest_skip_auth_mutually_exclusive_with_credentials
(self)
tests/lib/test_google_cloud.py:355
Methodtest_skip_auth_mutually_exclusive_with_credentials
(self)
tests/lib/test_google_cloud.py:1317
Functiontest_skip_auth_no_auth_headers
(respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:192
Functiontest_skip_auth_no_workspace_required
(monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:118
Functiontest_skip_auth_region_request_url
( sync: bool, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_aws.py:217
Functiontest_skip_auth_requires_region_or_base_url
(client_cls: _AWSClientClass, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws.py:144
Methodtest_skip_auth_returns_empty_auth_headers
(self)
tests/lib/test_bedrock_mantle.py:251
Functiontest_skip_auth_sends_neither_header
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:1063
Functiontest_skipped_unowned_tool_does_not_trip_idle
A skipped (unanswered) unowned tool_use stays OUT of the end-turn accounting: reconcile sees history ending on an `end_turn` idle but with the
tests/lib/tools/test_session_runner.py:614
Functiontest_skips_already_answered_custom_tool
A custom tool whose `user.custom_tool_result` is already in history (via reconcile) is not re-executed when the same `agent.custom_tool_use` is th
tests/lib/tools/test_session_runner.py:530
Functiontest_skips_already_answered_events
Tool result already in history (via reconcile) should suppress re-execution of the same tool_use seen on the live stream.
tests/lib/tools/test_session_runner.py:427
Functiontest_skips_unowned_builtin_and_custom_tools_by_default
Default split-client behavior: a tool-call event whose name is not in the runner's registry belongs to the other client servicing the session
tests/lib/tools/test_session_runner.py:555
Methodtest_span_without_content_attributes_is_never_marked_truncated
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6107
Methodtest_spans_that_a_tool_starts_are_children_of_its_tool_span
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1041
Methodtest_spans_that_an_async_tool_starts_are_children_of_its_tool_span
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1065
Methodtest_spans_that_start_during_the_call_are_children_of_the_call_span
( self, sync: bool, spans: Spans )
tests/test_open_telemetry.py:2575
Functiontest_special_new_line_character
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, )
tests/test_streaming.py:183
Methodtest_speed_is_forwarded
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:495
Methodtest_speed_is_forwarded
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:775
Methodtest_splices_the_fallback_onto_the_refused_stream
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:244
Methodtest_splices_the_fallback_onto_the_refused_stream
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1796
Methodtest_stable_usage_has_no_compaction_tokens
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2053
Functiontest_stamps_helper_telemetry_header
()
tests/lib/test_scoped_client.py:50
Functiontest_starts_a_toolset_call_once_the_model_has_moved_on_from_it
(setup: SetupFactory, family: str)
tests/lib/tools/test_runner_eager_toolsets.py:82
Functiontest_starts_javascript_exec_like_any_other_call
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:184
Functiontest_state_changes_are_told_apart_by_their_type
()
tests/lib/tools/toolsets/test_surface.py:134
Functiontest_state_changes_pass_through_and_download_paths_stay_hidden_without_a_file_policy
()
tests/lib/tools/toolsets/test_pipeline.py:204
Functiontest_static_aliases_agree_with_the_derived_tables
()
tests/lib/tools/toolsets/test_computer_registry.py:52
Functiontest_static_aliases_agree_with_the_derived_tables
()
tests/lib/tools/toolsets/test_registry.py:73
Methodtest_static_token_credentials
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2554
Functiontest_status_error_class
( status: int, error: dict[str, object], error_class: type[APIStatusError], parent_class: type
tests/lib/test_bedrock.py:193
Methodtest_status_error_class
( self, status: int, error: dict[str, object], error_class: type[APIStatusErro
tests/lib/test_vertex.py:189
Methodtest_status_error_class
( self, status: int, error: dict[str, object], error_class: type[APIStatusErro
tests/lib/test_vertex.py:708
Methodtest_status_error_class
( self, status: int, error: dict[str, object], error_class: type[APIStatusErro
tests/lib/test_bedrock_mantle.py:289
Methodtest_status_error_type_field
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:1561
Methodtest_status_error_type_field
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:3065
Methodtest_stop_reason_is_the_one_in_the_response
( self, stop_reason: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2194
Methodtest_stop_sequences
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6704
Methodtest_stop_sequences_alone_over_the_bound_are_removed_whole
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6805
Methodtest_stop_sequences_are_content
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6738
Methodtest_stop_sequences_are_measured_in_bytes
( self, over: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6857
Methodtest_stop_sequences_exactly_at_the_bound_stay
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6782
Methodtest_stop_sequences_over_the_bound_are_removed_before_the_parts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6920
Functiontest_stores_sync_in_parallel_and_one_failure_spares_the_rest
Stores sync concurrently, and one store's failure never blocks another. The slow store's listing waits for the fast store's listing to start —
tests/lib/tools/memory_sync/test_memory_sync.py:645
Methodtest_str_replace
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:231
Methodtest_str_replace
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:857
Methodtest_str_replace_error_for_non_existent_file
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:305
Methodtest_str_replace_error_for_non_existent_file
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:931
Methodtest_str_replace_error_when_string_appears_multiple_times
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:281
Methodtest_str_replace_error_when_string_appears_multiple_times
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:907
Methodtest_str_replace_error_when_string_not_found
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:257
Methodtest_str_replace_error_when_string_not_found
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:883
Methodtest_str_replace_preserves_crlf_line_endings
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:380
Methodtest_str_replace_preserves_crlf_line_endings
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1012
Methodtest_str_variant
(self)
tests/test_utils/test_json.py:20
Methodtest_stream_and_parse_helpers_have_the_route
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:3103
Methodtest_stream_closed_after_message_stop_before_the_end_of_the_body
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1749
Methodtest_stream_closed_before_the_first_read
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1872
← previousnext →10,101–10,200 of 12,431, ranked by callers