Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ functions
Functions
9,455 in github.com/anthropics/anthropic-sdk-python
⨍
Functions
9,455
◇
Types & classes
3,151
↳
Endpoints
25
Function
test_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
Method
test_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
Function
test_the_marker_never_syncs_in_either_direction
(tmp_path: Path, caplog: pytest.LogCaptureFixture)
tests/lib/tools/memory_sync/test_folder_trust.py:185
Function
test_the_module_exports_only_the_browser_only_errors
()
tests/lib/tools/toolsets/test_surface.py:89
Method
test_the_non_beta_messages_surface_passes_through
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:550
Function
test_the_option_is_not_sent_to_the_api
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:219
Function
test_the_option_needs_stream
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, stream: bool | None )
tests/lib/tools/test_runner_eager_tools.py:240
Function
test_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
Function
test_the_policy_is_called_once_per_navigate_with_the_url_as_written_before_the_driver_runs
()
tests/lib/tools/toolsets/test_enforcement.py:43
Function
test_the_refusal_names_the_keyboard_members_still_enabled_and_says_how_to_go_on
()
tests/lib/tools/toolsets/test_computer_interface.py:265
Function
test_the_refusals_are_exported_tool_errors
()
tests/lib/tools/toolsets/test_surface.py:72
Function
test_the_runnable_toolset_bases_are_exported_next_to_the_runner
()
tests/lib/tools/toolsets/test_runnable.py:230
Method
test_the_serving_start_opens_the_wire_with_the_primary_message_id
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1031
Function
test_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
Function
test_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
Function
test_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
Method
test_the_suppressed_starts_input_transformations_are_forwarded_on_the_terminal
( self, respx_mock: MockRouter )
tests/lib/test_refusal_fallback_streaming.py:1627
Method
test_the_suppressed_starts_list_is_forwarded_on_the_terminal
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1112
Function
test_the_toolset_path_stays_encodable_and_cuts_to_the_field_limit
()
tests/lib/tools/toolsets/test_runnable.py:156
Function
test_the_url_policy_runs_before_confirm
()
tests/lib/tools/toolsets/test_confirm.py:233
Function
test_throws_on_an_index_gap
()
tests/lib/sessions/test_accumulate.py:96
Function
test_throws_on_event_delta_with_no_prior_snapshot
()
tests/lib/sessions/test_accumulate.py:102
Function
test_to_dict
()
tests/test_models.py:507
Method
test_to_dict_method
(self)
tests/lib/tools/test_functions.py:171
Function
test_to_json
()
tests/test_models.py:575
Function
test_to_session_content_document_passthrough
()
tests/lib/tools/test_session_runner.py:1792
Function
test_to_session_content_image_passthrough
()
tests/lib/tools/test_session_runner.py:1783
Function
test_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
Function
test_to_session_content_text_passthrough
()
tests/lib/tools/test_session_runner.py:1778
Function
test_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
Method
test_token_endpoint_called_once_across_requests
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:2399
Function
test_token_provider_attaches_bearer
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:222
Function
test_token_provider_attaches_bearer_async
(respx_mock: MockRouter)
tests/lib/test_google_cloud.py:243
Function
test_token_provider_without_project_raises_on_first_request
()
tests/lib/test_google_cloud.py:608
Method
test_token_type_mismatch_does_not_retain_minted_token
(self)
tests/lib/test_credentials.py:4469
Function
test_too_many_positional_params
()
tests/test_required_args.py:8
Function
test_tool_addition_by_value_re_enables_removed_tool_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1181
Function
test_tool_addition_re_enables_removed_tool_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1134
Function
test_tool_addition_via_append_messages_re_enables_removed_tool_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1460
Method
test_tool_call_caching
(self, snapshot_client: Anthropic)
tests/lib/tools/test_runners.py:323
Method
test_tool_call_error
( self, snapshot_client: Anthropic, caplog: pytest.LogCaptureFixture, )
tests/lib/tools/test_runners.py:205
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_tool_changes_when_streaming
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:2193
Function
test_tool_configs_go_onto_the_entry_and_the_helper_tag_does_not
()
tests/lib/tools/toolsets/test_interface.py:199
Function
test_tool_configs_go_onto_the_entry_and_the_helper_tag_does_not
()
tests/lib/tools/toolsets/test_computer_interface.py:127
Function
test_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
Function
test_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
Function
test_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
Function
test_tool_removal_in_compaction_tool_changes_routes_call_down_unknown_tool_path_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:1579
Function
test_tool_removal_in_echoed_compaction_turn_routes_call_down_unknown_tool_path_sync
( respx_mock: MockRouter, )
tests/lib/tools/test_runners.py:1517
Function
test_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
Function
test_tool_removal_routes_call_down_unknown_tool_path_async
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1236
Function
test_tool_removal_routes_call_down_unknown_tool_path_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1066
Function
test_tool_removal_via_append_messages_between_turns_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1304
Function
test_tool_removal_via_append_messages_same_turn_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1359
Function
test_tool_removal_via_set_messages_params_sync
(respx_mock: MockRouter)
tests/lib/tools/test_runners.py:1404
Function
test_tool_result_builds_the_block_and_never_raises_a_tool_error
()
tests/lib/tools/toolsets/test_computer_pipeline.py:300
Function
test_tool_result_echoes_toolset_name_and_passes_the_tool_use_as_context
()
tests/lib/tools/toolsets/test_runnable.py:66
Function
test_tool_result_maps_the_pipeline_onto_a_result_block_and_passes_the_tool_use_along
()
tests/lib/tools/toolsets/test_pipeline.py:599
Function
test_tool_result_maps_tool_error_to_is_error_text_content
()
tests/lib/tools/toolsets/test_runnable.py:106
Function
test_tool_result_propagates_the_developer_error_class_only
()
tests/lib/tools/toolsets/test_runnable.py:168
Function
test_tool_result_rejects_block_of_another_family
(toolset_name: str | None)
tests/lib/tools/toolsets/test_runnable.py:184
Function
test_tool_result_reports_any_other_exception_to_the_model
()
tests/lib/tools/toolsets/test_runnable.py:161
Function
test_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
Function
test_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
Function
test_tool_runner_method_definition_in_sync
(sync: bool)
tests/lib/streaming/test_beta_messages.py:947
Function
test_tool_runner_method_in_sync
(sync: bool, client: Anthropic, async_client: AsyncAnthropic)
tests/lib/tools/test_runners.py:2440
Function
test_tool_runner_method_returns_session_tool_runner
()
tests/lib/tools/test_session_runner.py:1717
Function
test_tool_runner_rejects_a_function_tool_of_the_other_flavour
( client: Anthropic, async_client: AsyncAnthropic )
tests/lib/tools/toolsets/test_runner.py:762
Function
test_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
Function
test_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
Function
test_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
Method
test_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:292
Method
test_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:516
Method
test_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:410
Method
test_tool_use
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:710
Method
test_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:339
Method
test_tool_use_caller_omitted
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:566
Method
test_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:325
Method
test_tool_use_invalid_json
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:551
Method
test_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:352
Method
test_tool_use_round_trip
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:433
Function
test_tools_are_indexed_by_name_and_toolsets_by_family
(navigate: BetaFunctionTool[Any])
tests/lib/tools/toolsets/test_runnable.py:58
Function
test_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
Function
test_top_level_file_array
()
tests/test_extract_files.py:38
Function
test_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_messages.py:681
Function
test_tracks_tool_input_type_alias_is_up_to_date
()
tests/lib/streaming/test_beta_messages.py:959
Method
test_trailing_strings_mode_header
Test behavior differences with and without the beta header for JSON parsing.
tests/lib/streaming/test_partial_json.py:14
Method
test_transport_error_does_not_retain_assertion
(self)
tests/lib/test_credentials.py:4499
Function
test_tuple_input
()
tests/test_files.py:20
Function
test_type_alias_type
()
tests/test_models.py:919
Function
test_type_compat
()
tests/test_models.py:633
Method
test_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
Method
test_unforced_result_is_not_cached_after_a_concurrent_invalidate
(self)
tests/lib/test_credentials.py:3666
Function
test_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
Function
test_unimplemented_members_are_sent_as_disabled_and_implemented_ones_left_to_the_api
()
tests/lib/tools/toolsets/test_interface.py:87
← previous
next →
8,501–8,600 of 9,455, ranked by callers