anthropic 0.60.0__tar.gz → 0.62.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anthropic-0.62.0/.release-please-manifest.json +3 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/CHANGELOG.md +25 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/PKG-INFO +1 -1
- {anthropic-0.60.0 → anthropic-0.62.0}/api.md +6 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/pyproject.toml +2 -2
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_base_client.py +4 -1
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_constants.py +3 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_files.py +4 -4
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_version.py +1 -1
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/__init__.py +7 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/__init__.py +1 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_char_location.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_page_location.py +2 -0
- anthropic-0.62.0/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +29 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_union_param.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/message_count_tokens_params.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_char_location.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_content_block_location.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_page_location.py +2 -0
- anthropic-0.62.0/src/anthropic/types/citation_search_result_location_param.py +24 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citations_delta.py +8 -1
- anthropic-0.62.0/src/anthropic/types/citations_search_result_location.py +24 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block_param.py +2 -0
- anthropic-0.62.0/src/anthropic/types/message_count_tokens_tool_param.py +24 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_param.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/model.py +1 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/model_param.py +1 -0
- anthropic-0.62.0/src/anthropic/types/search_result_block_param.py +27 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/text_citation.py +8 -1
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/text_citation_param.py +2 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_result_block_param.py +2 -1
- anthropic-0.62.0/src/anthropic/types/tool_text_editor_20250429_param.py +23 -0
- anthropic-0.62.0/src/anthropic/types/tool_text_editor_20250728_param.py +29 -0
- anthropic-0.62.0/src/anthropic/types/tool_union_param.py +24 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/uv.lock +1 -1
- anthropic-0.60.0/.release-please-manifest.json +0 -3
- anthropic-0.60.0/src/anthropic/types/message_count_tokens_tool_param.py +0 -32
- anthropic-0.60.0/src/anthropic/types/tool_union_param.py +0 -32
- {anthropic-0.60.0 → anthropic-0.62.0}/.gitignore +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/CONTRIBUTING.md +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/LICENSE +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/README.md +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/SECURITY.md +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/bin/check-release-environment +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/bin/publish-pypi +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/.keep +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/batch_results.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/bedrock.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/images.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/logo.png +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/mcp.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/messages_stream.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/thinking.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/thinking_stream.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/tools.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/tools_stream.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/vertex.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/web_search.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/examples/web_search_stream.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/helpers.md +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/mypy.ini +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/release-please-config.json +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/requirements-dev.lock +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_client.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_compat.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_models.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_qs.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_resource.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_types.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_transform.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/_utils/_utils.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/_client.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/lib/vertex/_client.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/pagination.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/py.typed +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/files.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/messages/messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/beta/models.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/completions.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/messages/batches.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/messages/messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/resources/models.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/anthropic_beta_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_content_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_usage.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/message_create_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/batch_create_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_create_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/batch_create_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/thinking_config_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/usage.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/beta/messages/test_batches.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/beta/test_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/messages/test_batches.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/test_completions.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/test_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/conftest.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/__init__.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/test_beta_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/test_messages.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/streaming/test_partial_json.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/test_bedrock.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/lib/test_vertex.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/sample_file.txt +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_client.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_deepcopy.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_extract_files.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_files.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_legacy_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_models.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_qs.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_required_args.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_response.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_streaming.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_transform.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.60.0 → anthropic-0.62.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.62.0 (2025-08-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.61.0...v0.62.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.61.0...v0.62.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** search result content blocks ([1ae15cd](https://github.com/anthropics/anthropic-sdk-python/commit/1ae15cd58da2c58dfb85276860ec407401c04cc6))
|
|
10
|
+
|
|
11
|
+
## 0.61.0 (2025-08-05)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.60.0...v0.61.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.60.0...v0.61.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** add claude-opus-4-1-20250805 ([baae0ee](https://github.com/anthropics/anthropic-sdk-python/commit/baae0ee315d645aaa55b01a9eae0549ea42b7cb5))
|
|
18
|
+
* **api:** adds support for text_editor_20250728 tool ([9ad8fe5](https://github.com/anthropics/anthropic-sdk-python/commit/9ad8fe53d6878715e5d423aedba6cc23109e47ea))
|
|
19
|
+
* **client:** support file upload requests ([a9bd98a](https://github.com/anthropics/anthropic-sdk-python/commit/a9bd98ab54438528cb8110cf1f4efaa2b20df959))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* **client:** add TextEditor_20250429 tool ([ec207c5](https://github.com/anthropics/anthropic-sdk-python/commit/ec207c52d6c15ef7232a3f997aaa6d95fcbef9f3))
|
|
25
|
+
* **internal:** codegen related update ([4498057](https://github.com/anthropics/anthropic-sdk-python/commit/44980570bd92204177f069b5653f08dbda3ea018))
|
|
26
|
+
* **internal:** fix ruff target version ([3cfa202](https://github.com/anthropics/anthropic-sdk-python/commit/3cfa2023ecee6e8da5e3b71b4391477694d0475e))
|
|
27
|
+
|
|
3
28
|
## 0.60.0 (2025-07-28)
|
|
4
29
|
|
|
5
30
|
Full Changelog: [v0.59.0...v0.60.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.59.0...v0.60.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.62.0
|
|
4
4
|
Summary: The official Python library for the anthropic API
|
|
5
5
|
Project-URL: Homepage, https://github.com/anthropics/anthropic-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/anthropics/anthropic-sdk-python
|
|
@@ -31,9 +31,11 @@ from anthropic.types import (
|
|
|
31
31
|
CitationContentBlockLocationParam,
|
|
32
32
|
CitationPageLocation,
|
|
33
33
|
CitationPageLocationParam,
|
|
34
|
+
CitationSearchResultLocationParam,
|
|
34
35
|
CitationWebSearchResultLocationParam,
|
|
35
36
|
CitationsConfigParam,
|
|
36
37
|
CitationsDelta,
|
|
38
|
+
CitationsSearchResultLocation,
|
|
37
39
|
CitationsWebSearchResultLocation,
|
|
38
40
|
ContentBlock,
|
|
39
41
|
ContentBlockParam,
|
|
@@ -60,6 +62,7 @@ from anthropic.types import (
|
|
|
60
62
|
RawMessageStreamEvent,
|
|
61
63
|
RedactedThinkingBlock,
|
|
62
64
|
RedactedThinkingBlockParam,
|
|
65
|
+
SearchResultBlockParam,
|
|
63
66
|
ServerToolUsage,
|
|
64
67
|
ServerToolUseBlock,
|
|
65
68
|
ServerToolUseBlockParam,
|
|
@@ -85,6 +88,8 @@ from anthropic.types import (
|
|
|
85
88
|
ToolChoiceTool,
|
|
86
89
|
ToolResultBlockParam,
|
|
87
90
|
ToolTextEditor20250124,
|
|
91
|
+
ToolTextEditor20250429,
|
|
92
|
+
ToolTextEditor20250728,
|
|
88
93
|
ToolUnion,
|
|
89
94
|
ToolUseBlock,
|
|
90
95
|
ToolUseBlockParam,
|
|
@@ -289,6 +294,7 @@ from anthropic.types.beta import (
|
|
|
289
294
|
BetaToolTextEditor20241022,
|
|
290
295
|
BetaToolTextEditor20250124,
|
|
291
296
|
BetaToolTextEditor20250429,
|
|
297
|
+
BetaToolTextEditor20250728,
|
|
292
298
|
BetaToolUnion,
|
|
293
299
|
BetaToolUseBlock,
|
|
294
300
|
BetaToolUseBlockParam,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "anthropic"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.62.0"
|
|
4
4
|
description = "The official Python library for the anthropic API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "MIT"
|
|
@@ -134,7 +134,7 @@ reportPrivateUsage = false
|
|
|
134
134
|
[tool.ruff]
|
|
135
135
|
line-length = 120
|
|
136
136
|
output-format = "grouped"
|
|
137
|
-
target-version = "
|
|
137
|
+
target-version = "py38"
|
|
138
138
|
|
|
139
139
|
[tool.ruff.format]
|
|
140
140
|
docstring-code-format = true
|
|
@@ -545,7 +545,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
545
545
|
is_body_allowed = options.method.lower() != "get"
|
|
546
546
|
|
|
547
547
|
if is_body_allowed:
|
|
548
|
-
|
|
548
|
+
if isinstance(json_data, bytes):
|
|
549
|
+
kwargs["content"] = json_data
|
|
550
|
+
else:
|
|
551
|
+
kwargs["json"] = json_data if is_given(json_data) else None
|
|
549
552
|
kwargs["files"] = files
|
|
550
553
|
else:
|
|
551
554
|
headers.pop("Content-Type", None)
|
|
@@ -23,4 +23,7 @@ MODEL_NONSTREAMING_TOKENS = {
|
|
|
23
23
|
"claude-4-opus-20250514": 8_192,
|
|
24
24
|
"anthropic.claude-opus-4-20250514-v1:0": 8_192,
|
|
25
25
|
"claude-opus-4@20250514": 8_192,
|
|
26
|
+
"claude-opus-4-1-20250805": 8192,
|
|
27
|
+
"anthropic.claude-opus-4-1-20250805-v1:0": 8192,
|
|
28
|
+
"claude-opus-4-1@20250805": 8192,
|
|
26
29
|
}
|
|
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
|
|
|
69
69
|
return file
|
|
70
70
|
|
|
71
71
|
if is_tuple_t(file):
|
|
72
|
-
return (file[0],
|
|
72
|
+
return (file[0], read_file_content(file[1]), *file[2:])
|
|
73
73
|
|
|
74
74
|
raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
def
|
|
77
|
+
def read_file_content(file: FileContent) -> HttpxFileContent:
|
|
78
78
|
if isinstance(file, os.PathLike):
|
|
79
79
|
return pathlib.Path(file).read_bytes()
|
|
80
80
|
return file
|
|
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
|
|
|
111
111
|
return file
|
|
112
112
|
|
|
113
113
|
if is_tuple_t(file):
|
|
114
|
-
return (file[0], await
|
|
114
|
+
return (file[0], await async_read_file_content(file[1]), *file[2:])
|
|
115
115
|
|
|
116
116
|
raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
async def
|
|
119
|
+
async def async_read_file_content(file: FileContent) -> HttpxFileContent:
|
|
120
120
|
if isinstance(file, os.PathLike):
|
|
121
121
|
return await anyio.Path(file).read_bytes()
|
|
122
122
|
|
|
@@ -90,6 +90,7 @@ from .base64_image_source_param import Base64ImageSourceParam as Base64ImageSour
|
|
|
90
90
|
from .beta_authentication_error import BetaAuthenticationError as BetaAuthenticationError
|
|
91
91
|
from .content_block_delta_event import ContentBlockDeltaEvent as ContentBlockDeltaEvent
|
|
92
92
|
from .content_block_start_event import ContentBlockStartEvent as ContentBlockStartEvent
|
|
93
|
+
from .search_result_block_param import SearchResultBlockParam as SearchResultBlockParam
|
|
93
94
|
from .beta_gateway_timeout_error import BetaGatewayTimeoutError as BetaGatewayTimeoutError
|
|
94
95
|
from .beta_invalid_request_error import BetaInvalidRequestError as BetaInvalidRequestError
|
|
95
96
|
from .content_block_source_param import ContentBlockSourceParam as ContentBlockSourceParam
|
|
@@ -111,6 +112,9 @@ from .web_search_tool_20250305_param import WebSearchTool20250305Param as WebSea
|
|
|
111
112
|
from .citation_content_block_location import CitationContentBlockLocation as CitationContentBlockLocation
|
|
112
113
|
from .message_count_tokens_tool_param import MessageCountTokensToolParam as MessageCountTokensToolParam
|
|
113
114
|
from .tool_text_editor_20250124_param import ToolTextEditor20250124Param as ToolTextEditor20250124Param
|
|
115
|
+
from .tool_text_editor_20250429_param import ToolTextEditor20250429Param as ToolTextEditor20250429Param
|
|
116
|
+
from .tool_text_editor_20250728_param import ToolTextEditor20250728Param as ToolTextEditor20250728Param
|
|
117
|
+
from .citations_search_result_location import CitationsSearchResultLocation as CitationsSearchResultLocation
|
|
114
118
|
from .content_block_source_content_param import ContentBlockSourceContentParam as ContentBlockSourceContentParam
|
|
115
119
|
from .web_search_tool_result_block_param import WebSearchToolResultBlockParam as WebSearchToolResultBlockParam
|
|
116
120
|
from .web_search_tool_request_error_param import WebSearchToolRequestErrorParam as WebSearchToolRequestErrorParam
|
|
@@ -119,6 +123,9 @@ from .web_search_tool_result_block_content import WebSearchToolResultBlockConten
|
|
|
119
123
|
from .citation_content_block_location_param import (
|
|
120
124
|
CitationContentBlockLocationParam as CitationContentBlockLocationParam,
|
|
121
125
|
)
|
|
126
|
+
from .citation_search_result_location_param import (
|
|
127
|
+
CitationSearchResultLocationParam as CitationSearchResultLocationParam,
|
|
128
|
+
)
|
|
122
129
|
from .citation_web_search_result_location_param import (
|
|
123
130
|
CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam,
|
|
124
131
|
)
|
|
@@ -95,6 +95,7 @@ from .beta_citation_search_result_location import BetaCitationSearchResultLocati
|
|
|
95
95
|
from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param as BetaToolTextEditor20241022Param
|
|
96
96
|
from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param as BetaToolTextEditor20250124Param
|
|
97
97
|
from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param as BetaToolTextEditor20250429Param
|
|
98
|
+
from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param as BetaToolTextEditor20250728Param
|
|
98
99
|
from .beta_code_execution_tool_result_block import BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock
|
|
99
100
|
from .beta_code_execution_tool_result_error import BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError
|
|
100
101
|
from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param as BetaToolComputerUse20241022Param
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
|
|
9
|
+
|
|
10
|
+
__all__ = ["BetaToolTextEditor20250728Param"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class BetaToolTextEditor20250728Param(TypedDict, total=False):
|
|
14
|
+
name: Required[Literal["str_replace_based_edit_tool"]]
|
|
15
|
+
"""Name of the tool.
|
|
16
|
+
|
|
17
|
+
This is how the tool will be called by the model and in `tool_use` blocks.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
type: Required[Literal["text_editor_20250728"]]
|
|
21
|
+
|
|
22
|
+
cache_control: Optional[BetaCacheControlEphemeralParam]
|
|
23
|
+
"""Create a cache control breakpoint at this content block."""
|
|
24
|
+
|
|
25
|
+
max_characters: Optional[int]
|
|
26
|
+
"""Maximum number of characters to display when viewing a file.
|
|
27
|
+
|
|
28
|
+
If not specified, defaults to displaying the full file.
|
|
29
|
+
"""
|
|
@@ -12,6 +12,7 @@ from .beta_web_search_tool_20250305_param import BetaWebSearchTool20250305Param
|
|
|
12
12
|
from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param
|
|
13
13
|
from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param
|
|
14
14
|
from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param
|
|
15
|
+
from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param
|
|
15
16
|
from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param
|
|
16
17
|
from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param
|
|
17
18
|
from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param
|
|
@@ -28,5 +29,6 @@ BetaToolUnionParam: TypeAlias = Union[
|
|
|
28
29
|
BetaToolTextEditor20241022Param,
|
|
29
30
|
BetaToolTextEditor20250124Param,
|
|
30
31
|
BetaToolTextEditor20250429Param,
|
|
32
|
+
BetaToolTextEditor20250728Param,
|
|
31
33
|
BetaWebSearchTool20250305Param,
|
|
32
34
|
]
|
{anthropic-0.60.0 → anthropic-0.62.0}/src/anthropic/types/beta/message_count_tokens_params.py
RENAMED
|
@@ -19,6 +19,7 @@ from .beta_web_search_tool_20250305_param import BetaWebSearchTool20250305Param
|
|
|
19
19
|
from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param
|
|
20
20
|
from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param
|
|
21
21
|
from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param
|
|
22
|
+
from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param
|
|
22
23
|
from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param
|
|
23
24
|
from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param
|
|
24
25
|
from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param
|
|
@@ -248,5 +249,6 @@ Tool: TypeAlias = Union[
|
|
|
248
249
|
BetaToolTextEditor20241022Param,
|
|
249
250
|
BetaToolTextEditor20250124Param,
|
|
250
251
|
BetaToolTextEditor20250429Param,
|
|
252
|
+
BetaToolTextEditor20250728Param,
|
|
251
253
|
BetaWebSearchTool20250305Param,
|
|
252
254
|
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["CitationSearchResultLocationParam"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CitationSearchResultLocationParam(TypedDict, total=False):
|
|
12
|
+
cited_text: Required[str]
|
|
13
|
+
|
|
14
|
+
end_block_index: Required[int]
|
|
15
|
+
|
|
16
|
+
search_result_index: Required[int]
|
|
17
|
+
|
|
18
|
+
source: Required[str]
|
|
19
|
+
|
|
20
|
+
start_block_index: Required[int]
|
|
21
|
+
|
|
22
|
+
title: Required[Optional[str]]
|
|
23
|
+
|
|
24
|
+
type: Required[Literal["search_result_location"]]
|
|
@@ -8,12 +8,19 @@ from .._models import BaseModel
|
|
|
8
8
|
from .citation_char_location import CitationCharLocation
|
|
9
9
|
from .citation_page_location import CitationPageLocation
|
|
10
10
|
from .citation_content_block_location import CitationContentBlockLocation
|
|
11
|
+
from .citations_search_result_location import CitationsSearchResultLocation
|
|
11
12
|
from .citations_web_search_result_location import CitationsWebSearchResultLocation
|
|
12
13
|
|
|
13
14
|
__all__ = ["CitationsDelta", "Citation"]
|
|
14
15
|
|
|
15
16
|
Citation: TypeAlias = Annotated[
|
|
16
|
-
Union[
|
|
17
|
+
Union[
|
|
18
|
+
CitationCharLocation,
|
|
19
|
+
CitationPageLocation,
|
|
20
|
+
CitationContentBlockLocation,
|
|
21
|
+
CitationsWebSearchResultLocation,
|
|
22
|
+
CitationsSearchResultLocation,
|
|
23
|
+
],
|
|
17
24
|
PropertyInfo(discriminator="type"),
|
|
18
25
|
]
|
|
19
26
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["CitationsSearchResultLocation"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CitationsSearchResultLocation(BaseModel):
|
|
12
|
+
cited_text: str
|
|
13
|
+
|
|
14
|
+
end_block_index: int
|
|
15
|
+
|
|
16
|
+
search_result_index: int
|
|
17
|
+
|
|
18
|
+
source: str
|
|
19
|
+
|
|
20
|
+
start_block_index: int
|
|
21
|
+
|
|
22
|
+
title: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
type: Literal["search_result_location"]
|
|
@@ -11,6 +11,7 @@ from .document_block_param import DocumentBlockParam
|
|
|
11
11
|
from .thinking_block_param import ThinkingBlockParam
|
|
12
12
|
from .tool_use_block_param import ToolUseBlockParam
|
|
13
13
|
from .tool_result_block_param import ToolResultBlockParam
|
|
14
|
+
from .search_result_block_param import SearchResultBlockParam
|
|
14
15
|
from .server_tool_use_block_param import ServerToolUseBlockParam
|
|
15
16
|
from .redacted_thinking_block_param import RedactedThinkingBlockParam
|
|
16
17
|
from .web_search_tool_result_block_param import WebSearchToolResultBlockParam
|
|
@@ -21,6 +22,7 @@ ContentBlockParam: TypeAlias = Union[
|
|
|
21
22
|
TextBlockParam,
|
|
22
23
|
ImageBlockParam,
|
|
23
24
|
DocumentBlockParam,
|
|
25
|
+
SearchResultBlockParam,
|
|
24
26
|
ThinkingBlockParam,
|
|
25
27
|
RedactedThinkingBlockParam,
|
|
26
28
|
ToolUseBlockParam,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from typing_extensions import TypeAlias
|
|
7
|
+
|
|
8
|
+
from .tool_param import ToolParam
|
|
9
|
+
from .tool_bash_20250124_param import ToolBash20250124Param
|
|
10
|
+
from .web_search_tool_20250305_param import WebSearchTool20250305Param
|
|
11
|
+
from .tool_text_editor_20250124_param import ToolTextEditor20250124Param
|
|
12
|
+
from .tool_text_editor_20250429_param import ToolTextEditor20250429Param
|
|
13
|
+
from .tool_text_editor_20250728_param import ToolTextEditor20250728Param
|
|
14
|
+
|
|
15
|
+
__all__ = ["MessageCountTokensToolParam"]
|
|
16
|
+
|
|
17
|
+
MessageCountTokensToolParam: TypeAlias = Union[
|
|
18
|
+
ToolParam,
|
|
19
|
+
ToolBash20250124Param,
|
|
20
|
+
ToolTextEditor20250124Param,
|
|
21
|
+
ToolTextEditor20250429Param,
|
|
22
|
+
ToolTextEditor20250728Param,
|
|
23
|
+
WebSearchTool20250305Param,
|
|
24
|
+
]
|
|
@@ -12,6 +12,7 @@ from .document_block_param import DocumentBlockParam
|
|
|
12
12
|
from .thinking_block_param import ThinkingBlockParam
|
|
13
13
|
from .tool_use_block_param import ToolUseBlockParam
|
|
14
14
|
from .tool_result_block_param import ToolResultBlockParam
|
|
15
|
+
from .search_result_block_param import SearchResultBlockParam
|
|
15
16
|
from .server_tool_use_block_param import ServerToolUseBlockParam
|
|
16
17
|
from .redacted_thinking_block_param import RedactedThinkingBlockParam
|
|
17
18
|
from .web_search_tool_result_block_param import WebSearchToolResultBlockParam
|
|
@@ -28,6 +29,7 @@ class MessageParam(TypedDict, total=False):
|
|
|
28
29
|
TextBlockParam,
|
|
29
30
|
ImageBlockParam,
|
|
30
31
|
DocumentBlockParam,
|
|
32
|
+
SearchResultBlockParam,
|
|
31
33
|
ThinkingBlockParam,
|
|
32
34
|
RedactedThinkingBlockParam,
|
|
33
35
|
ToolUseBlockParam,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .text_block_param import TextBlockParam
|
|
9
|
+
from .citations_config_param import CitationsConfigParam
|
|
10
|
+
from .cache_control_ephemeral_param import CacheControlEphemeralParam
|
|
11
|
+
|
|
12
|
+
__all__ = ["SearchResultBlockParam"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class SearchResultBlockParam(TypedDict, total=False):
|
|
16
|
+
content: Required[Iterable[TextBlockParam]]
|
|
17
|
+
|
|
18
|
+
source: Required[str]
|
|
19
|
+
|
|
20
|
+
title: Required[str]
|
|
21
|
+
|
|
22
|
+
type: Required[Literal["search_result"]]
|
|
23
|
+
|
|
24
|
+
cache_control: Optional[CacheControlEphemeralParam]
|
|
25
|
+
"""Create a cache control breakpoint at this content block."""
|
|
26
|
+
|
|
27
|
+
citations: CitationsConfigParam
|
|
@@ -7,11 +7,18 @@ from .._utils import PropertyInfo
|
|
|
7
7
|
from .citation_char_location import CitationCharLocation
|
|
8
8
|
from .citation_page_location import CitationPageLocation
|
|
9
9
|
from .citation_content_block_location import CitationContentBlockLocation
|
|
10
|
+
from .citations_search_result_location import CitationsSearchResultLocation
|
|
10
11
|
from .citations_web_search_result_location import CitationsWebSearchResultLocation
|
|
11
12
|
|
|
12
13
|
__all__ = ["TextCitation"]
|
|
13
14
|
|
|
14
15
|
TextCitation: TypeAlias = Annotated[
|
|
15
|
-
Union[
|
|
16
|
+
Union[
|
|
17
|
+
CitationCharLocation,
|
|
18
|
+
CitationPageLocation,
|
|
19
|
+
CitationContentBlockLocation,
|
|
20
|
+
CitationsWebSearchResultLocation,
|
|
21
|
+
CitationsSearchResultLocation,
|
|
22
|
+
],
|
|
16
23
|
PropertyInfo(discriminator="type"),
|
|
17
24
|
]
|
|
@@ -8,6 +8,7 @@ from typing_extensions import TypeAlias
|
|
|
8
8
|
from .citation_char_location_param import CitationCharLocationParam
|
|
9
9
|
from .citation_page_location_param import CitationPageLocationParam
|
|
10
10
|
from .citation_content_block_location_param import CitationContentBlockLocationParam
|
|
11
|
+
from .citation_search_result_location_param import CitationSearchResultLocationParam
|
|
11
12
|
from .citation_web_search_result_location_param import CitationWebSearchResultLocationParam
|
|
12
13
|
|
|
13
14
|
__all__ = ["TextCitationParam"]
|
|
@@ -17,4 +18,5 @@ TextCitationParam: TypeAlias = Union[
|
|
|
17
18
|
CitationPageLocationParam,
|
|
18
19
|
CitationContentBlockLocationParam,
|
|
19
20
|
CitationWebSearchResultLocationParam,
|
|
21
|
+
CitationSearchResultLocationParam,
|
|
20
22
|
]
|
|
@@ -7,11 +7,12 @@ from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
|
7
7
|
|
|
8
8
|
from .text_block_param import TextBlockParam
|
|
9
9
|
from .image_block_param import ImageBlockParam
|
|
10
|
+
from .search_result_block_param import SearchResultBlockParam
|
|
10
11
|
from .cache_control_ephemeral_param import CacheControlEphemeralParam
|
|
11
12
|
|
|
12
13
|
__all__ = ["ToolResultBlockParam", "Content"]
|
|
13
14
|
|
|
14
|
-
Content: TypeAlias = Union[TextBlockParam, ImageBlockParam]
|
|
15
|
+
Content: TypeAlias = Union[TextBlockParam, ImageBlockParam, SearchResultBlockParam]
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
class ToolResultBlockParam(TypedDict, total=False):
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .cache_control_ephemeral_param import CacheControlEphemeralParam
|
|
9
|
+
|
|
10
|
+
__all__ = ["ToolTextEditor20250429Param"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ToolTextEditor20250429Param(TypedDict, total=False):
|
|
14
|
+
name: Required[Literal["str_replace_based_edit_tool"]]
|
|
15
|
+
"""Name of the tool.
|
|
16
|
+
|
|
17
|
+
This is how the tool will be called by the model and in `tool_use` blocks.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
type: Required[Literal["text_editor_20250429"]]
|
|
21
|
+
|
|
22
|
+
cache_control: Optional[CacheControlEphemeralParam]
|
|
23
|
+
"""Create a cache control breakpoint at this content block."""
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .cache_control_ephemeral_param import CacheControlEphemeralParam
|
|
9
|
+
|
|
10
|
+
__all__ = ["ToolTextEditor20250728Param"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ToolTextEditor20250728Param(TypedDict, total=False):
|
|
14
|
+
name: Required[Literal["str_replace_based_edit_tool"]]
|
|
15
|
+
"""Name of the tool.
|
|
16
|
+
|
|
17
|
+
This is how the tool will be called by the model and in `tool_use` blocks.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
type: Required[Literal["text_editor_20250728"]]
|
|
21
|
+
|
|
22
|
+
cache_control: Optional[CacheControlEphemeralParam]
|
|
23
|
+
"""Create a cache control breakpoint at this content block."""
|
|
24
|
+
|
|
25
|
+
max_characters: Optional[int]
|
|
26
|
+
"""Maximum number of characters to display when viewing a file.
|
|
27
|
+
|
|
28
|
+
If not specified, defaults to displaying the full file.
|
|
29
|
+
"""
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from typing_extensions import TypeAlias
|
|
7
|
+
|
|
8
|
+
from .tool_param import ToolParam
|
|
9
|
+
from .tool_bash_20250124_param import ToolBash20250124Param
|
|
10
|
+
from .web_search_tool_20250305_param import WebSearchTool20250305Param
|
|
11
|
+
from .tool_text_editor_20250124_param import ToolTextEditor20250124Param
|
|
12
|
+
from .tool_text_editor_20250429_param import ToolTextEditor20250429Param
|
|
13
|
+
from .tool_text_editor_20250728_param import ToolTextEditor20250728Param
|
|
14
|
+
|
|
15
|
+
__all__ = ["ToolUnionParam"]
|
|
16
|
+
|
|
17
|
+
ToolUnionParam: TypeAlias = Union[
|
|
18
|
+
ToolParam,
|
|
19
|
+
ToolBash20250124Param,
|
|
20
|
+
ToolTextEditor20250124Param,
|
|
21
|
+
ToolTextEditor20250429Param,
|
|
22
|
+
ToolTextEditor20250728Param,
|
|
23
|
+
WebSearchTool20250305Param,
|
|
24
|
+
]
|