MCPcopy Create free account

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

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

Methodtest_runner_runs_neither_a_tool_set_messages_params_takes_out_of_tools_nor_one_it_adds
( self, respx_mock: MockRouter, mode: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:1370
Methodtest_runner_sends_a_message_appended_to_the_thread_during_a_yield
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:493
Methodtest_runner_sends_a_message_appended_to_the_thread_while_a_turn_is_paused_with_the_resume
( self, respx_mock: MockRouter, respond: Any, stream: bool )
tests/lib/threads/test_thread_tool_runner.py:511
Methodtest_runner_sends_a_message_appended_to_the_thread_while_a_turn_is_paused_with_the_resume
( self, respx_mock: MockRouter, respond: Any, stream: bool )
tests/lib/threads/test_async_beta_threads.py:1835
Functiontest_runner_sends_no_beta_header_when_given_no_betas
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:3441
Methodtest_runner_sends_the_betas_that_set_messages_params_gives
( self, respx_mock: MockRouter, mode: dict[str, Any] )
tests/lib/threads/test_tool_runner_threading.py:722
Methodtest_runner_sends_the_billing_policy_that_set_messages_params_gives
( self, respx_mock: MockRouter, mode: dict[str, Any], billing_policy: BetaBillingPolicyParam | None
tests/lib/threads/test_tool_runner_threading.py:708
Methodtest_runner_sends_the_compaction_once_when_it_is_appended_to_the_thread_again
( self, respx_mock: MockRouter )
tests/lib/threads/test_thread_tool_runner.py:357
Methodtest_runner_sends_the_compaction_once_when_it_is_appended_to_the_thread_again
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:1746
Methodtest_runner_sends_the_history_the_loop_body_leaves
( self, respx_mock: MockRouter, respond: Any, stream: bool, mode: dict[str, Any], body: LoopBody )
tests/lib/threads/test_tool_runner_threading.py:350
Methodtest_runner_sends_the_history_the_loop_body_leaves
( self, respx_mock: MockRouter, respond: Any, stream: bool, mode: dict[str, Any], body: LoopBody )
tests/lib/threads/test_async_beta_threads.py:1326
Methodtest_runner_sends_the_tool_definitions_a_set_messages_params_callback_marks
( self, respx_mock: MockRouter )
tests/lib/threads/test_tool_runner_threading.py:574
Methodtest_runner_sends_the_user_profile_that_set_messages_params_gives_without_the_billing_policy
( self, respx_mock: MockRouter, mode: dict[str, Any] )
tests/lib/threads/test_tool_runner_threading.py:687
Methodtest_runner_sends_the_user_profile_that_set_messages_params_gives_without_the_billing_policy
( self, respx_mock: MockRouter, mode: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:1600
Methodtest_runner_set_messages_params_replaces_the_history_mid_loop
( self, respx_mock: MockRouter, respond: Any, stream: bool )
tests/lib/threads/test_thread_tool_runner.py:219
Methodtest_runner_set_messages_params_trimmed_history_keeps_one_copy_of_the_reply
( self, respx_mock: MockRouter )
tests/lib/threads/test_thread_tool_runner.py:528
Methodtest_runner_still_runs_a_tool_from_add_tools_after_set_messages_params
( self, respx_mock: MockRouter, mode: dict[str, Any] )
tests/lib/threads/test_tool_runner_threading.py:531
Methodtest_runner_still_runs_a_tool_that_set_messages_params_gives_as_a_definition
( self, respx_mock: MockRouter, respond: Any, stream: bool, mode: dict[str, Any] )
tests/lib/threads/test_tool_runner_threading.py:431
Methodtest_runner_still_runs_a_tool_that_set_messages_params_gives_as_a_definition
( self, respx_mock: MockRouter, respond: Any, stream: bool, mode: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:1353
Methodtest_runner_stops_on_a_tool_use_reply_without_tool_calls_whatever_the_caller_appends
( self, respx_mock: MockRouter, respond: Any, stream: bool, mode: dict[str, Any] )
tests/lib/threads/test_tool_runner_threading.py:738
Methodtest_runner_stops_on_a_tool_use_reply_without_tool_calls_whatever_the_caller_appends
( self, respx_mock: MockRouter, respond: Any, stream: bool, mode: dict[str, Any] )
tests/lib/threads/test_async_beta_threads.py:1620
Methodtest_runner_stops_threading_after_a_compaction_request_that_cannot_be_threaded
( self, respx_mock: MockRouter )
tests/lib/threads/test_thread_tool_runner.py:288
Methodtest_runner_stops_threading_after_a_compaction_request_that_cannot_be_threaded
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:1670
Functiontest_runner_stops_while_a_cancelled_consumer_is_still_shielded
()
tests/lib/tools/test_session_runner.py:1972
Methodtest_runner_takes_a_new_system_with_another_history_only_when_it_sends_the_whole_history
( self, respx_mock: MockRouter, mode: dict[str, Any], change: Callable[[Any], None] )
tests/lib/threads/test_tool_runner_threading.py:509
Methodtest_runner_takes_a_new_system_with_another_history_only_when_it_sends_the_whole_history
( self, respx_mock: MockRouter, mode: dict[str, Any], change: Callable[[Any], None] )
tests/lib/threads/test_async_beta_threads.py:1457
Methodtest_runner_takes_other_params_after_a_message_is_appended_to_the_thread_while_it_compacts
( self, respx_mock: MockRouter )
tests/lib/threads/test_thread_tool_runner.py:411
Methodtest_runner_takes_other_params_after_a_message_is_appended_to_the_thread_while_it_compacts
( self, respx_mock: MockRouter )
tests/lib/threads/test_async_beta_threads.py:1806
Methodtest_runner_that_stops_at_its_limit_leaves_the_tool_results_and_the_container_on_the_thread
( self, respx_mock: MockRouter, respond: Any, stream: bool, dropped: list[str] | None )
tests/lib/threads/test_thread_tool_runner.py:638
Methodtest_runner_that_stops_at_its_limit_leaves_the_tool_results_and_the_container_on_the_thread
( self, respx_mock: MockRouter, dropped: list[str] | None )
tests/lib/threads/test_async_beta_threads.py:1111
Methodtest_runner_threads_by_default
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:71
Methodtest_runner_threads_by_default
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:953
Methodtest_runner_with_a_caller_anthropic_beta_header_still_sends_the_threads_beta
( self, respx_mock: MockRouter )
tests/lib/threads/test_tool_runner_threading.py:108
Methodtest_runner_with_thread_false_changes_nothing_after_a_reply_from_a_fallback_model
( self, respx_mock: MockRouter )
tests/lib/threads/test_tool_runner_threading.py:244
Methodtest_runner_with_thread_false_records_a_refused_turn
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:290
Methodtest_runner_with_thread_false_reuses_the_container
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:319
Methodtest_runner_with_thread_false_sends_every_cache_marker_as_given
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:305
Methodtest_runner_with_thread_false_sends_no_thread
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:990
Methodtest_runner_with_thread_false_sends_the_full_history_without_a_thread
(self, respx_mock: MockRouter)
tests/lib/threads/test_tool_runner_threading.py:259
Methodtest_runner_with_thread_none_threads_as_by_default
(self, respx_mock: MockRouter)
tests/lib/threads/test_thread_tool_runner.py:723
Functiontest_running_call_is_cancelled_and_posted_and_no_other_starts
(ending: Step)
tests/lib/environments/test_worker.py:113
Functiontest_running_call_is_cancelled_and_posted_unless_lost_and_no_other_starts_when_the_lease_ends
( ending: list[Step], lost: bool )
tests/lib/environments/test_worker.py:365
Functiontest_running_call_is_cancelled_before_the_token_expires
()
tests/lib/environments/test_worker.py:421
Functiontest_running_tool_finishes_while_the_session_accepts_its_result
(steps: list[Step])
tests/lib/tools/test_session_runner.py:619
Functiontest_running_tool_is_cancelled_and_posted_and_queued_calls_never_start_once_stopping
( stop: list[Step], at: float, yielded: list[str] )
tests/lib/tools/test_session_runner.py:1699
Functiontest_running_tool_is_cancelled_when_the_session_stops_accepting_its_result
(steps: list[Step], at: float)
tests/lib/tools/test_session_runner.py:603
Functiontest_runs_a_held_call_when_the_caller_asks_for_the_tool_response
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:555
Functiontest_runs_each_call_once
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:143
Functiontest_runs_each_tool_once_the_model_has_moved_on_from_its_call
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:47
Functiontest_runs_every_tool_after_the_loop_body_when_not_streaming_as_before
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:73
Functiontest_runs_no_call_once_reading_the_reply_has_failed
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:335
Functiontest_runs_no_later_call_of_a_toolset_once_one_of_its_calls_has_failed
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:372
Functiontest_runs_no_later_call_once_the_caller_leaves_the_loop
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:702
Functiontest_runs_that_behave_differently_are_observably_different
(difference: list[Step])
tests/lib/tools/test_session_runner_properties.py:824
Functiontest_runs_the_calls_after_a_fallback_block_once_the_loop_body_ends_in_order
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:685
Functiontest_runs_the_calls_after_the_loop_body_when_the_caller_does_not_read_the_stream
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:279
Functiontest_runs_the_calls_one_at_a_time
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:352
Functiontest_runs_the_calls_while_the_caller_reads_the_stream_however_it_reads_it
( setup: SetupFactory, read: str )
tests/lib/tools/test_runner_eager_tools.py:258
Functiontest_runs_the_remaining_calls_after_the_loop_body_when_the_caller_stops_reading_early
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:290
Methodtest_sampling_fields_that_the_sdk_does_not_model_have_no_attribute
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:952
Methodtest_scalar_credentials_file_does_not_retain_token
A credentials file whose top level is a JSON string (e.g. a bare token pasted into the file) must raise a clean error without the valu
tests/lib/test_credentials.py:5509
Functiontest_scalar_subclasses_are_sent_as_their_value
(send: Send)
tests/test_prepare.py:310
Functiontest_scalars
(send: Send)
tests/test_prepare.py:304
Functiontest_schedule_applies_only_actions_of_its_kinds_after_its_first_steps
(data: st.DataObject)
tests/lib/tools/test_session_runner_properties.py:798
Functiontest_schedule_applies_only_actions_of_its_kinds_and_each_call_has_its_own_id
(data: st.DataObject)
tests/lib/environments/test_worker_properties.py:430
Functiontest_schedule_gives_each_call_its_own_id
(data: st.DataObject)
tests/lib/tools/test_session_runner_properties.py:809
Methodtest_scope_is_display_only
`scope` is stored on the provider for parity but never sent on the wire — the server derives effective scope from the federation rule.
tests/lib/test_credentials.py:1191
Functiontest_scoped_bearer_client_helper_on_aws
()
tests/lib/test_aws.py:904
Functiontest_scoped_bearer_client_helper_on_aws_async
()
tests/lib/test_aws.py:923
Functiontest_scoped_client_and_its_copy_keep_what_the_parent_read_from_the_environment
( monkeypatch: pytest.MonkeyPatch, )
tests/lib/test_scoped_client.py:307
Functiontest_scoped_sub_client_sends_only_bearer_on_the_wire
Integration-level check: send a real HTTP request through the scoped sub-client (via `httpx2.MockTransport`) and inspect the headers actually
tests/lib/test_scoped_client.py:114
Functiontest_screenshot_media_types_track_the_generated_image_source
()
tests/lib/tools/toolsets/test_surface.py:184
Functiontest_screenshot_renders_one_image_block_as_returned
()
tests/lib/tools/toolsets/test_pipeline.py:164
Methodtest_sdk_error_from_read_is_not_wrapped
(self, client: Anthropic)
tests/test_streaming.py:294
Methodtest_sdk_error_from_read_is_not_wrapped
(self, async_client: AsyncAnthropic)
tests/test_streaming.py:370
Functiontest_second_iteration_counts_down_from_its_own_start
()
tests/lib/tools/test_session_runner.py:2096
Functiontest_second_iteration_handles_a_call_that_the_session_still_waits_on_again
()
tests/lib/tools/test_session_runner.py:2088
Functiontest_second_runner_with_the_same_tools_is_refused_until_it_restarts_the_shell
(shell: list[Any])
tests/lib/tools/test_session_runner.py:373
Functiontest_secret_and_token_are_never_logged
(secret: str, caplog: pytest.LogCaptureFixture)
tests/lib/environments/test_worker.py:765
Functiontest_secret_from_the_environment_is_not_in_the_locals_of_a_traceback
(monkeypatch: pytest.MonkeyPatch)
tests/lib/environments/test_worker.py:775
Functiontest_secret_is_read_with_or_without_padding
(padding: str)
tests/lib/environments/test_worker.py:743
Methodtest_secret_key_only_raises
(self)
tests/lib/test_aws_auth.py:32
Methodtest_secret_key_only_raises
(self)
tests/lib/test_bedrock_mantle.py:329
Methodtest_selects_first_supported
(self)
tests/lib/tools/test_mcp_tool.py:244
Methodtest_semicolon_in_model_is_percent_encoded_in_path
( self, model: str, segment: str, stream: bool, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:493
Methodtest_semicolon_in_model_is_percent_encoded_in_path
( self, model: str, segment: str, stream: bool, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:1021
Methodtest_semicolon_in_project_id_and_region_is_kept_beside_one_in_model
( self, stream: bool, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:511
Methodtest_semicolon_in_project_id_and_region_is_kept_beside_one_in_model
( self, stream: bool, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:1040
Methodtest_send_after_a_paused_reply_continues_from_it_with_no_messages
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:294
Methodtest_send_after_a_paused_reply_continues_from_it_with_no_messages
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:153
Methodtest_send_after_a_resumed_turn_finishes_continues_from_its_last_reply
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:328
Functiontest_send_attempts_get_longer_limits
()
tests/lib/tools/test_session_runner.py:1194
Methodtest_send_creates_a_thread_then_continues_it
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:87
Methodtest_send_overrides_apply_to_that_turn_only
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:162
Methodtest_send_overrides_take_precedence_over_update
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1203
Methodtest_send_parse_and_stream_take_the_arguments_of_update
( self, make_client: Callable[[], Anthropic | AsyncAnthropic] )
tests/lib/threads/test_beta_threads.py:1978
Methodtest_send_request_options_replace_the_threads_for_that_turn_only
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1241
Methodtest_send_while_another_send_is_in_flight_raises_and_stages_nothing
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:366
Methodtest_send_while_streaming_raises_and_stages_nothing
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1561
Methodtest_send_with_no_messages_after_a_partial_reply_sends_the_turn_again_without_it
( self, respx_mock: MockRouter )
tests/lib/threads/test_beta_threads.py:1714
← previousnext →11,301–11,400 of 14,068, ranked by callers