MCPcopy Create free account

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

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

Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:234
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:359
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:491
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:576
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:661
Methodtelemetry_destinations
(self)
src/anthropic/resources/beta/organization/organization.py:746
Functiontemp_directory
()
tests/lib/tools/memory_tools/test_filesystem.py:29
Methodtest
Send one test span, named `anthropic.test`, to the destination with its registered headers, once and without retries, and report the
src/anthropic/resources/beta/organization/telemetry_destinations/telemetry_destinations.py:1027
Methodtest_401_invalidates_and_retries_with_new_token
A provider that takes no arguments still works, on the first call and on the retry after a 401.
tests/lib/test_credentials.py:3663
Methodtest_401_invalidates_cache_and_retries_once
On 401 we invalidate the cache and retry the current request once with a freshly minted token. A second 401 is not retried (single-shot
tests/lib/test_credentials.py:2760
Methodtest_401_retry_forces_refresh_while_another_request_is_fetching
A 401 retry gets a new token even when another request's non-forced provider call returns first.
tests/lib/test_credentials.py:2815
Methodtest_401_retry_is_single_shot
Two consecutive 401s → exactly one retry, then the error surfaces even with max_retries > 1 remaining.
tests/lib/test_credentials.py:2797
Methodtest_401_retry_passes_force_refresh
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3681
Methodtest_401_with_workspace_id_set_omits_workspace_hint
When workspace_id is already set the multi-workspace fix is noise, but the federation-rule lead-in and Console pointer still apply.
tests/lib/test_credentials.py:1367
Methodtest_401_without_workspace_id_includes_hint
A failed exchange with no workspace_id should surface all three hint parts: the federation-rule lead-in, the multi-workspace fix, and the
tests/lib/test_credentials.py:1347
Methodtest_403_raises
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1307
Methodtest_503_raises
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:1320
Methodtest_a_400_on_the_prefill_form_retries_the_same_hop_without_the_partial
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:447
Functiontest_a_bad_field_is_refused_without_echoing_the_value
()
tests/lib/tools/toolsets/test_computer_pipeline.py:158
Functiontest_a_bare_string_from_navigate_or_screenshot_reaches_the_model_as_an_error_naming_its_type
( flavour: type[FakeBrowser] | type[AsyncFakeBrowser], tool: str, given: dict[str, Any] )
tests/lib/tools/toolsets/test_pipeline.py:800
Functiontest_a_binary_local_file_never_blocks_the_other_files
The store is utf-8-restricted, so a binary file the agent drops in the folder is refused at read — warned once and skipped until it changes —
tests/lib/tools/memory_sync/test_memory_sync.py:226
Methodtest_a_body_read_the_wrong_way_can_still_be_read_the_right_way
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1515
Functiontest_a_broken_store_fails_the_whole_download
A store that cannot be materialised fails the download outright. A session served without a folder its system prompt names would run with amne
tests/lib/tools/memory_sync/test_memory_sync.py:335
Functiontest_a_browser_state_hook_that_raises_is_a_developer_error
()
tests/lib/tools/toolsets/test_pipeline.py:529
Functiontest_a_call_already_in_the_turn_gets_the_input_error_of_the_tool_added_under_its_name
( sync: bool, client: Anthropic, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_runners.py:1922
Functiontest_a_call_named_after_the_toolset_stops_the_toolsets_later_calls_in_the_reply
( respx_mock: MockRouter, client: Anthropic, async_client: AsyncAnthropic, flavour: str )
tests/lib/tools/toolsets/test_computer_runner.py:251
Functiontest_a_call_named_after_the_toolset_without_toolset_name_gets_an_error_that_says_what_is_wrong
( respx_mock: MockRouter, client: Anthropic )
tests/lib/tools/toolsets/test_computer_runner.py:182
Functiontest_a_call_named_like_a_toolset_with_no_toolset_name_holds_that_toolsets_later_calls
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:315
Functiontest_a_call_naming_a_tab_the_last_report_did_not_list_goes_to_the_driver
()
tests/lib/tools/toolsets/test_enforcement.py:179
Methodtest_a_call_that_fails_before_it_sends_a_request_has_no_url
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3570
Functiontest_a_call_that_has_run_does_not_answer_a_later_reply_that_reuses_its_id
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:773
Functiontest_a_call_that_has_run_keeps_its_result_after_add_tools_replaces_its_tool
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:737
Functiontest_a_call_that_has_run_keeps_its_result_after_remove_tools_which_refuses_a_call_that_has_not
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:719
Methodtest_a_call_that_is_sent_once_has_no_resend_count
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3511
Functiontest_a_call_to_a_tool_removed_earlier_in_the_conversation_gets_a_not_found_result
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:752
Functiontest_a_call_to_a_toolset_the_runner_does_not_have_is_answered_as_not_found
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:355
Methodtest_a_call_whose_retries_all_fail_counts_them
( self, sync: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:3528
Methodtest_a_cancelled_send_takes_the_turn_back
(self, respx_mock: MockRouter)
tests/lib/threads/test_async_beta_threads.py:414
Methodtest_a_capacity_failed_fallback_request_stamps_the_recommended_model
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:516
Methodtest_a_chain_of_pre_stream_declines_queues_every_seam_in_order
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback_streaming.py:1108
Methodtest_a_change_during_the_turn_that_creates_the_thread_of_what_that_turn_gave_is_refused_on_the_next_turn
( self, respx_mock: MockRouter, override: dict[str, Any], change: Callable[[BetaMessageThread[Any]], N
tests/lib/threads/test_beta_threads.py:2168
Methodtest_a_change_during_the_turn_that_creates_the_thread_of_what_that_turn_gave_is_refused_on_the_next_turn
( self, respx_mock: MockRouter, override: dict[str, Any], change: Callable[[BetaAsyncMessageThread[Any
tests/lib/threads/test_async_beta_threads.py:679
Methodtest_a_change_of_another_field_during_the_turn_that_creates_the_thread_keeps_what_that_turn_gave
( self, respx_mock: MockRouter, change: Callable[[BetaMessageThread[Any]], None],
tests/lib/threads/test_beta_threads.py:2185
Methodtest_a_change_of_another_field_during_the_turn_that_creates_the_thread_keeps_what_that_turn_gave
( self, respx_mock: MockRouter, change: Callable[[BetaAsyncMessageThread[Any]], None],
tests/lib/threads/test_async_beta_threads.py:696
Methodtest_a_changed_pinned_field_is_sent_on_continue_for_the_server_to_reject
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:2014
Functiontest_a_client_retry_refused_because_the_first_attempt_landed_is_remembered
The client's own retry re-sends the update with the old precondition; the first attempt already moved the server, so the retry gets a 409.
tests/lib/tools/memory_sync/test_lost_response.py:109
Methodtest_a_client_without_spans_reads_back_an_option_without_them
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4601
Functiontest_a_closed_async_toolset_answers_no_member_call
()
tests/lib/tools/toolsets/test_pipeline.py:1168
Functiontest_a_closed_toolset_answers_no_member_call
()
tests/lib/tools/toolsets/test_pipeline.py:1159
Functiontest_a_closed_toolset_refuses_calls_and_a_member_cannot_nest_call
()
tests/lib/tools/toolsets/test_computer_pipeline.py:471
Methodtest_a_compaction_request_is_a_child_of_the_tool_runner_span
( self, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:1235
Functiontest_a_computer_and_a_browser_toolset_serve_one_request_by_family
( respx_mock: MockRouter, client: Anthropic )
tests/lib/tools/toolsets/test_computer_runner.py:143
Functiontest_a_confirm_answer_other_than_true_declines_the_call
()
tests/lib/tools/toolsets/test_confirm.py:199
Functiontest_a_confirm_that_raises_refuses_the_call_and_a_tool_error_is_relayed
()
tests/lib/tools/toolsets/test_confirm.py:187
Functiontest_a_confirm_that_raises_refuses_the_call_and_an_answer_other_than_true_declines
()
tests/lib/tools/toolsets/test_computer_pipeline.py:347
Methodtest_a_copy_of_a_platform_client_that_is_given_none_keeps_the_clients_option
(self, spans: Spans)
tests/test_open_telemetry.py:4787
Methodtest_a_copy_that_changes_one_field_starts_from_the_option_read_from_the_client
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4494
Methodtest_a_copy_that_is_given_none_keeps_the_clients_option
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4772
Methodtest_a_copy_that_is_not_given_the_option_has_the_clients
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4477
Functiontest_a_dangling_symlink_in_a_root_is_judged_by_its_target_and_a_cycle_resolves_as_written
A symlink under a root that names a missing file elsewhere resolves to that target, so the root check refuses it; a symlink cycle has no target an
tests/lib/tools/toolsets/test_security.py:107
Functiontest_a_deleted_folder_issues_no_deletes_and_is_rebuilt
rm -rf of the whole folder between syncs: the next sync must not read the emptiness as "the agent deleted everything" and wipe the server.
tests/lib/tools/memory_sync/test_folder_trust.py:41
Functiontest_a_deletion_made_after_a_lost_upload_response_still_reaches_the_server
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:134
Functiontest_a_dismissed_dialog_is_a_line_of_text_on_the_async_class
()
tests/lib/tools/toolsets/test_pipeline.py:1438
Functiontest_a_dismissed_dialog_is_a_line_of_text_with_its_message_capped
()
tests/lib/tools/toolsets/test_pipeline.py:814
Functiontest_a_download_change_without_a_url_is_the_drivers_bug
()
tests/lib/tools/toolsets/test_enforcement.py:198
Functiontest_a_download_path_is_exposed_on_the_async_class_only_when_the_file_policy_answers_true
()
tests/lib/tools/toolsets/test_pipeline.py:1383
Functiontest_a_download_path_is_exposed_only_when_the_file_policy_answers_true
()
tests/lib/tools/toolsets/test_pipeline.py:230
Functiontest_a_download_path_outside_the_download_dir_is_hidden_without_touching_the_filesystem
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/toolsets/test_security.py:157
Functiontest_a_driver_error_reaches_the_model_as_text_and_a_refusal_is_relayed
()
tests/lib/tools/toolsets/test_computer_pipeline.py:224
Functiontest_a_driver_exception_reads_as_its_type_and_message
(raised: Exception, expected: str)
tests/lib/tools/toolsets/test_computer_pipeline.py:291
Functiontest_a_drivers_error_text_reaches_the_model_as_written_and_cut_to_the_field_limit
()
tests/lib/tools/toolsets/test_enforcement.py:372
Functiontest_a_duration_is_not_bounded_by_the_sdk
()
tests/lib/tools/toolsets/test_pipeline.py:153
Methodtest_a_failed_fallback_request_replays_the_refusal_and_logs_an_error
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:477
Functiontest_a_failed_fetch_keeps_the_old_state_and_the_next_sync_retries
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:110
Functiontest_a_failed_local_removal_never_re_uploads_the_deleted_memory
The server deleted the memory; removing our copy fails. The baseline must stay put — dropping it would read the leftover file as a new local file
tests/lib/tools/memory_sync/test_memory_sync.py:593
Functiontest_a_failed_member_stops_the_rest_of_the_turns_members_but_not_function_tools_async
( async_client: AsyncAnthropic, respx_mock: MockRouter, async_navigate: BetaAsyncFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:557
Functiontest_a_failed_member_stops_the_rest_of_the_turns_members_but_not_function_tools_sync
( client: Anthropic, respx_mock: MockRouter, navigate: BetaFunctionTool[Any] )
tests/lib/tools/toolsets/test_runner.py:425
Functiontest_a_failed_pull_leaves_the_old_file_and_retries
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/lib/tools/memory_sync/test_memory_sync.py:568
Functiontest_a_failed_re_read_does_not_resurrect_a_server_deleted_memory
The re-read before removal can fail (a transient I/O error). That must mean "retry next sync", not "file gone": dropping the entry would make
tests/lib/tools/memory_sync/test_keep_only_copy.py:160
Methodtest_a_failed_request_for_a_malformed_id_has_the_id_and_the_path
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7385
Functiontest_a_failed_upload_keeps_the_local_edit_and_retries
(tmp_path: Path)
tests/lib/tools/memory_sync/test_memory_sync.py:546
Methodtest_a_failing_propagator_sends_the_request_without_a_trace_context
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:8033
Functiontest_a_failure_halts_the_later_computer_actions_of_the_turn_with_the_computer_wording
( respx_mock: MockRouter, client: Anthropic )
tests/lib/tools/toolsets/test_computer_runner.py:107
Methodtest_a_failure_to_record_attributes_does_not_fail_the_api_call
( self, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:1161
Methodtest_a_fallback_request_is_a_resend_and_keeps_the_first_url
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3543
Methodtest_a_fallback_request_that_raises_replays_the_refusal
( self, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/lib/test_refusal_fallback_streaming.py:539
Methodtest_a_field_given_as_omit_is_left_out
(self, respx_mock: MockRouter)
tests/lib/threads/test_beta_threads.py:1941
Functiontest_a_file_already_holding_the_remote_content_is_adopted_without_a_fetch
(tmp_path: Path)
tests/lib/tools/memory_sync/test_two_pass.py:59
Functiontest_a_file_policy_hook_may_return_any_iterable
()
tests/lib/tools/toolsets/test_enforcement.py:265
Functiontest_a_file_policy_hook_may_return_any_iterable_on_the_async_class
()
tests/lib/tools/toolsets/test_enforcement.py:536
Functiontest_a_file_policy_that_fails_refuses_the_upload_and_the_call_is_still_observed
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:341
Functiontest_a_file_policy_that_fails_refuses_the_upload_on_the_async_class
(tmp_path: Path)
tests/lib/tools/toolsets/test_enforcement.py:500
Functiontest_a_file_that_reappears_is_not_deleted_and_leaves_pending
(tmp_path: Path, clock: Clock)
tests/lib/tools/memory_sync/test_delete_discipline.py:65
Functiontest_a_flush_cut_off_part_way_logs_how_many_files_it_had_not_uploaded
( tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_final_flush.py:128
Functiontest_a_folder_destroyed_mid_sync_sends_no_deletes
The directory scan saw an intact folder, then the folder vanished while the server listing was in flight: the re-check just before the delete
tests/lib/tools/memory_sync/test_delete_discipline.py:152
Functiontest_a_folder_wiped_after_a_lost_create_response_is_rebuilt_not_read_as_deletions
(tmp_path: Path)
tests/lib/tools/memory_sync/test_lost_response.py:153
Functiontest_a_folder_wiped_again_mid_recovery_is_rebuilt_by_the_next_sync
A re-download writes the marker first and the memories after it; a second rm -rf between those writes must not leave memories on disk without
tests/lib/tools/memory_sync/test_folder_trust.py:331
Functiontest_a_folder_wiped_while_a_locally_deleted_memory_is_being_restored_is_rebuilt
A file deleted locally but changed on the server is restored by the next sync; an rm -rf that lands while that restore is downloading must lea
tests/lib/tools/memory_sync/test_folder_trust.py:300
Functiontest_a_folder_wiped_while_a_pull_is_in_flight_is_rebuilt_not_distrusted
rm -rf lands between a sync's scan and its content write: the write must not bring the folder back without its marker, or every later sync rea
tests/lib/tools/memory_sync/test_folder_trust.py:266
Functiontest_a_function_call_that_the_caller_defers_holds_no_other_call
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:233
← previousnext →5,001–5,100 of 12,431, ranked by callers