MCPcopy Create free account

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

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

Methodtest_default_headers_omit_removes_per_request_sdk_header
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:167
Methodtest_default_headers_option
(self)
tests/test_client.py:530
Methodtest_default_headers_option
(self)
tests/test_client.py:1981
Methodtest_default_headers_replace_client_subclass_header_case_insensitively
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:62
Methodtest_default_headers_replace_sdk_header_case_insensitively
(self, client_cls: ClientClass)
tests/test_header_case_sensitivity.py:54
Methodtest_default_query_option
(self)
tests/test_client.py:651
Methodtest_default_query_option
(self)
tests/test_client.py:2104
Methodtest_default_stream_cls
(self, respx_mock: MockRouter, client: Anthropic)
tests/test_client.py:1252
Methodtest_default_stream_cls
(self, respx_mock: MockRouter, async_client: AsyncAnthropic)
tests/test_client.py:2720
Methodtest_defaults
(self)
tests/lib/test_credentials.py:184
Functiontest_defaults_index_to_0
()
tests/lib/sessions/test_accumulate.py:89
Functiontest_defer_tool_call_changes_nothing_for_a_call_that_has_run
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:490
Functiontest_defer_tool_call_does_nothing_before_the_loop_starts_because_there_is_no_reply_yet
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:474
Functiontest_defer_tool_call_lasts_for_one_reply
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:513
Functiontest_defer_tool_call_takes
(setup: SetupFactory, argument: str)
tests/lib/tools/test_runner_eager_tools.py:386
Functiontest_deferred_tool_calls_is_empty_once_generate_tool_call_response_has_run_the_held_calls
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:621
Functiontest_deferred_tool_calls_lists_a_held_call_from_when_its_block_has_finished_streaming
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:593
Functiontest_deferred_tool_calls_lists_the_held_calls_in_the_models_order_with_their_whole_input
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_tools.py:574
Functiontest_deferred_tool_calls_lists_the_held_calls_of_a_reply_that_is_cut_off
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:637
Functiontest_defers_the_calls_of_one_reply_only
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:458
Methodtest_defined_query
(self, query: str, names: tuple[str, ...], kept: str)
tests/test_open_telemetry.py:3470
Methodtest_delete
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:437
Methodtest_delete
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:1073
Methodtest_delete_directory
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:452
Methodtest_delete_directory
(self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:1088
Methodtest_delete_error_when_file_not_found
(self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool)
tests/lib/tools/memory_tools/test_filesystem.py:465
Methodtest_delete_error_when_file_not_found
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool )
tests/lib/tools/memory_tools/test_filesystem.py:1101
Methodtest_delete_has_the_id_of_what_it_deletes
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7560
Methodtest_delete_not_allow_deleting_memories_directory
( self, sync_local_filesystem_tool: BetaLocalFilesystemMemoryTool, path: str )
tests/lib/tools/memory_tools/test_filesystem.py:472
Methodtest_delete_not_allow_deleting_memories_directory
( self, async_local_filesystem_tool: BetaAsyncLocalFilesystemMemoryTool, path: str )
tests/lib/tools/memory_tools/test_filesystem.py:1110
Functiontest_denied_ask_call_does_not_block_idle_stop
A denied call counts as resolved in the reconcile idle accounting: history ends on an `end_turn` idle with the denied call unanswered (no resu
tests/lib/tools/test_session_runner.py:800
Functiontest_deny_after_end_turn_resumes_idle_stop
A `deny` that resolves the last held call must let the idle countdown resume: the session already went idle (`end_turn`) while the call was he
tests/lib/tools/test_session_runner.py:1127
Methodtest_deployment_bound_providers_implement_it
(self)
tests/lib/test_credentials.py:195
Functiontest_deprecated_alias
()
tests/test_models.py:486
Methodtest_deprecated_model_warning
(self, client: Anthropic)
tests/api_resources/test_messages.py:321
Methodtest_deprecated_model_warning
(self, async_client: AsyncAnthropic)
tests/api_resources/test_messages.py:763
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:324
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_messages.py:628
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:558
Methodtest_deprecated_model_warning_stream
(self, respx_mock: MockRouter)
tests/lib/streaming/test_beta_messages.py:812
Functiontest_derived_member_sets
()
tests/lib/tools/toolsets/test_registry.py:93
Methodtest_derived_url_without_workspace_constructs
(self)
tests/lib/test_google_cloud.py:297
Methodtest_derived_url_without_workspace_constructs
(self)
tests/lib/test_google_cloud.py:1486
Methodtest_derives_base_url_from_region
(self)
tests/lib/test_bedrock_mantle.py:80
Methodtest_derives_from_region
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_aws_auth.py:386
Methodtest_detection
(self, shape: Callable[..., Any])
tests/lib/test_credentials.py:3585
Functiontest_dict_of_union
()
tests/test_models.py:376
Methodtest_different_region
(self)
tests/lib/test_bedrock_mantle.py:87
Methodtest_different_service_name
Mantle uses a different service name for SigV4 signing.
tests/lib/test_aws_auth.py:455
Functiontest_directly_nested_model
()
tests/test_models.py:40
Functiontest_disabled_mode_never_deletes_but_still_syncs
( tmp_path: Path, clock: Clock, caplog: pytest.LogCaptureFixture )
tests/lib/tools/memory_sync/test_delete_discipline.py:87
Methodtest_disabled_open_telemetry_sends_no_trace_context
( self, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:4279
Methodtest_disabled_spans_call_nothing_of_opentelemetry
( self, sync: bool, how: str, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:8164
Methodtest_disabled_spans_leave_the_body_of_the_response_alone
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2449
Methodtest_disabled_traces_have_no_spans
( self, traces: Any, sync: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3853
Functiontest_discriminated_union_case
()
tests/test_models.py:957
Functiontest_discriminated_unions_invalid_data
()
tests/test_models.py:672
Functiontest_discriminated_unions_invalid_data_nested_unions
()
tests/test_models.py:728
Functiontest_discriminated_unions_invalid_data_uses_cache
()
tests/test_models.py:814
Functiontest_discriminated_unions_overlapping_discriminators_invalid_data
()
tests/test_models.py:794
Functiontest_discriminated_unions_pep604_uses_cache
()
tests/test_models.py:851
Functiontest_discriminated_unions_unknown_variant
()
tests/test_models.py:705
Functiontest_discriminated_unions_with_aliases_invalid_data
()
tests/test_models.py:761
Functiontest_dispatches_builtin_and_custom_tools_in_one_stream
A single stream carrying both an `agent.tool_use` and an `agent.custom_tool_use` dispatches both, each answered with its matching result-event
tests/lib/tools/test_session_runner.py:489
Functiontest_dispose_keeps_a_folder_that_fails_the_marker_check
Sync left the folder as found after a failed marker check; teardown must not then delete the files sync refused to touch.
tests/lib/tools/memory_sync/test_folder_trust.py:213
Functiontest_dispose_never_raises_when_a_store_root_is_replaced_by_a_file
The worker calls dispose() from its teardown: a store whose folder something replaced with a regular file must log and be skipped, not raise o
tests/lib/tools/memory_sync/test_folder_trust.py:230
Functiontest_dispose_tolerates_an_already_deleted_folder
(tmp_path: Path)
tests/lib/tools/memory_sync/test_folder_trust.py:203
Methodtest_docstring_parsing_simple
Test that simple docstrings still work correctly.
tests/lib/tools/test_functions.py:418
Methodtest_docstring_parsing_with_parameters
(self, docstring: str)
tests/lib/tools/test_functions.py:331
Functiontest_does_not_coerce_int
()
tests/test_models.py:458
Methodtest_does_not_duplicate_a_beta_already_on_the_request
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:673
Functiontest_does_not_mutate_parent_client
Building the sub-client must not touch the parent's auth state. Without this, a long-lived parent client could be silently re-credentialed ev
tests/lib/test_scoped_client.py:56
Functiontest_does_not_mutate_the_wire_delta_when_inserting_at_a_new_index
()
tests/lib/sessions/test_accumulate.py:129
Functiontest_does_not_run_a_call_that_confirm_declines_or_the_toolsets_calls_after_it
( setup: SetupFactory, family: str )
tests/lib/tools/test_runner_eager_toolsets.py:154
Functiontest_does_not_run_a_call_that_has_not_started_when_the_caller_leaves_the_loop
( setup: SetupFactory, )
tests/lib/tools/test_runner_eager_toolsets.py:282
Functiontest_does_not_run_a_held_call_once_one_of_its_toolsets_calls_has_failed
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_toolsets.py:299
Methodtest_does_not_tag_requests_it_passes_through
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:722
Functiontest_does_not_wait_for_the_reply_to_end
(setup: SetupFactory)
tests/lib/tools/test_runner_eager_tools.py:312
Methodtest_dot_segment_in_base_url_is_rejected
( self, name: str, dot: str, deferred: bool, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch
tests/lib/test_google_cloud.py:165
Methodtest_dot_segment_in_base_url_is_rejected
( self, name: str, dot: str, deferred: bool, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch
tests/lib/test_google_cloud.py:1354
Methodtest_dot_segment_in_organization_base_url_is_rejected
( self, project: str, location: str, respx_mock: MockRouter )
tests/lib/test_google_cloud.py:183
Methodtest_dot_segment_in_organization_base_url_is_rejected
( self, project: str, location: str, respx_mock: MockRouter )
tests/lib/test_google_cloud.py:1372
Functiontest_dot_segment_model_is_rejected
( model: str, stream: bool, beta: bool, sync: bool, respx_mock: MockRouter )
tests/lib/test_bedrock.py:259
Methodtest_dot_segment_project_id_or_region_is_rejected
( self, project_id: str, region: str, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:444
Methodtest_dot_segment_project_id_or_region_is_rejected
( self, project_id: str, region: str, beta: bool, respx_mock: MockRouter )
tests/lib/test_vertex.py:970
Functiontest_dot_segment_rejected
(template: str, kwargs: dict[str, Any])
tests/test_utils/test_path.py:96
Functiontest_double_nested_union
()
tests/test_models.py:396
Functiontest_download_paths_reach_the_model_only_through_an_exposing_file_policy
()
tests/lib/tools/toolsets/test_enforcement.py:276
Functiontest_download_paths_reach_the_model_only_through_an_exposing_file_policy_on_the_async_class
()
tests/lib/tools/toolsets/test_enforcement.py:549
Functiontest_download_paths_stay_hidden_on_the_async_class_without_a_file_policy
()
tests/lib/tools/toolsets/test_pipeline.py:1357
Functiontest_download_replaces_the_directory_of_an_earlier_skill_with_the_same_name
( tmp_path: Path, async_client: AsyncAnthropic, respx_mock: MockRouter )
tests/lib/tools/test_skills.py:516
Functiontest_download_retrieves_by_configured_version_and_downloads_by_returned_id
(tmp_path: Path)
tests/lib/tools/test_skills.py:437
Functiontest_driver_tool_error_is_the_error_text_and_any_other_exception_is_reported_too
()
tests/lib/tools/toolsets/test_pipeline.py:514
Functiontest_driver_values_are_validated_where_the_driver_builds_them_and_forwarded_as_built
()
tests/lib/tools/toolsets/test_pipeline.py:1137
Functiontest_driver_values_reach_the_block_as_built_on_the_async_class
()
tests/lib/tools/toolsets/test_pipeline.py:1490
Functiontest_dropped_decoder_lets_go_of_its_iterator_at_once
(sync: bool)
tests/decoders/test_jsonl.py:66
Methodtest_dropped_response_is_closed_at_once
(self, client: Anthropic, held: Held[Any, Any])
tests/test_streaming.py:218
Methodtest_dropped_response_is_closed_at_once
( self, async_client: AsyncAnthropic, held: AsyncHeld[Any, Any] )
tests/test_streaming.py:264
Methodtest_dropped_stream
(self, spans: Spans, respx_mock: MockRouter, reads: int)
tests/test_open_telemetry.py:1644
Methodtest_duck_typed_token_is_rejected
(self)
tests/lib/test_credentials.py:3124
← previousnext →6,001–6,100 of 12,431, ranked by callers