AsyncClient — anthropic-sdk-python Architecture
Implementation of the non-blocking client using AnyIO and AsyncHTTPX.
Entity Profile
Dependency Diagram
graph TD subdomain_AnthropicClient_AsyncClient["AsyncClient"] 85cebff4_9655_3b56_5c62_eac9bdab7c33["test_runners.py"] subdomain_AnthropicClient_AsyncClient --> 85cebff4_9655_3b56_5c62_eac9bdab7c33 4a8875c4_da81_360f_2d1a_86bb6e3491aa["test_batches.py"] subdomain_AnthropicClient_AsyncClient --> 4a8875c4_da81_360f_2d1a_86bb6e3491aa 37147f34_4630_543e_796d_2c60a87f9338["test_skills.py"] subdomain_AnthropicClient_AsyncClient --> 37147f34_4630_543e_796d_2c60a87f9338 fab678e3_f9d5_ff74_b87d_c3edcec5ea8f["test_transform.py"] subdomain_AnthropicClient_AsyncClient --> fab678e3_f9d5_ff74_b87d_c3edcec5ea8f ab5d8cbc_81ab_b94a_b0a8_dff68db405ce["test_transform.py"] subdomain_AnthropicClient_AsyncClient --> ab5d8cbc_81ab_b94a_b0a8_dff68db405ce 1f598b00_ce63_a55b_2219_c061c81aa7c0["test_models.py"] subdomain_AnthropicClient_AsyncClient --> 1f598b00_ce63_a55b_2219_c061c81aa7c0 1d661dc0_41c8_0eba_311f_0bd1c28b114c["test_legacy_response.py"] subdomain_AnthropicClient_AsyncClient --> 1d661dc0_41c8_0eba_311f_0bd1c28b114c a7d7a3fe_8313_3774_07b4_7843821b30de["test_jsonl.py"] subdomain_AnthropicClient_AsyncClient --> a7d7a3fe_8313_3774_07b4_7843821b30de 008ba256_f25f_d4cf_8780_2c7c9596af0e["test_vertex.py"] subdomain_AnthropicClient_AsyncClient --> 008ba256_f25f_d4cf_8780_2c7c9596af0e 56ed8125_fff1_36c2_27d8_ada97c180f22["test_json.py"] subdomain_AnthropicClient_AsyncClient --> 56ed8125_fff1_36c2_27d8_ada97c180f22 b0117d2e_ef5b_71b3_05de_473f2087cf1b["conftest.py"] subdomain_AnthropicClient_AsyncClient --> b0117d2e_ef5b_71b3_05de_473f2087cf1b 7872b12d_80a6_40a4_276d_0413330070f4["test_messages.py"] subdomain_AnthropicClient_AsyncClient --> 7872b12d_80a6_40a4_276d_0413330070f4 ad9ae388_c528_b322_5909_1e944e6368e0["test_models.py"] subdomain_AnthropicClient_AsyncClient --> ad9ae388_c528_b322_5909_1e944e6368e0 e605c726_931d_fd00_347c_75de674f8522["test_completions.py"] subdomain_AnthropicClient_AsyncClient --> e605c726_931d_fd00_347c_75de674f8522 style subdomain_AnthropicClient_AsyncClient fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- __call__()
- _get_parameters_info()
- _get_weather()
- _make_async_iterator()
- _pytest()
- assert_basic_response()
- assert_empty_iter()
- assert_incomplete_partial_input_response()
- assert_matches_type()
- assert_tool_use_response()
- async_client()
- get_caller_name()
- get_response()
- handle_async_request()
- iter_next()
- make_async_snapshot_request()
- make_async_stream_snapshot_request()
- make_jsonl_iterator()
- make_stream_snapshot_request()
- model_id()
- profiles()
- rich_print_str()
- test_allof()
- test_allows_output_config_without_format()
- test_array_repeat()
- test_array_schema()
- test_async_azure_ad_token_provider()
- test_async_create_converts_output_format()
- test_async_methods_emit_deprecation_warnings()
- test_async_parse_converts_pydantic()
- test_async_pathlib_includes_file_name()
- test_async_response_basemodel_request_id()
- test_async_response_parse_annotated_type()
- test_async_response_parse_bool()
- test_async_response_parse_custom_model()
- test_async_response_parse_custom_stream()
- test_async_response_parse_expect_model_union_non_json_content()
- test_async_response_parse_mismatched_basemodel()
- test_async_supports_anyio_path()
- test_async_tuple_input()
- test_basic()
- test_basic()
- test_basic()
- test_basic()
- test_basic_call_async()
- test_basic_function_schema_conversion()
- test_basic_initialization_with_api_key()
- test_compaction_control()
- test_complex_nested_dict()
- test_context_manager()
- test_context_manager()
- test_context_manager()
- test_copy()
- test_copy_default_headers()
- test_copy_default_options()
- test_count_tokens_converts_output_format_to_output_config()
- test_count_tokens_emits_deprecation_warning()
- test_count_tokens_rejects_both_output_format_and_config()
- test_create_rejects_both_output_format_and_config()
- test_custom_input_schema_with_dict()
- test_custom_name_and_description()
- test_data_missing_event()
- test_date_parsing()
- test_datetime_custom_format()
- test_decorator_with_custom_parameters()
- test_decorator_without_parentheses()
- test_deprecated_model_warning()
- test_deprecated_model_warning_stream()
- test_discriminated_union_case()
- test_discriminated_unions_invalid_data()
- test_discriminated_unions_invalid_data_nested_unions()
- test_discriminated_unions_overlapping_discriminators_invalid_data()
- test_extra_properties()
- test_extract_response_type_binary_response()
- test_extract_response_type_direct_class_missing_type_arg()
- test_extract_type_var()
- test_extract_type_var_generic_subclass_different_ordering_multiple()
- test_extract_type_var_multiple()
- test_function_call_with_valid_input()
- test_function_without_type_hints()
- test_ignores_incorrect_paths()
- test_ignores_invalid_input()
- test_initialization_from_environment_variables()
- test_initialization_from_environment_variables()
- test_int_to_float_safe_conversion()
- test_integer_schema_with_min_max_exclusive()
- test_isinstance_does_not_error()
- test_iso8601_datetime()
- test_iterable_union_str()
- test_list_mismatched_type()
- test_messages_retries()
- test_messages_retries()
- test_messages_retries_async()
- test_method_cancel()
- test_method_cancel_with_all_params()
- test_method_count_tokens()
- test_method_count_tokens()
- test_method_count_tokens_with_all_params()
- test_method_count_tokens_with_all_params()
- test_method_create()
- test_method_create()
- test_method_create()
- test_method_create()
- test_method_create()
- test_method_create_overload_1()
- test_method_create_overload_1()
- test_method_create_overload_1()
- test_method_create_overload_1()
- test_method_create_overload_2()
- test_method_create_overload_2()
- test_method_create_overload_2()
- test_method_create_overload_2()
- test_method_create_with_all_params()
- test_method_create_with_all_params()
- test_method_create_with_all_params_overload_1()
- test_method_create_with_all_params_overload_1()
- test_method_create_with_all_params_overload_2()
- test_method_create_with_all_params_overload_2()
- test_method_delete()
- test_method_delete()
- test_method_delete()
- test_method_delete_with_all_params()
- test_method_delete_with_all_params()
- test_method_delete_with_all_params()
- test_method_delete_with_all_params()
- test_method_download()
- test_method_download_with_all_params()
- test_method_list()
- test_method_list()
- test_method_list()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_list_with_all_params()
- test_method_results()
- test_method_retrieve()
- test_method_retrieve()
- test_method_retrieve()
- test_method_retrieve()
- test_method_retrieve()
- test_method_retrieve()
- test_method_retrieve()
- test_method_retrieve_metadata()
- test_method_retrieve_metadata_with_all_params()
- test_method_retrieve_with_all_params()
- test_method_retrieve_with_all_params()
- test_method_upload()
- test_method_upload_with_all_params()
- test_missing_resource_error()
- test_multi_byte_character_multiple_chunks()
- test_multi_byte_character_multiple_chunks()
- test_multiple_data_lines()
- test_multiple_data_lines_with_empty_line()
- test_multiple_events()
- test_multiple_params()
- test_multiple_params_multiple_variants()
- test_nested_brackets()
- test_nested_dictionary_model()
- test_nested_list()
- test_nested_union_invalid_data()
- test_non_application_json_content_type_for_json_data()
- test_non_application_json_content_type_for_json_data()
- test_null_schema()
- test_optional_iso8601_format()
- test_optional_list()
- test_optional_list_nested_model()
- test_optional_nested_model()
- test_original_schema_not_mutated()
- test_parse_converts_pydantic_to_output_config()
- test_parse_emits_deprecation_warning()
- test_parse_preserves_existing_betas()
- test_parse_rejects_both_output_format_and_config()
- test_parse_uses_output_config()
- test_parse_with_nested_pydantic_model()
- test_parse_with_nested_pydantic_model()
- test_path_params_cancel()
- test_path_params_cancel()
- test_path_params_cancel()
- test_path_params_delete()
- test_path_params_delete()
- test_path_params_delete()
- test_path_params_delete()
- test_path_params_delete()
- test_path_params_delete()
- test_path_params_download()
- test_path_params_results()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve()
- test_path_params_retrieve_metadata()
- test_positional_param()
- test_pydantic_default_field()
- test_pydantic_error_in_create()
- test_pydantic_mismatched_object_type()
- test_pydantic_model_serialization()
- test_pydantic_model_to_dictionary()
- test_pydantic_model_with_alias_and_default()
- test_pydantic_model_with_default_values_overridden()
- test_pydantic_model_with_nested_models_and_defaults()
- test_pydantic_model_with_optional_fields()
- test_pydantic_unknown_field()
- test_raw_response_cancel()
- test_raw_response_cancel()
- test_raw_response_cancel()
- test_raw_response_count_tokens()
- test_raw_response_count_tokens()
- test_raw_response_create()
- test_raw_response_create()
- test_raw_response_create()
- test_raw_response_create_overload_1()
- test_raw_response_create_overload_1()
- test_raw_response_create_overload_1()
- test_raw_response_create_overload_1()
- test_raw_response_create_overload_2()
- test_raw_response_create_overload_2()
- test_raw_response_create_overload_2()
- test_raw_response_create_overload_2()
- test_raw_response_delete()
- test_raw_response_delete()
- test_raw_response_delete()
- test_raw_response_delete()
- test_raw_response_delete()
- test_raw_response_download()
- test_raw_response_list()
- test_raw_response_list()
- test_raw_response_list()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve()
- test_raw_response_retrieve_metadata()
- test_raw_response_upload()
- test_recursive_typeddict()
- test_ref_schema()
- test_region_infer_from_profile()
- test_rejects_both_output_format_and_config()
- test_removes_files_from_input()
- test_repr()
- test_response_basemodel_request_id()
- test_response_basemodel_request_id()
- test_response_parse_bool()
- test_response_parse_custom_stream()
- test_response_parse_custom_stream()
- test_response_parse_expect_model_union_non_json_content()
- test_response_parse_expect_model_union_non_json_content()
- test_response_parse_mismatched_basemodel()
- test_simple_dict()
- test_streaming_response_cancel()
- test_streaming_response_count_tokens()
- test_streaming_response_count_tokens()
- test_streaming_response_create()
- test_streaming_response_create()
- test_streaming_response_create()
- test_streaming_response_create()
- test_streaming_response_create_overload_1()
- test_streaming_response_create_overload_1()
- test_streaming_response_create_overload_2()
- test_streaming_response_create_overload_2()
- test_streaming_response_delete()
- test_streaming_response_delete()
- test_streaming_response_delete()
- test_streaming_response_delete()
- test_streaming_response_download()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_list()
- test_streaming_response_retrieve()
- test_streaming_response_retrieve()
- test_streaming_response_retrieve_metadata()
- test_streaming_response_upload()
- test_strict_validation_unknown_fields()
- test_string_schema_with_format_and_default()
- test_strips_omit()
- test_to_dict()
- test_to_dict_method()
- test_to_json()
- test_tool_call_caching()
- test_tool_use()
- test_tool_use()
- test_tool_use()
- test_tool_use()
- test_tracks_tool_input_type_alias_is_up_to_date()
- test_trailing_strings_mode_header()
- test_transform_skipping()
- test_tuple_input()
- test_type_alias_type()
- test_type_compat()
- test_union_datetime()
- test_unknown_array_format()
- test_with_options()
- to_aiter()
- to_async_iter()
- transform()
- update_env()
Source Files
- tests/conftest.py
- tests/lib/test_azure.py
- tests/api_resources/messages/test_batches.py
- tests/api_resources/test_completions.py
- tests/test_extract_files.py
- tests/lib/tools/test_functions.py
- tests/test_utils/test_json.py
- tests/decoders/test_jsonl.py
- tests/test_legacy_response.py
- tests/api_resources/test_messages.py
- tests/api_resources/test_models.py
- tests/test_models.py
- tests/lib/streaming/test_partial_json.py
- tests/lib/tools/test_runners.py
- tests/api_resources/beta/test_skills.py
- tests/test_transform.py
- tests/lib/_parse/test_transform.py
- tests/test_utils/test_typing.py
- tests/lib/test_vertex.py
Source
- tests/conftest.py
- tests/lib/test_azure.py
- tests/api_resources/messages/test_batches.py
- tests/api_resources/test_completions.py
- tests/test_extract_files.py
- tests/lib/tools/test_functions.py
- tests/test_utils/test_json.py
- tests/decoders/test_jsonl.py
- tests/test_legacy_response.py
- tests/api_resources/test_messages.py
- tests/api_resources/test_models.py
- tests/test_models.py
- tests/lib/streaming/test_partial_json.py
- tests/lib/tools/test_runners.py
- tests/api_resources/beta/test_skills.py
- tests/test_transform.py
- tests/lib/_parse/test_transform.py
- tests/test_utils/test_typing.py
- tests/lib/test_vertex.py
Frequently Asked Questions
What is the AsyncClient subdomain?
AsyncClient is a subdomain in the anthropic-sdk-python codebase, part of the AnthropicClient domain. Implementation of the non-blocking client using AnyIO and AsyncHTTPX. It contains 19 source files.
Which domain does AsyncClient belong to?
AsyncClient belongs to the AnthropicClient domain.
What functions are in AsyncClient?
The AsyncClient subdomain contains 318 function(s): __call__, _get_parameters_info, _get_weather, _make_async_iterator, _pytest, assert_basic_response, assert_empty_iter, assert_incomplete_partial_input_response, and 310 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free