MCPcopy Create free account

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

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

Methodtest_send_with_no_messages_still_sends_a_partial_turn_again_after_a_call_that_failed
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:1732
Methodtest_send_with_no_messages_still_sends_a_partial_turn_again_after_a_call_that_failed
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:883
Methodtest_send_with_nothing_staged_goes_out
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:284
Functiontest_sends_the_error_result_of_a_call_that_failed_while_the_reply_streamed
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:365
Methodtest_sends_the_fallback_credit_beta_on_the_original_and_fallback_requests
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:637
Methodtest_sent_in_body_instead_of_header
( self, send: SendMessage, client: AnthropicBedrockMantle, respx_mock: MockRouter )
tests/lib/test_bedrock_mantle.py:693
Functiontest_sequences_sets_views_and_iterators_are_sent_as_lists
(send: Send, make: Callable[[], object])
tests/test_prepare.py:257
Functiontest_serialize_data
(sync: bool)
tests/test_prepare.py:345
Methodtest_server_and_mcp_tool_blocks_are_tool_calls_and_their_responses
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5080
Methodtest_server_attributes_are_on_the_span_from_its_start_only
( self, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:2714
Methodtest_server_port_is_the_base_urls_or_else_the_one_of_its_scheme
( self, client_base_url: str, port: int, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3186
Methodtest_server_side_fallbacks_raise_an_error
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:548
Methodtest_server_side_fallbacks_raise_an_error
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:644
Methodtest_server_side_tool
( self, snapshot_client: Anthropic, )
tests/lib/tools/test_runners.py:467
Methodtest_server_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:379
Methodtest_server_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:734
Methodtest_server_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:526
Methodtest_server_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:874
Methodtest_service_account_included
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1151
Methodtest_session_create_has_its_agent_model_and_environment
( self, raw: bool, agent: Any, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7486
Methodtest_session_create_sends_an_agent_without_an_id_for_the_api_to_reject
( self, traces: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7426
Methodtest_session_create_starts_its_span_with_the_agent_and_environment
(self, respx_mock: MockRouter)
tests/test_open_telemetry.py:7503
Functiontest_session_idle_lists_the_calls_that_need_input_from_a_client
( steps: list[Step], stop_reason: Event )
tests/lib/tools/test_fake_sessions_api.py:124
Functiontest_session_is_read_once_for_skills_and_memory
(notes: Path)
tests/lib/tools/memory_sync/test_e2e_memory.py:98
Functiontest_session_is_retrieved_with_the_status_of_its_threads
( steps: list[Step], status: str, session: FakeSession, http: httpx2.AsyncClient )
tests/lib/tools/test_fake_sessions_api.py:197
Methodtest_set_messages_params_hands_out_request_params_only
(self)
tests/lib/threads/test_thread_tool_runner.py:195
Methodtest_set_messages_params_leaves_the_tools_of_the_thread_to_a_later_runner
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:176
Methodtest_set_messages_params_leaves_the_tools_of_the_thread_to_a_later_runner
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:1407
Methodtest_set_messages_params_with_some_fields_drops_the_others
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:203
Methodtest_set_messages_params_without_tools_still_runs_the_call_the_reply_made
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:254
Functiontest_sets_bearer_auth_token_on_copy
()
tests/lib/test_scoped_client.py:21
Methodtest_shadow_warning_is_one_shot_per_process
The shadow warning is emitted once per shadow-key per process so repeated client construction doesn't spam logs.
tests/lib/test_credentials.py:5209
Methodtest_shared_provider_binds_per_client
The same isolation holds when one provider instance is passed to two clients directly: the first client keeps its binding.
tests/lib/test_credentials.py:3213
Functiontest_shell_is_closed_when_an_iteration_ends
( shell: list[Any], consumer: Callable[[SessionToolRunner], Awaitable[None]] )
tests/lib/tools/test_session_runner.py:424
Functiontest_shell_of_a_terminated_thread_stays_open_until_the_result_of_its_call_is_posted
(shell: list[Any])
tests/lib/tools/test_session_runner.py:409
Functiontest_shell_of_a_thread_is_closed_when_the_thread_terminates
(shell: list[Any], backend: str)
tests/lib/tools/test_session_runner.py:397
Functiontest_shell_that_fails_to_close_neither_raises_nor_keeps_a_tool_open
( shell: list[Any], then: list[Step], monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_session_runner.py:440
Methodtest_short_circuit_skips_http_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:784
Methodtest_short_circuit_skips_http_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:1635
Methodtest_short_token_fully_masked
(self)
tests/lib/test_credentials.py:5278
Functiontest_siblings_are_prepared_in_document_order
(send: Send, monkeypatch: pytest.MonkeyPatch)
tests/test_prepare.py:286
Functiontest_signature_without_evaluating_annotations_tolerates_undefined_names
()
tests/test_utils/test_reflection.py:12
Methodtest_signed_request_without_propagation_keeps_a_valid_signature
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4327
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:867
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:2874
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:848
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:709
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:6582
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:626
Methodtest_size_bound_counts_a_result_that_is_one_object
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6062
Methodtest_size_bound_counts_bytes_not_characters
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6427
Methodtest_size_bound_counts_streamed_output_and_removes_the_oldest_input_parts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6127
Methodtest_size_bound_counts_the_content_of_a_tool_result
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6021
Methodtest_size_bound_counts_the_stop_sequences_that_stay
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6761
Methodtest_size_bound_cuts_text_between_two_characters
(self)
tests/test_open_telemetry.py:6321
Methodtest_size_bound_cuts_the_newest_input_part_when_no_other_is_left
(self)
tests/test_open_telemetry.py:6518
Methodtest_size_bound_gives_what_removing_one_part_or_character_at_a_time_gives
(self)
tests/test_open_telemetry.py:6535
Methodtest_size_bound_keeps_the_last_text_part_with_empty_content_when_none_of_it_fits
(self)
tests/test_open_telemetry.py:6306
Methodtest_size_bound_removes_a_part_without_text_whole
(self)
tests/test_open_telemetry.py:6338
Methodtest_size_bound_removes_input_parts_not_whole_messages
(self)
tests/test_open_telemetry.py:6498
Methodtest_size_bound_removes_the_first_output_parts_once_no_input_part_remains
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6182
Methodtest_size_bound_removes_the_oldest_input_parts
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5993
Methodtest_size_bound_removes_the_output_parts_from_the_start
(self)
tests/test_open_telemetry.py:6277
Methodtest_size_bound_removes_the_output_parts_of_a_stream_from_the_start
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6211
Methodtest_size_bound_removes_the_tool_call_before_the_text_that_it_cuts
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6370
Functiontest_skill_is_skipped_only_if_an_earlier_skill_with_its_name_was_extracted
( tmp_path: Path, async_client: AsyncAnthropic, respx_mock: MockRouter, caplog: pytest.LogCapt
tests/lib/tools/test_skills.py:578
Functiontest_skills_are_available_to_the_tools_and_removed_afterward
(tmp_path: Path)
tests/lib/environments/test_worker.py:640
Functiontest_skills_are_removed_when_their_download_is_interrupted
(tmp_path: Path, ending: Step)
tests/lib/environments/test_worker.py:705
Functiontest_skills_of_subagents_are_downloaded_once_after_those_of_the_agent
( multiagent: object, downloaded: list[str] )
tests/lib/environments/test_worker.py:696
Functiontest_skills_with_subagents_tracks_generated_api_types
()
tests/lib/tools/test_skills.py:469
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_slow_consumer_does_not_delay_tools
()
tests/lib/tools/test_session_runner.py:187
Methodtest_span_has_an_attribute_only_when_the_event_has_it
( self, spans: Spans, call: Call, name: str, recorded: str | None )
tests/lib/tools/test_open_telemetry.py:2182
Methodtest_span_is_a_child_of_the_applications_span
(self, spans: Spans, span_name: str)
tests/lib/tools/test_open_telemetry.py:2169
← previousnext →11,401–11,500 of 14,068, ranked by callers