MCPcopy Create free account

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

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

Methodtest_tool_result_content_leaves_out_encrypted_fields
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5031
Methodtest_tool_result_content_loses_its_last_blocks_over_the_content_limit
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:510
Functiontest_tool_result_echoes_toolset_name_and_passes_the_tool_use_as_context
()
tests/lib/tools/toolsets/test_runnable.py:66
Functiontest_tool_result_maps_the_pipeline_onto_a_result_block_and_passes_the_tool_use_along
()
tests/lib/tools/toolsets/test_pipeline.py:599
Functiontest_tool_result_maps_tool_error_to_is_error_text_content
()
tests/lib/tools/toolsets/test_runnable.py:106
Functiontest_tool_result_propagates_the_developer_error_class_only
()
tests/lib/tools/toolsets/test_runnable.py:168
Functiontest_tool_result_rejects_block_of_another_family
(toolset_name: str | None)
tests/lib/tools/toolsets/test_runnable.py:184
Functiontest_tool_result_reports_any_other_exception_to_the_model
()
tests/lib/tools/toolsets/test_runnable.py:161
Functiontest_tool_result_text_with_a_lone_surrogate_does_not_break_the_next_request
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, cap
tests/lib/tools/test_runners.py:2354
Methodtest_tool_result_without_content_has_an_empty_list
( self, returned: object, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:450
Functiontest_tool_runner_accepts_a_generator_of_tools
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_runner.py:797
Methodtest_tool_runner_and_tool_spans
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:305
Functiontest_tool_runner_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:1066
Functiontest_tool_runner_method_in_sync
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/lib/tools/test_runners.py:2448
Functiontest_tool_runner_method_returns_session_tool_runner
()
tests/lib/tools/test_session_runner.py:2152
Functiontest_tool_runner_rejects_a_function_tool_of_the_other_flavour
( client: Anthropic, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_runner.py:767
Methodtest_tool_runner_span_has_its_attributes_from_its_start
(self, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1005
Methodtest_tool_span
(self, spans: Spans, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/test_open_telemetry.py:2173
Methodtest_tool_that_runs_while_the_reply_streams_has_its_span
( self, spans: Spans, respx_mock: MockRouter, city: str )
tests/lib/tools/test_open_telemetry.py:1500
Methodtest_tool_that_the_application_runs_between_items_has_the_conversation_id
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:778
Methodtest_tool_that_the_application_runs_is_a_child_of_the_applications_span
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:797
Methodtest_tool_that_the_application_runs_on_an_async_runner_is_a_child_of_the_applications_span
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:831
Methodtest_tool_that_the_application_runs_with_no_current_span_is_a_root_span
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:815
Functiontest_tool_timeout
Tool that exceeds `TOOL_TIMEOUT` yields with `is_error=True` and a `"timed out"` message — distinct from the generic exception path.
tests/lib/tools/test_session_runner.py:1890
Functiontest_tool_timeout_exceeds_bash_default
`TOOL_TIMEOUT` MUST stay strictly greater than the bash tool's own `BASH_DEFAULT_TIMEOUT`. If they were equal the outer per-tool-call `fail_a
tests/lib/tools/test_session_runner.py:1953
Functiontest_tool_timeout_fires_for_blocking_sync_tool
A sync tool that blocks past `TOOL_TIMEOUT` is reported timed out at the deadline; its thread is abandoned rather than awaited.
tests/lib/tools/test_session_runner.py:1931
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:340
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:645
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:460
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:829
Methodtest_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:387
Methodtest_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:695
Methodtest_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:373
Methodtest_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:680
Methodtest_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:400
Methodtest_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:483
Functiontest_tools_are_indexed_by_name_and_toolsets_by_family
(navigate: BetaFunctionTool[Any])
tests/lib/tools/toolsets/test_runnable.py:58
Functiontest_tools_passed_as_a_one_shot_iterable_reach_every_request
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str, thread: bool | No
tests/lib/tools/toolsets/test_browser_runner.py:527
Methodtest_toolset_call_that_no_toolset_of_the_runner_runs_has_no_span
( self, sync: bool, mode: dict[str, Any], spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2077
Methodtest_toolset_member_that_fails_has_a_tool_error_and_the_members_it_stops_have_no_span
( self, sync: bool, mode: dict[str, Any], spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2047
Methodtest_toolset_member_that_runs_while_the_reply_streams_has_its_span
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2021
Methodtest_toolset_member_that_the_runner_runs_has_a_tool_span
( self, sync: bool, mode: dict[str, Any], spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1977
Methodtest_toolset_name_of_a_tool_use_block_is_on_its_tool_call
( self, beta: bool, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5274
Functiontest_top_level_file_array
()
tests/test_extract_files.py:38
Methodtest_trace_context_headers
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1682
Methodtest_tracer_provider_that_gives_no_tracer_leaves_the_client_without_spans
( self, sync: bool, respx_mock: MockRouter )
tests/test_open_telemetry.py:8144
Functiontest_tracer_provider_that_is_not_installed_leaves_a_client_without_spans
(new_client: NewClient)
tests/test_tracing.py:359
Functiontest_tracing_that_fails_leaves_the_poller_as_it_is
(sync: bool, failure: str, respx_mock: MockRouter)
tests/lib/environments/test_poller_method.py:801
Methodtest_tracing_that_fails_leaves_the_runner_as_it_is
( self, failure: str, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:2241
Methodtest_tracing_that_fails_leaves_the_tool_runner_as_it_is
( self, sync: bool, stream: bool, failure: str, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:2099
Functiontest_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_messages.py:828
Functiontest_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_beta_messages.py:1079
Methodtest_trailing_strings_mode_header
Test behavior differences with and without the beta header for JSON parsing.
tests/lib/streaming/test_partial_json.py:14
Methodtest_transport_error_does_not_retain_assertion
(self)
tests/lib/test_credentials.py:4936
Functiontest_tuple_input
()
tests/test_files.py:20
Methodtest_turn_after_a_failed_replay_creates_a_thread_with_the_full_history
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:763
Methodtest_turn_that_failed_is_not_sent_with_the_next_turn
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:718
Methodtest_two_passed_credentials_raise
( self, credential_arguments: dict[str, Any], client_cls: type[Anthropic] | type[Async
tests/lib/test_credentials.py:4344
Functiontest_type_alias_type
()
tests/test_models.py:934
Functiontest_type_compat
()
tests/test_models.py:648
Functiontest_typeddict_with_omit_field
()
tests/test_models.py:1115
Functiontest_types_in_result_blocks_are_all_kept_or_lose_their_data
(blocks: tuple[Any, ...], kept: set[str])
tests/test_open_telemetry.py:8523
Methodtest_unary_attributes
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:895
Methodtest_unforced_result_is_not_cached_after_a_concurrent_invalidate
The token may be the one the API just rejected, so it serves this request only.
tests/lib/test_credentials.py:2055
Methodtest_unforced_result_is_not_cached_after_a_concurrent_invalidate
(self)
tests/lib/test_credentials.py:3788
Functiontest_ungated_tool_with_stray_deny_verdict_resolves_as_denied
Mirror of `test_pre_denied_tool_ignores_stray_allow_verdict`: a stray `deny` verdict recorded before an ungated call is routed resolves the ca
tests/lib/tools/test_session_runner.py:1093
Functiontest_unimplemented_members_are_sent_as_disabled_and_implemented_ones_left_to_the_api
()
tests/lib/tools/toolsets/test_interface.py:87
Functiontest_unimplemented_members_are_sent_as_disabled_and_implemented_ones_left_to_the_api
()
tests/lib/tools/toolsets/test_computer_interface.py:67
Functiontest_union_of_dict
()
tests/test_models.py:420
Functiontest_union_of_lists
()
tests/test_models.py:344
Methodtest_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:1066
Methodtest_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:2504
Functiontest_unknown_array_format
()
tests/test_qs.py:88
Functiontest_unknown_block_type_pair_is_a_noop_forward_compat
()
tests/lib/sessions/test_accumulate.py:163
Functiontest_unknown_event_type_passes_the_snapshot_through_forward_compat
()
tests/lib/sessions/test_accumulate.py:173
Methodtest_unknown_events_are_passed_through
(self, client: Anthropic, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:279
Methodtest_unknown_events_are_passed_through
( self, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/streaming/test_messages.py:579
Methodtest_unknown_events_are_passed_through
(self, client: Anthropic, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:442
Methodtest_unknown_events_are_passed_through
( self, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/streaming/test_beta_messages.py:763
Functiontest_unknown_fields
()
tests/test_models.py:163
Functiontest_unknown_fragment_type_on_an_existing_index_is_a_noop_forward_compat
()
tests/lib/sessions/test_accumulate.py:182
Functiontest_unknown_member_name_is_sanitised_in_the_refusal
()
tests/lib/tools/toolsets/test_interface.py:235
Functiontest_unknown_tool_skipped_by_default
An unregistered tool name is assumed to belong to the other client servicing the session, so it is skipped — not answered in place. The call i
tests/lib/tools/test_session_runner.py:410
Methodtest_unknown_type
(self, tmp_path: pathlib.Path)
tests/lib/test_credentials.py:825
Methodtest_unknown_type_rejected
(self)
tests/lib/test_credentials.py:3289
Functiontest_unnamed_file_tuple_uses_base_name
()
tests/test_files.py:66
Functiontest_unowned_or_denied_call_of_terminated_thread_is_not_yielded
The runner yields an unowned call and a denied call of a live thread so that the caller can observe them. It yields neither for a terminated threa
tests/lib/tools/test_session_runner.py:1443
Functiontest_unrecognised_permission_fails_closed
An `evaluated_permission` value this SDK doesn't recognise must not dispatch unconfirmed — it is held like `ask` and released only by an expli
tests/lib/tools/test_session_runner.py:1030
Functiontest_unrecognised_verdict_fails_closed
The gate is an allow-list: a confirmation whose `result` is a value this SDK doesn't recognise (the wire can carry values newer than our types
tests/lib/tools/test_session_runner.py:1001
Methodtest_unrecognized_top_level_keys_ignored
Unknown top-level keys in both files are silently ignored (forward compat).
tests/lib/test_credentials.py:329
Functiontest_unregistered_family_is_error_result_with_toolset_name_async
( async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/toolsets/test_runner.py:594
Functiontest_unregistered_family_is_error_result_with_toolset_name_sync
(client: Anthropic, respx_mock: MockRouter)
tests/lib/tools/toolsets/test_runner.py:263
Functiontest_unregistered_family_names_are_folded_before_they_reach_a_log_or_the_result
( client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, flavour: str )
tests/lib/tools/toolsets/test_runner.py:302
Methodtest_unrelated_errors_raise_and_the_same_call_again_sends_the_turn_once
( self, respx_mock: MockRouter, method: str, failure: httpx2.Response | Exception )
tests/lib/threads/test_beta_threads.py:701
Methodtest_unrelated_errors_raise_and_the_same_call_again_sends_the_turn_once
( self, respx_mock: MockRouter, method: str, failure: httpx2.Response | Exception )
tests/lib/threads/test_async_beta_threads.py:397
Functiontest_unrestricted_paths_is_rejected_at_construction
(value: bool)
tests/lib/environments/test_worker.py:966
Functiontest_unrestricted_paths_is_rejected_with_guidance
(tmp_path: Path, value: bool)
tests/lib/tools/test_agent_toolset.py:59
Functiontest_unset_checks_nothing
()
tests/lib/tools/toolsets/test_enforcement.py:141
Methodtest_unsetting_every_output_config_subfield_drops_the_key
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:475
Methodtest_unsupported_request_raises_by_default_and_keeps_previous_message_id
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:444
← previousnext →11,101–11,200 of 12,274, ranked by callers