MCPcopy Create free account

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

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

Functiontest_async_confirm_may_be_a_coroutine_or_a_plain_function
()
tests/lib/tools/toolsets/test_computer_pipeline.py:395
Functiontest_async_confirm_may_be_a_coroutine_or_a_plain_function
()
tests/lib/tools/toolsets/test_confirm.py:250
Methodtest_async_context_manager_requires_input_schema
(self)
tests/lib/tools/test_functions.py:551
Methodtest_async_context_manager_tool_lazy_enter_and_cleanup
(self)
tests/lib/tools/test_functions.py:496
Methodtest_async_copy_parity
(self)
tests/lib/test_google_cloud.py:1045
Methodtest_async_copy_with_different_base_url_exchanges_per_client
Async mirror of the sync test: `copy(base_url=...)` leaves the parent exchanging at, and presenting tokens from, its own host.
tests/lib/test_credentials.py:3771
Methodtest_async_copy_with_same_base_url_shares_token_exchange
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3786
Functiontest_async_copy_x_stainless_helper_header_appends
()
tests/lib/test_bedrock.py:733
Methodtest_async_copy_x_stainless_helper_header_appends
(self)
tests/lib/test_bedrock_mantle.py:413
Functiontest_async_count_tokens_accepts_a_type
(async_client: AsyncAnthropic, respx_mock: MockRouter)
tests/lib/test_output_format_helpers.py:92
Functiontest_async_count_tokens_rejects_a_schema_dict
(async_client: AsyncAnthropic)
tests/lib/test_output_format_helpers.py:104
Methodtest_async_create
( self, message: dict[str, Any], content_mode: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7785
Methodtest_async_disabled_spans_leave_the_body_of_the_response_alone
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2462
Methodtest_async_dropped_stream
(self, spans: Spans, caplog: pytest.LogCaptureFixture, reads: int)
tests/test_open_telemetry.py:1662
Methodtest_async_each_kind_of_page
(self, call: ResourceList, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7702
Methodtest_async_each_resource
(self, call: ResourceCall, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7661
Methodtest_async_elapsed_of_a_response_whose_body_ends_the_span
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1631
Methodtest_async_event_stream_ended_by_the_server
( self, spans: Spans, respx_mock: MockRouter, raw: bool )
tests/test_open_telemetry.py:2316
Methodtest_async_events_read_after_the_response_was_closed_leave_the_span_alone
( self, spans: Spans, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/test_open_telemetry.py:1498
Functiontest_async_execute_awaits_async_members_and_a_sync_one_is_a_contract_error
()
tests/lib/tools/toolsets/test_interface.py:254
Functiontest_async_execute_awaits_async_members_and_a_sync_one_is_a_contract_error
()
tests/lib/tools/toolsets/test_computer_interface.py:168
Functiontest_async_execute_dispatches_to_the_member_method_and_refuses_unknown_names
()
tests/lib/tools/toolsets/test_interface.py:337
Functiontest_async_file_without_a_name_is_sent_unnamed
()
tests/test_files.py:95
Methodtest_async_foundry_key_wins_over_default_header
(self, respx_mock: MockRouter)
tests/test_middleware.py:2328
Functiontest_async_has_all_resources
()
tests/lib/test_aws.py:407
Methodtest_async_http_base_url_that_only_starts_like_loopback_gets_no_request
( self, respx_mock: MockRouter, base_url: str )
tests/lib/test_credentials.py:3751
Methodtest_async_http_loopback_base_url_gets_the_exchange
( self, respx_mock: MockRouter, base_url: str, host: str )
tests/lib/test_credentials.py:3761
Methodtest_async_ids_in_the_path
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:7344
Functiontest_async_keeps_the_host_and_headers_of_the_parents_credential
( tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch )
tests/lib/test_scoped_client.py:198
Methodtest_async_late_401_for_replaced_token_does_not_refresh_again
Async mirror of the sync test.
tests/lib/test_credentials.py:3863
Methodtest_async_late_401_forces_refresh_for_per_request_tokens
Async mirror of the sync test.
tests/lib/test_credentials.py:3890
Methodtest_async_lib_clients_copy_inherits_replaces_and_clears
(self)
tests/test_middleware.py:2490
Methodtest_async_mantle_middleware_sees_canonical_request
(self, respx_mock: MockRouter)
tests/test_middleware.py:2409
Methodtest_async_matches_the_first_party_client
(self)
tests/lib/test_bedrock_mantle.py:265
Methodtest_async_max_retries_zero_honored_on_401
max_retries=0 means a 401 surfaces immediately — no implicit retry.
tests/lib/test_credentials.py:3993
Methodtest_async_mcp_tool_to_dict
(self)
tests/lib/tools/test_mcp_tool.py:327
Methodtest_async_no_x_api_key_with_azure_ad_token_provider
(self, monkeypatch: pytest.MonkeyPatch)
tests/lib/test_azure.py:269
Methodtest_async_parse_converts_pydantic
Verify async .parse() converts Pydantic models to output_config.format.
tests/api_resources/beta/test_output_format_conversion.py:321
Functiontest_async_pathlib_in_file_tuple
()
tests/test_files.py:56
Functiontest_async_pathlib_includes_file_name
()
tests/test_files.py:27
Methodtest_async_per_request_omit_keeps_the_client_default
( self, async_client: AsyncAnthropicBedrockMantle, respx_mock: MockRouter )
tests/lib/test_bedrock_mantle.py:932
Functiontest_async_pipeline_parity
()
tests/lib/tools/toolsets/test_pipeline.py:1058
Methodtest_async_raw_response_ends_the_span_with_its_body
( self, spans: Spans, respx_mock: MockRouter, caplog: pytest.LogCaptureFixture )
tests/test_open_telemetry.py:1209
Methodtest_async_raw_response_whose_body_is_not_read_to_the_end_has_no_status
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1253
Methodtest_async_raw_response_whose_connection_is_lost_in_the_body
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1603
Methodtest_async_raw_response_whose_events_the_application_reads_itself
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1548
Methodtest_async_request_body_that_cannot_be_prepared_has_no_span
( self, spans: Spans, tmp_path: pathlib.Path )
tests/test_open_telemetry.py:1016
Functiontest_async_response_basemodel_request_id
(client: Anthropic)
tests/test_response.py:181
Functiontest_async_response_parse_annotated_type
(async_client: AsyncAnthropic)
tests/test_response.py:219
Functiontest_async_response_parse_bool
(client: AsyncAnthropic, content: str, expected: bool)
tests/test_response.py:272
Functiontest_async_response_parse_custom_model
(async_client: AsyncAnthropic)
tests/test_response.py:144
Functiontest_async_response_parse_custom_stream
(async_client: AsyncAnthropic)
tests/test_response.py:109
Functiontest_async_response_parse_expect_model_union_non_json_content
(async_client: AsyncAnthropic)
tests/test_response.py:308
Functiontest_async_response_parse_json_content_type_case_insensitive
(async_client: AsyncAnthropic)
tests/test_response.py:374
Functiontest_async_response_parse_mismatched_basemodel
(async_client: AsyncAnthropic)
tests/test_response.py:77
Functiontest_async_response_parse_pep604_union
(async_client: AsyncAnthropic)
tests/test_response.py:339
Methodtest_async_runner
(self, spans: Spans, respx_mock: MockRouter)
tests/lib/tools/test_open_telemetry.py:1844
Methodtest_async_runners_that_are_open_when_the_event_loop_ends_have_no_status
( self, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/lib/tools/test_open_telemetry.py:1391
Methodtest_async_sampling_fields_that_the_sdk_does_not_model_have_no_attribute
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:964
Methodtest_async_sent_in_body_instead_of_header
( self, send: AsyncSendMessage, async_client: AsyncAnthropicBedrockMantle, respx_mock: MockRouter
tests/lib/test_bedrock_mantle.py:706
Methodtest_async_session_create_has_its_agent_model_and_environment
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7527
Methodtest_async_static_token
(self, respx_mock: MockRouter)
tests/lib/test_credentials.py:3710
Methodtest_async_stop_sequences
(self, beta: bool, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:6727
Methodtest_async_stop_sequences_alone_over_the_bound_are_removed_whole
( self, over: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:6834
Methodtest_async_stream_and_parse_helpers_have_the_route
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:3119
Methodtest_async_stream_closed_after_message_stop_before_the_end_of_the_body
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1782
Methodtest_async_stream_closed_before_the_first_read
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:1966
Methodtest_async_stream_ended_after_message_delta_has_what_message_delta_gave
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2119
Methodtest_async_stream_ended_before_message_delta_has_nothing_that_message_delta_gives
( self, beta: bool, helper: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2154
Methodtest_async_stream_ended_by_the_server_before_message_stop
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2222
Methodtest_async_stream_helper_closed_early_has_the_partial_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5819
Methodtest_async_stream_helper_content_comes_from_its_snapshot
( self, beta: bool, spans: Spans, respx_mock: MockRouter, monkeypatch: pytest.MonkeyPatch )
tests/test_open_telemetry.py:5660
Methodtest_async_stream_helper_error_event_has_the_partial_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5756
Methodtest_async_stream_helper_stream_ended_by_the_server_has_the_partial_output
( self, beta: bool, events: list[dict[str, Any]], parts: list[dict[str, Any]],
tests/test_open_telemetry.py:5704
Methodtest_async_stream_helper_that_cannot_accumulate_an_event_has_no_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5892
Methodtest_async_stream_helper_without_a_message_start_has_no_output
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5857
Methodtest_async_stream_over_a_body_that_was_read_before_the_call_returned
( self, spans: Spans, events: list[dict[str, Any]], status: StatusCode, error_type: str | None )
tests/test_open_telemetry.py:1368
Methodtest_async_stream_over_a_body_that_was_read_is_closed_or_read_with_the_helper
(self, spans: Spans)
tests/test_open_telemetry.py:1405
Methodtest_async_stream_over_a_response_that_a_middleware_made_from_bytes
(self, spans: Spans)
tests/test_open_telemetry.py:1451
Methodtest_async_stream_parsed_from_a_raw_response_is_recorded_like_a_stream
( self, spans: Spans, respx_mock: MockRouter, events: list[dict[str, Any]],
tests/test_open_telemetry.py:1313
Methodtest_async_stream_read_without_the_stream_helper
( self, message: dict[str, Any], content_mode: str, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:7829
Methodtest_async_stream_read_without_the_stream_helper_records_everything_but_its_content
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5932
Methodtest_async_stream_read_without_the_stream_helper_that_ends_early_has_no_output
( self, beta: bool, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:5965
Methodtest_async_stream_whose_bytes_the_application_reads_itself
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1574
Methodtest_async_stream_without_a_content_block_delta_has_no_time_to_first_chunk
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1860
Methodtest_async_streamed_compaction_tokens
(self, spans: Spans, respx_mock: MockRouter)
tests/test_open_telemetry.py:2086
Methodtest_async_streamed_response_model_is_the_one_that_a_fallback_block_names
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:2258
Functiontest_async_supports_anyio_path
()
tests/test_files.py:34
Methodtest_async_tags_the_original_and_fallback_requests
(self, respx_mock: MockRouter)
tests/lib/test_refusal_fallback.py:734
Methodtest_async_time_to_first_chunk_is_set_at_the_first_content_block_delta
( self, spans: Spans, respx_mock: MockRouter )
tests/test_open_telemetry.py:1824
Functiontest_async_token_provider_on_sync_client_rejected_clearly
()
tests/lib/test_google_cloud.py:481
Methodtest_async_tool_arguments_alone_over_the_bound_are_removed_whole
( self, city: str, size: int, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:711
Functiontest_async_tool_result_parity
(async_navigate: BetaAsyncFunctionTool[Any])
tests/lib/tools/toolsets/test_runnable.py:198
Functiontest_async_tool_result_rejects_block_of_another_family
(toolset_name: str | None)
tests/lib/tools/toolsets/test_runnable.py:259
Methodtest_async_tool_result_without_content_has_an_empty_list
( self, returned: object, spans: Spans, respx_mock: MockRouter )
tests/lib/tools/test_open_telemetry.py:491
Functiontest_async_tool_runner_rejects_a_sync_toolset
(async_client: AsyncAnthropic)
tests/lib/tools/toolsets/test_runner.py:757
Methodtest_async_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:1550
Functiontest_async_tuple_input
()
tests/test_files.py:41
Functiontest_async_unimplemented_members_are_sent_as_disabled_and_implemented_ones_left_to_the_api
()
tests/lib/tools/toolsets/test_interface.py:323
Functiontest_async_unknown_member_name_is_sanitised_in_the_refusal
()
tests/lib/tools/toolsets/test_interface.py:352
← previousnext →6,101–6,200 of 14,068, ranked by callers