Path Lines of Code noxfile.py 6 pyproject.toml 187 scripts/utils/ruffen-docs.py 135 src/anthropic/__init__.py 95 src/anthropic/_base_client.py 1548 src/anthropic/_client.py 469 src/anthropic/_compat.py 142 src/anthropic/_constants.py 10 src/anthropic/_decoders/jsonl.py 80 src/anthropic/_exceptions.py 70 src/anthropic/_files.py 83 src/anthropic/_legacy_response.py 338 src/anthropic/_models.py 508 src/anthropic/_qs.py 124 src/anthropic/_resource.py 28 src/anthropic/_response.py 489 src/anthropic/_streaming.py 309 src/anthropic/_types.py 116 src/anthropic/_utils/__init__.py 57 src/anthropic/_utils/_logs.py 19 src/anthropic/_utils/_proxy.py 42 src/anthropic/_utils/_reflection.py 29 src/anthropic/_utils/_streams.py 8 src/anthropic/_utils/_sync.py 34 src/anthropic/_utils/_transform.py 249 src/anthropic/_utils/_typing.py 72 src/anthropic/_utils/_utils.py 250 src/anthropic/_version.py 2 src/anthropic/lib/__init__.py 1 src/anthropic/lib/_extras/__init__.py 1 src/anthropic/lib/_extras/_common.py 5 src/anthropic/lib/_extras/_google_auth.py 19 src/anthropic/lib/bedrock/__init__.py 1 src/anthropic/lib/bedrock/_auth.py 54 src/anthropic/lib/bedrock/_beta.py 56 src/anthropic/lib/bedrock/_beta_messages.py 47 src/anthropic/lib/bedrock/_client.py 298 src/anthropic/lib/bedrock/_stream.py 27 src/anthropic/lib/bedrock/_stream_decoder.py 46 src/anthropic/lib/streaming/__init__.py 26 src/anthropic/lib/streaming/_beta_messages.py 327 src/anthropic/lib/streaming/_beta_types.py 56 src/anthropic/lib/streaming/_messages.py 327 src/anthropic/lib/streaming/_types.py 56 src/anthropic/lib/vertex/__init__.py 1 src/anthropic/lib/vertex/_auth.py 25 src/anthropic/lib/vertex/_beta.py 56 src/anthropic/lib/vertex/_beta_messages.py 47 src/anthropic/lib/vertex/_client.py 314 src/anthropic/pagination.py 61 src/anthropic/resources/__init__.py 58 src/anthropic/resources/beta/__init__.py 44 src/anthropic/resources/beta/beta.py 82 src/anthropic/resources/beta/messages/__init__.py 30 src/anthropic/resources/beta/messages/batches.py 502 src/anthropic/resources/beta/messages/messages.py 580 src/anthropic/resources/beta/models.py 181 src/anthropic/resources/completions.py 277 src/anthropic/resources/messages/__init__.py 32 src/anthropic/resources/messages/batches.py 356 src/anthropic/resources/messages/messages.py 556 src/anthropic/resources/models.py 181 src/anthropic/types/__init__.py 124 src/anthropic/types/anthropic_beta_param.py 17 src/anthropic/types/base64_image_source_param.py 12 src/anthropic/types/base64_pdf_source_param.py 12 src/anthropic/types/beta/__init__.py 101 src/anthropic/types/beta/beta_base64_image_source_param.py 12 src/anthropic/types/beta/beta_base64_pdf_block_param.py 20 src/anthropic/types/beta/beta_base64_pdf_source_param.py 12 src/anthropic/types/beta/beta_cache_control_ephemeral_param.py 5 src/anthropic/types/beta/beta_citation_char_location.py 11 src/anthropic/types/beta/beta_citation_char_location_param.py 11 src/anthropic/types/beta/beta_citation_content_block_location.py 11 src/anthropic/types/beta/beta_citation_content_block_location_param.py 11 src/anthropic/types/beta/beta_citation_page_location.py 11 src/anthropic/types/beta/beta_citation_page_location_param.py 11 src/anthropic/types/beta/beta_citation_web_search_result_location_param.py 10 src/anthropic/types/beta/beta_citations_config_param.py 5 src/anthropic/types/beta/beta_citations_delta.py 21 src/anthropic/types/beta/beta_citations_web_search_result_location.py 10 src/anthropic/types/beta/beta_content_block.py 21 src/anthropic/types/beta/beta_content_block_param.py 24 src/anthropic/types/beta/beta_content_block_source_content_param.py 7 src/anthropic/types/beta/beta_content_block_source_param.py 8 src/anthropic/types/beta/beta_image_block_param.py 12 src/anthropic/types/beta/beta_input_json_delta.py 6 src/anthropic/types/beta/beta_message.py 17 src/anthropic/types/beta/beta_message_delta_usage.py 10 src/anthropic/types/beta/beta_message_param.py 8 src/anthropic/types/beta/beta_message_tokens_count.py 4 src/anthropic/types/beta/beta_metadata_param.py 6 src/anthropic/types/beta/beta_model_info.py 9 src/anthropic/types/beta/beta_plain_text_source_param.py 7 src/anthropic/types/beta/beta_raw_content_block_delta.py 13 src/anthropic/types/beta/beta_raw_content_block_delta_event.py 8 src/anthropic/types/beta/beta_raw_content_block_start_event.py 26 src/anthropic/types/beta/beta_raw_content_block_stop_event.py 6 src/anthropic/types/beta/beta_raw_message_delta_event.py 13 src/anthropic/types/beta/beta_raw_message_start_event.py 7 src/anthropic/types/beta/beta_raw_message_stop_event.py 5 src/anthropic/types/beta/beta_raw_message_stream_event.py 21 src/anthropic/types/beta/beta_redacted_thinking_block.py 6 src/anthropic/types/beta/beta_redacted_thinking_block_param.py 6 src/anthropic/types/beta/beta_server_tool_usage.py 4 src/anthropic/types/beta/beta_server_tool_use_block.py 8 src/anthropic/types/beta/beta_server_tool_use_block_param.py 11 src/anthropic/types/beta/beta_signature_delta.py 6 src/anthropic/types/beta/beta_stop_reason.py 3 src/anthropic/types/beta/beta_text_block.py 9 src/anthropic/types/beta/beta_text_block_param.py 11 src/anthropic/types/beta/beta_text_citation.py 17 src/anthropic/types/beta/beta_text_citation_param.py 14 src/anthropic/types/beta/beta_text_delta.py 6 src/anthropic/types/beta/beta_thinking_block.py 7 src/anthropic/types/beta/beta_thinking_block_param.py 7 src/anthropic/types/beta/beta_thinking_config_disabled_param.py 5 src/anthropic/types/beta/beta_thinking_config_enabled_param.py 6 src/anthropic/types/beta/beta_thinking_config_param.py 7 src/anthropic/types/beta/beta_thinking_delta.py 6 src/anthropic/types/beta/beta_tool_bash_20241022_param.py 9 src/anthropic/types/beta/beta_tool_bash_20250124_param.py 9 src/anthropic/types/beta/beta_tool_choice_any_param.py 6 src/anthropic/types/beta/beta_tool_choice_auto_param.py 6 src/anthropic/types/beta/beta_tool_choice_none_param.py 5 src/anthropic/types/beta/beta_tool_choice_param.py 11 src/anthropic/types/beta/beta_tool_choice_tool_param.py 7 src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py 12 src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py 12 src/anthropic/types/beta/beta_tool_param.py 15 src/anthropic/types/beta/beta_tool_result_block_param.py 14 src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py 9 src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py 9 src/anthropic/types/beta/beta_tool_union_param.py 22 src/anthropic/types/beta/beta_tool_use_block.py 8 src/anthropic/types/beta/beta_tool_use_block_param.py 11 src/anthropic/types/beta/beta_url_image_source_param.py 6 src/anthropic/types/beta/beta_url_pdf_source_param.py 6 src/anthropic/types/beta/beta_usage.py 10 src/anthropic/types/beta/beta_web_search_result_block.py 10 src/anthropic/types/beta/beta_web_search_result_block_param.py 10 src/anthropic/types/beta/beta_web_search_tool_20250305_param.py 19 src/anthropic/types/beta/beta_web_search_tool_request_error_param.py 8 src/anthropic/types/beta/beta_web_search_tool_result_block.py 8 src/anthropic/types/beta/beta_web_search_tool_result_block_content.py 6 src/anthropic/types/beta/beta_web_search_tool_result_block_param.py 11 src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py 9 src/anthropic/types/beta/beta_web_search_tool_result_error.py 6 src/anthropic/types/beta/message_count_tokens_params.py 37 src/anthropic/types/beta/message_create_params.py 32 src/anthropic/types/beta/messages/__init__.py 14 src/anthropic/types/beta/messages/batch_create_params.py 13 src/anthropic/types/beta/messages/batch_list_params.py 11 src/anthropic/types/beta/messages/beta_deleted_message_batch.py 6 src/anthropic/types/beta/messages/beta_message_batch.py 17 src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py 5 src/anthropic/types/beta/messages/beta_message_batch_errored_result.py 7 src/anthropic/types/beta/messages/beta_message_batch_expired_result.py 5 src/anthropic/types/beta/messages/beta_message_batch_individual_response.py 6 src/anthropic/types/beta/messages/beta_message_batch_request_counts.py 8 src/anthropic/types/beta/messages/beta_message_batch_result.py 17 src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py 7 src/anthropic/types/beta/model_list_params.py 11 src/anthropic/types/beta_api_error.py 6 src/anthropic/types/beta_authentication_error.py 6 src/anthropic/types/beta_billing_error.py 6 src/anthropic/types/beta_error.py 27 src/anthropic/types/beta_error_response.py 7 src/anthropic/types/beta_gateway_timeout_error.py 6 src/anthropic/types/beta_invalid_request_error.py 6 src/anthropic/types/beta_not_found_error.py 6 src/anthropic/types/beta_overloaded_error.py 6 src/anthropic/types/beta_permission_error.py 6 src/anthropic/types/beta_rate_limit_error.py 6 src/anthropic/types/cache_control_ephemeral_param.py 5 src/anthropic/types/citation_char_location.py 11 src/anthropic/types/citation_char_location_param.py 11 src/anthropic/types/citation_content_block_location.py 11 src/anthropic/types/citation_content_block_location_param.py 11 src/anthropic/types/citation_page_location.py 11 src/anthropic/types/citation_page_location_param.py 11 src/anthropic/types/citation_web_search_result_location_param.py 10 src/anthropic/types/citations_config_param.py 5 src/anthropic/types/citations_delta.py 16 src/anthropic/types/citations_web_search_result_location.py 10 src/anthropic/types/completion.py 11 src/anthropic/types/completion_create_params.py 37 src/anthropic/types/content_block.py 14 src/anthropic/types/content_block_delta_event.py 3 src/anthropic/types/content_block_param.py 24 src/anthropic/types/content_block_source_content_param.py 7 src/anthropic/types/content_block_source_param.py 8 src/anthropic/types/content_block_start_event.py 3 src/anthropic/types/content_block_stop_event.py 3 src/anthropic/types/document_block_param.py 18 src/anthropic/types/image_block_param.py 12 src/anthropic/types/input_json_delta.py 7 src/anthropic/types/message.py 17 src/anthropic/types/message_count_tokens_params.py 17 src/anthropic/types/message_count_tokens_tool_param.py 11 src/anthropic/types/message_create_params.py 46 src/anthropic/types/message_delta_event.py 3 src/anthropic/types/message_delta_usage.py 10 src/anthropic/types/message_param.py 35 src/anthropic/types/message_start_event.py 3 src/anthropic/types/message_stop_event.py 3 src/anthropic/types/message_stream_event.py 3 src/anthropic/types/message_tokens_count.py 4 src/anthropic/types/messages/__init__.py 12 src/anthropic/types/messages/batch_create_params.py 10 src/anthropic/types/messages/batch_list_params.py 7 src/anthropic/types/messages/deleted_message_batch.py 6 src/anthropic/types/messages/message_batch.py 17 src/anthropic/types/messages/message_batch_canceled_result.py 5 src/anthropic/types/messages/message_batch_errored_result.py 7 src/anthropic/types/messages/message_batch_expired_result.py 5 src/anthropic/types/messages/message_batch_individual_response.py 6 src/anthropic/types/messages/message_batch_request_counts.py 8 src/anthropic/types/messages/message_batch_result.py 14 src/anthropic/types/messages/message_batch_succeeded_result.py 7 src/anthropic/types/metadata_param.py 6 src/anthropic/types/model.py 21 src/anthropic/types/model_info.py 9 src/anthropic/types/model_list_params.py 11 src/anthropic/types/model_param.py 22 src/anthropic/types/plain_text_source_param.py 7 src/anthropic/types/raw_content_block_delta.py 12 src/anthropic/types/raw_content_block_delta_event.py 8 src/anthropic/types/raw_content_block_start_event.py 19 src/anthropic/types/raw_content_block_stop_event.py 6 src/anthropic/types/raw_message_delta_event.py 13 src/anthropic/types/raw_message_start_event.py 7 src/anthropic/types/raw_message_stop_event.py 5 src/anthropic/types/raw_message_stream_event.py 21 src/anthropic/types/redacted_thinking_block.py 6 src/anthropic/types/redacted_thinking_block_param.py 6 src/anthropic/types/server_tool_usage.py 4 src/anthropic/types/server_tool_use_block.py 8 src/anthropic/types/server_tool_use_block_param.py 11 src/anthropic/types/shared/__init__.py 11 src/anthropic/types/shared/api_error_object.py 6 src/anthropic/types/shared/authentication_error.py 6 src/anthropic/types/shared/billing_error.py 6 src/anthropic/types/shared/error_object.py 27 src/anthropic/types/shared/error_response.py 7 src/anthropic/types/shared/gateway_timeout_error.py 6 src/anthropic/types/shared/invalid_request_error.py 6 src/anthropic/types/shared/not_found_error.py 6 src/anthropic/types/shared/overloaded_error.py 6 src/anthropic/types/shared/permission_error.py 6 src/anthropic/types/shared/rate_limit_error.py 6 src/anthropic/types/signature_delta.py 6 src/anthropic/types/stop_reason.py 3 src/anthropic/types/text_block.py 9 src/anthropic/types/text_block_param.py 11 src/anthropic/types/text_citation.py 12 src/anthropic/types/text_citation_param.py 14 src/anthropic/types/text_delta.py 6 src/anthropic/types/thinking_block.py 7 src/anthropic/types/thinking_block_param.py 7 src/anthropic/types/thinking_config_disabled_param.py 5 src/anthropic/types/thinking_config_enabled_param.py 6 src/anthropic/types/thinking_config_param.py 7 src/anthropic/types/thinking_delta.py 6 src/anthropic/types/tool_bash_20250124_param.py 9 src/anthropic/types/tool_choice_any_param.py 6 src/anthropic/types/tool_choice_auto_param.py 6 src/anthropic/types/tool_choice_none_param.py 5 src/anthropic/types/tool_choice_param.py 9 src/anthropic/types/tool_choice_tool_param.py 7 src/anthropic/types/tool_param.py 17 src/anthropic/types/tool_result_block_param.py 14 src/anthropic/types/tool_text_editor_20250124_param.py 9 src/anthropic/types/tool_union_param.py 11 src/anthropic/types/tool_use_block.py 8 src/anthropic/types/tool_use_block_param.py 11 src/anthropic/types/url_image_source_param.py 6 src/anthropic/types/url_pdf_source_param.py 6 src/anthropic/types/usage.py 10 src/anthropic/types/web_search_result_block.py 10 src/anthropic/types/web_search_result_block_param.py 10 src/anthropic/types/web_search_tool_20250305_param.py 19 src/anthropic/types/web_search_tool_request_error_param.py 8 src/anthropic/types/web_search_tool_result_block.py 8 src/anthropic/types/web_search_tool_result_block_content.py 6 src/anthropic/types/web_search_tool_result_block_param.py 11 src/anthropic/types/web_search_tool_result_block_param_content_param.py 9 src/anthropic/types/web_search_tool_result_error.py 6