MCPcopy Create free account

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

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

Functiontest_tool_removal_applies_when_the_history_has_a_system_message_without_content
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1746
Functiontest_tool_removal_in_compaction_tool_changes_routes_call_down_unknown_tool_path_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:1557
Functiontest_tool_removal_in_echoed_compaction_turn_routes_call_down_unknown_tool_path_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:1495
Functiontest_tool_removal_of_member_name_does_not_withdraw_toolset
( client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter, navigate: BetaFunct
tests/lib/tools/toolsets/test_runner.py:464
Functiontest_tool_removal_routes_call_down_unknown_tool_path_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1214
Functiontest_tool_removal_routes_call_down_unknown_tool_path_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1044
Functiontest_tool_removal_via_append_messages_between_turns_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1282
Functiontest_tool_removal_via_append_messages_same_turn_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1337
Functiontest_tool_removal_via_set_messages_params_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1382
Functiontest_tool_result_block_types_all_keep_their_fields_or_only_their_type
(tool_result: Any)
tests/test_open_telemetry.py:8442
Functiontest_tool_result_builds_the_block_and_never_raises_a_tool_error
()
tests/lib/tools/toolsets/test_computer_pipeline.py:300
Methodtest_tool_result_content
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:383
Methodtest_tool_result_content_is_content_blocks
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:4967
Methodtest_tool_result_content_is_within_the_clients_max_content_bytes
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:567
Methodtest_tool_result_content_leaves_out_encrypted_fields
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:5032
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:520
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:460
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:315
Functiontest_tool_runner_method_builds_a_runner_with_the_default_options
(async_client: AsyncAnthropic)
tests/lib/tools/test_session_runner.py:2059
Functiontest_tool_runner_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:1101
Functiontest_tool_runner_method_in_sync
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/lib/tools/test_runners.py:2448
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:1015
Functiontest_tool_that_fails_posts_an_error_result
(fn: Callable[[Any], Awaitable[Any]], message: str)
tests/lib/tools/test_session_runner.py:1041
Functiontest_tool_that_handles_its_timeout_still_times_out
(outcome: Callable[[Any], Awaitable[Any]])
tests/lib/tools/test_session_runner.py:1098
Functiontest_tool_that_runs_too_long_times_out_with_an_error_result
()
tests/lib/tools/test_session_runner.py:1089
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:1510
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:788
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:807
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:841
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:825
Functiontest_tool_times_out_unless_it_was_cancelled_before_325_seconds
(interrupted: int, cleanup: int, sent: str)
tests/lib/tools/test_session_runner.py:1105
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:359
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:713
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:468
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:850
Methodtest_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:419
Methodtest_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:777
Methodtest_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:405
Methodtest_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:762
Methodtest_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:432
Methodtest_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:491
Functiontest_tools_are_closed_once_in_order_after_the_running_call_finishes
(stop: str)
tests/lib/tools/test_session_runner.py:1991
Functiontest_tools_are_indexed_by_name_and_toolsets_by_family
(navigate: BetaFunctionTool[Any])
tests/lib/tools/toolsets/test_runnable.py:58
Methodtest_tools_description_and_no_arguments_are_recorded_without_content_mode
( self, spans: Spans, custom: bool, span_name: str )
tests/lib/tools/test_open_telemetry.py:2190
Functiontest_tools_factory_is_called_for_each_item_with_a_context_of_its_own
(tmp_path: Path)
tests/lib/environments/test_worker.py:604
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
Functiontest_tools_run_when_a_skill_fails_to_download
(tmp_path: Path, kind: str)
tests/lib/environments/test_worker.py:655
Functiontest_tools_set_during_iteration_are_not_the_ones_that_run
()
tests/lib/tools/test_session_runner.py:2126
Functiontest_tools_set_during_iteration_are_the_ones_that_are_closed
()
tests/lib/tools/test_session_runner.py:2132
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:2087
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:2057
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:2031
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:1987
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:5275
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:1683
Methodtest_tracer_provider_that_gives_no_tracer_leaves_the_client_without_spans
( self, sync: bool, respx_mock: MockRouter )
tests/test_open_telemetry.py:8146
Functiontest_tracer_provider_that_is_not_installed_leaves_a_client_without_spans
(new_client: NewClient)
tests/test_tracing.py:359
Functiontest_tracing_that_fails_does_not_change_the_requests
(sync: bool, failure: str)
tests/lib/environments/test_poller.py:374
Methodtest_tracing_that_fails_leaves_the_runner_as_it_is
(self, failure: str)
tests/lib/tools/test_open_telemetry.py:2342
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:2109
Functiontest_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_messages.py:948
Functiontest_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_beta_messages.py:1114
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:5417
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:764
Functiontest_turn_ends_when_the_server_writes_its_results_after_those_of_the_runner
( calls: tuple[Call, ...], input: list[Step], started: list[str], thread: str )
tests/lib/tools/test_session_runner.py:888
Methodtest_turn_that_failed_is_not_sent_with_the_next_turn
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:719
Methodtest_two_passed_credentials_raise
( self, credential_arguments: dict[str, Any], client_cls: type[Anthropic] | type[Async
tests/lib/test_credentials.py:4825
Functiontest_type_alias_type
()
tests/test_models.py:953
Functiontest_type_compat
()
tests/test_models.py:667
Functiontest_typeddict_with_omit_field
()
tests/test_models.py:1134
Functiontest_types_in_result_blocks_are_all_kept_or_lose_their_data
(blocks: tuple[Any, ...], kept: set[str])
tests/test_open_telemetry.py:8525
Methodtest_unary_attributes
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:895
Functiontest_unconfirmed_call_is_logged_once
(steps: list[Step], times: int, caplog: pytest.LogCaptureFixture)
tests/lib/tools/test_session_runner.py:741
Functiontest_unconfirmed_call_is_yielded_as_denied_unless_it_is_allowed
(result: str)
tests/lib/tools/test_session_runner.py:723
Functiontest_unconfirmed_call_runs_once_it_is_allowed
(call: Call, custom_permissions: bool, idle: list[Step])
tests/lib/tools/test_session_runner.py:713
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:2060
Methodtest_unforced_result_is_not_cached_after_a_concurrent_invalidate
(self)
tests/lib/test_credentials.py:4269
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:439
Functiontest_union_of_lists
()
tests/test_models.py:344
Functiontest_union_of_model_and_list_invalid_data
()
tests/test_models.py:376
Methodtest_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:1147
Methodtest_union_response_different_types
Union of objects with the same field name using a different type
tests/test_client.py:2901
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:168
Functiontest_unknown_event_type_passes_the_snapshot_through_forward_compat
()
tests/lib/sessions/test_accumulate.py:178
Methodtest_unknown_events_are_passed_through
(self, client: Anthropic, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:298
← previousnext →12,701–12,800 of 14,068, ranked by callers