MCPcopy Create free account

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

Functions9,455 in github.com/anthropics/anthropic-sdk-python

Functiontest_the_lease_is_heartbeated_until_the_memory_teardown_is_done
The lease must not lapse while the final sync, flush and dispose still hold the folder.
tests/lib/tools/memory_sync/test_e2e_memory.py:552
Methodtest_the_list_is_forwarded_on_a_degraded_chains_replayed_refusal
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:1135
Functiontest_the_marker_never_syncs_in_either_direction
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/lib/tools/memory_sync/test_folder_trust.py:185
Functiontest_the_module_exports_only_the_browser_only_errors
()
tests/lib/tools/toolsets/test_surface.py:89
Methodtest_the_non_beta_messages_surface_passes_through
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:550
Functiontest_the_option_is_not_sent_to_the_api
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:219
Functiontest_the_option_needs_stream
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, stream: bool | None )
tests/lib/tools/test_runner_eager_tools.py:240
Functiontest_the_per_pass_cap_spreads_deletes_over_passes
( tmp_path: Path, clock: Clock, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_delete_discipline.py:112
Functiontest_the_policy_is_called_once_per_navigate_with_the_url_as_written_before_the_driver_runs
()
tests/lib/tools/toolsets/test_enforcement.py:43
Functiontest_the_refusal_names_the_keyboard_members_still_enabled_and_says_how_to_go_on
()
tests/lib/tools/toolsets/test_computer_interface.py:265
Functiontest_the_refusals_are_exported_tool_errors
()
tests/lib/tools/toolsets/test_surface.py:72
Functiontest_the_runnable_toolset_bases_are_exported_next_to_the_runner
()
tests/lib/tools/toolsets/test_runnable.py:230
Methodtest_the_serving_start_opens_the_wire_with_the_primary_message_id
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1031
Functiontest_the_shutdown_flush_pushes_a_revert_made_after_a_lost_upload_response
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:174
Functiontest_the_shutdown_flush_pushes_an_edit_made_after_a_lost_upload_response
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:207
Functiontest_the_shutdown_flush_sends_nothing_for_a_revert_whose_upload_never_landed
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:190
Methodtest_the_suppressed_starts_input_transformations_are_forwarded_on_the_terminal
( self, respx_mock: MockRouter )
tests/lib/test_refusal_fallback_streaming.py:1627
Methodtest_the_suppressed_starts_list_is_forwarded_on_the_terminal
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1112
Functiontest_the_toolset_path_stays_encodable_and_cuts_to_the_field_limit
()
tests/lib/tools/toolsets/test_runnable.py:156
Functiontest_the_url_policy_runs_before_confirm
()
tests/lib/tools/toolsets/test_confirm.py:233
Functiontest_throws_on_an_index_gap
()
tests/lib/sessions/test_accumulate.py:96
Functiontest_throws_on_event_delta_with_no_prior_snapshot
()
tests/lib/sessions/test_accumulate.py:102
Functiontest_to_dict
()
tests/test_models.py:507
Methodtest_to_dict_method
(self)
tests/lib/tools/test_functions.py:171
Functiontest_to_json
()
tests/test_models.py:575
Functiontest_to_session_content_document_passthrough
()
tests/lib/tools/test_session_runner.py:1792
Functiontest_to_session_content_image_passthrough
()
tests/lib/tools/test_session_runner.py:1783
Functiontest_to_session_content_search_result_passthrough
A `search_result` block — valid on the Sessions content union — passes through structurally so the model retains the typed citation metadata.
tests/lib/tools/test_session_runner.py:1802
Functiontest_to_session_content_text_passthrough
()
tests/lib/tools/test_session_runner.py:1778
Functiontest_to_session_content_tool_reference_stringified
`tool_reference` blocks have no Sessions equivalent and must be stringified.
tests/lib/tools/test_session_runner.py:1816
Methodtest_token_endpoint_called_once_across_requests
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2399
Functiontest_token_provider_attaches_bearer
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:222
Functiontest_token_provider_attaches_bearer_async
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:243
Functiontest_token_provider_without_project_raises_on_first_request
()
tests/lib/test_google_cloud.py:608
Methodtest_token_type_mismatch_does_not_retain_minted_token
(self)
tests/lib/test_credentials.py:4469
Functiontest_too_many_positional_params
()
tests/test_required_args.py:8
Functiontest_tool_addition_by_value_re_enables_removed_tool_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1181
Functiontest_tool_addition_re_enables_removed_tool_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1134
Functiontest_tool_addition_via_append_messages_re_enables_removed_tool_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1460
Methodtest_tool_call_caching
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:323
Methodtest_tool_call_error
( self, snapshot_client: Anthropic, caplog: pytest.LogCaptureFixture, )
tests/lib/tools/test_runners.py:205
Functiontest_tool_changes_go_out_with_the_compaction_request_and_follow_its_response
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:2078
Functiontest_tool_changes_in_one_turn_are_sent_together_in_call_order
( sync: bool, order: str, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1841
Functiontest_tool_changes_made_before_the_first_request_follow_a_trailing_assistant_message
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1739
Functiontest_tool_changes_made_during_a_paused_turn_are_sent_one_request_later
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:2041
Functiontest_tool_changes_pending_when_the_run_ends_are_not_sent
( sync: bool, ended_by: str, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:2160
Functiontest_tool_changes_when_streaming
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:2193
Functiontest_tool_configs_go_onto_the_entry_and_the_helper_tag_does_not
()
tests/lib/tools/toolsets/test_interface.py:199
Functiontest_tool_configs_go_onto_the_entry_and_the_helper_tag_does_not
()
tests/lib/tools/toolsets/test_computer_interface.py:127
Functiontest_tool_error_content_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:2305
Functiontest_tool_error_preserves_structured_content
`ToolError` raised by the tool preserves its structured content rather than being stringified through `repr(e)`.
tests/lib/tools/test_session_runner.py:1535
Functiontest_tool_error_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:2262
Functiontest_tool_removal_in_compaction_tool_changes_routes_call_down_unknown_tool_path_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:1579
Functiontest_tool_removal_in_echoed_compaction_turn_routes_call_down_unknown_tool_path_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:1517
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:459
Functiontest_tool_removal_routes_call_down_unknown_tool_path_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1236
Functiontest_tool_removal_routes_call_down_unknown_tool_path_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1066
Functiontest_tool_removal_via_append_messages_between_turns_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1304
Functiontest_tool_removal_via_append_messages_same_turn_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1359
Functiontest_tool_removal_via_set_messages_params_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1404
Functiontest_tool_result_builds_the_block_and_never_raises_a_tool_error
()
tests/lib/tools/toolsets/test_computer_pipeline.py:300
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:2346
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:792
Functiontest_tool_runner_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:947
Functiontest_tool_runner_method_in_sync
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/lib/tools/test_runners.py:2440
Functiontest_tool_runner_method_returns_session_tool_runner
()
tests/lib/tools/test_session_runner.py:1717
Functiontest_tool_runner_rejects_a_function_tool_of_the_other_flavour
( client: Anthropic, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_runner.py:762
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:1455
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:1518
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:1496
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:292
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:516
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:410
Methodtest_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:710
Methodtest_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:339
Methodtest_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:566
Methodtest_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:325
Methodtest_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:551
Methodtest_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:352
Methodtest_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:433
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 )
tests/lib/tools/toolsets/test_browser_runner.py:468
Functiontest_top_level_file_array
()
tests/test_extract_files.py:38
Functiontest_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_messages.py:681
Functiontest_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_beta_messages.py:959
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:4499
Functiontest_tuple_input
()
tests/test_files.py:20
Functiontest_type_alias_type
()
tests/test_models.py:919
Functiontest_type_compat
()
tests/test_models.py:633
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:1995
Methodtest_unforced_result_is_not_cached_after_a_concurrent_invalidate
(self)
tests/lib/test_credentials.py:3666
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:1068
Functiontest_unimplemented_members_are_sent_as_disabled_and_implemented_ones_left_to_the_api
()
tests/lib/tools/toolsets/test_interface.py:87
← previousnext →8,501–8,600 of 9,455, ranked by callers