MCPcopy Create free account

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

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

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:1793
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:1544
Methodtest_status_error_type_field
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:3031
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
Methodtest_stream_closed_before_the_first_read_has_the_requests_content
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1891
Methodtest_stream_closed_early
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1728
Methodtest_stream_closed_from_another_thread_while_it_is_read
( self, traced: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1915
Methodtest_stream_does_not_warn_for_type
`.stream(output_format=Model)` is silent.
tests/api_resources/beta/test_output_format_conversion.py:108
Methodtest_stream_ended_after_a_message_delta_that_cannot_be_accumulated_has_nothing_of_it
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2171
Methodtest_stream_ended_after_message_delta_has_what_message_delta_gave
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2101
Methodtest_stream_ended_before_message_delta_has_nothing_that_message_delta_gives
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2136
Methodtest_stream_ended_by_the_server_before_message_stop
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1983
Methodtest_stream_error_event
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2336
Methodtest_stream_error_event_without_a_type
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2353
Methodtest_stream_error_takes_the_turn_back
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1608
Functiontest_stream_event_types_are_all_handled_or_passed_over
(events: Any)
tests/test_open_telemetry.py:8562
Methodtest_stream_has_what_its_subclass_sets_after_init
(self, client: Anthropic)
tests/test_streaming.py:248
Methodtest_stream_has_what_its_subclass_sets_after_init
(self, async_client: AsyncAnthropic)
tests/test_streaming.py:295
Methodtest_stream_helper
( self, message: dict[str, Any], content_mode: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7842
Methodtest_stream_helper_closed_early_has_the_partial_output
( self, beta: bool, last_event: str, parts: list[dict[str, Any]], spans: Spans, respx_mock: MockRouter
tests/test_open_telemetry.py:5798
Methodtest_stream_helper_content_comes_from_its_snapshot
( self, beta: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:5639
← previousnext →10,001–10,100 of 12,274, ranked by callers