anthropic 0.68.0__tar.gz → 0.68.1__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.68.1/.release-please-manifest.json +3 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/CHANGELOG.md +12 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/PKG-INFO +1 -1
- {anthropic-0.68.0 → anthropic-0.68.1}/pyproject.toml +10 -10
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/__init__.py +3 -1
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_base_client.py +9 -9
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_client.py +8 -8
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_qs.py +7 -7
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_types.py +18 -11
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_transform.py +2 -2
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_utils.py +4 -4
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_version.py +1 -1
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/tools/_beta_runner.py +0 -1
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/files.py +37 -37
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/messages/batches.py +43 -43
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/messages/messages.py +271 -271
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/models.py +19 -19
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/completions.py +63 -63
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/messages/batches.py +19 -19
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/messages/messages.py +125 -125
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/models.py +19 -19
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_transform.py +9 -2
- anthropic-0.68.0/.release-please-manifest.json +0 -3
- {anthropic-0.68.0 → anthropic-0.68.1}/.gitignore +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/CONTRIBUTING.md +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/LICENSE +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/README.md +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/SECURITY.md +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/api.md +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/bin/check-release-environment +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/bin/publish-pypi +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/.keep +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/batch_results.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/bedrock.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/images.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/logo.png +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/messages_stream.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/thinking.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/thinking_stream.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/tools.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/tools_runner.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/tools_stream.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/vertex.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/web_search.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/examples/web_search_stream.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/helpers.md +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/release-please-config.json +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/requirements-dev.lock +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_compat.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_constants.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_files.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_models.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_resource.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_compat.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_datetime_parse.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/_client.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/streaming/_beta_types.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/tools/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/tools/_beta_functions.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/lib/vertex/_client.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/pagination.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/py.typed +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/anthropic_beta_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_base64_pdf_source.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_output_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_output_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_config.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_content_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_document_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_plain_text_source.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_usage.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/message_count_tokens_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/message_create_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/batch_create_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/cache_creation.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_char_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_content_block_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_page_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_search_result_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citations_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citations_search_result_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_create_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/batch_create_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/model.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/model_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/search_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/text_citation.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/text_citation_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/thinking_config_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_union_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/usage.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/beta/messages/test_batches.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/beta/test_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/messages/test_batches.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/test_completions.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/test_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/conftest.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/snapshots.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/test_beta_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/test_messages.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/streaming/test_partial_json.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/test_bedrock.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/test_vertex.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/__init__.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_max_iterations/d105e140-a30c-4d6b-91df-257247da3623.json +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync/e2140c0f-07db-47ee-b86b-c2ec476866d5.json +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/test_functions.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/tools/test_runners.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/lib/utils.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/sample_file.txt +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_client.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_deepcopy.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_extract_files.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_files.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_legacy_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_models.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_qs.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_required_args.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_response.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_streaming.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_utils/test_datetime_parse.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tests/utils.py +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/tools.md +0 -0
- {anthropic-0.68.0 → anthropic-0.68.1}/uv.lock +0 -0
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.68.1 (2025-09-26)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.68.0...v0.68.1](https://github.com/anthropics/anthropic-sdk-python/compare/v0.68.0...v0.68.1)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* **deps:** move deprecated `dev-dependencies` in `pyproject.toml` to dev group ([df16b88](https://github.com/anthropics/anthropic-sdk-python/commit/df16b88ade25f91c0b2c88d4ae256c861e4db170))
|
|
10
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([a457673](https://github.com/anthropics/anthropic-sdk-python/commit/a45767347f27258290c572ee5dc3e44c4f314f4b))
|
|
11
|
+
* rename tool runner helper header ([a9ed3f9](https://github.com/anthropics/anthropic-sdk-python/commit/a9ed3f9c80dc1acbf7f487fc6cc3586f690ccd2d))
|
|
12
|
+
* **types:** change optional parameter type from NotGiven to Omit ([9f0a11f](https://github.com/anthropics/anthropic-sdk-python/commit/9f0a11fa6168e5d59f8a5820de5dbe7d5c2137bd))
|
|
13
|
+
* update more NotGiven usage sites ([72ab661](https://github.com/anthropics/anthropic-sdk-python/commit/72ab661827ead771923d229bd142f3b9c1a234e8))
|
|
14
|
+
|
|
3
15
|
## 0.68.0 (2025-09-17)
|
|
4
16
|
|
|
5
17
|
Full Changelog: [v0.67.0...v0.68.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.67.0...v0.68.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.68.
|
|
3
|
+
Version: 0.68.1
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "anthropic"
|
|
3
|
-
version = "0.68.
|
|
3
|
+
version = "0.68.1"
|
|
4
4
|
description = "The official Python library for the anthropic API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "MIT"
|
|
@@ -48,8 +48,16 @@ Repository = "https://github.com/anthropics/anthropic-sdk-python"
|
|
|
48
48
|
[tool.uv]
|
|
49
49
|
managed = true
|
|
50
50
|
required-version = ">=0.5.0"
|
|
51
|
+
conflicts = [
|
|
52
|
+
[
|
|
53
|
+
{ group = "pydantic-v1" },
|
|
54
|
+
{ group = "pydantic-v2" },
|
|
55
|
+
],
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[dependency-groups]
|
|
51
59
|
# version pins are in uv.lock
|
|
52
|
-
dev
|
|
60
|
+
dev = [
|
|
53
61
|
"pyright==1.1.399",
|
|
54
62
|
"mypy",
|
|
55
63
|
"respx",
|
|
@@ -65,14 +73,6 @@ dev-dependencies = [
|
|
|
65
73
|
"inline-snapshot>=0.28.0",
|
|
66
74
|
"griffe>=1",
|
|
67
75
|
]
|
|
68
|
-
conflicts = [
|
|
69
|
-
[
|
|
70
|
-
{ group = "pydantic-v1" },
|
|
71
|
-
{ group = "pydantic-v2" },
|
|
72
|
-
],
|
|
73
|
-
]
|
|
74
|
-
|
|
75
|
-
[dependency-groups]
|
|
76
76
|
pydantic-v1 = [
|
|
77
77
|
"pydantic>=1.9.0,<2",
|
|
78
78
|
]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import typing as _t
|
|
4
4
|
|
|
5
5
|
from . import types
|
|
6
|
-
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
|
|
6
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
|
|
7
7
|
from ._utils import file_from_path
|
|
8
8
|
from ._client import (
|
|
9
9
|
Client,
|
|
@@ -54,7 +54,9 @@ __all__ = [
|
|
|
54
54
|
"ProxiesTypes",
|
|
55
55
|
"NotGiven",
|
|
56
56
|
"NOT_GIVEN",
|
|
57
|
+
"not_given",
|
|
57
58
|
"Omit",
|
|
59
|
+
"omit",
|
|
58
60
|
"AnthropicError",
|
|
59
61
|
"APIError",
|
|
60
62
|
"APIStatusError",
|
|
@@ -45,7 +45,6 @@ from . import _exceptions
|
|
|
45
45
|
from ._qs import Querystring
|
|
46
46
|
from ._files import to_httpx_files, async_to_httpx_files
|
|
47
47
|
from ._types import (
|
|
48
|
-
NOT_GIVEN,
|
|
49
48
|
Body,
|
|
50
49
|
Omit,
|
|
51
50
|
Query,
|
|
@@ -60,6 +59,7 @@ from ._types import (
|
|
|
60
59
|
RequestOptions,
|
|
61
60
|
HttpxRequestFiles,
|
|
62
61
|
ModelBuilderProtocol,
|
|
62
|
+
not_given,
|
|
63
63
|
)
|
|
64
64
|
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
|
|
65
65
|
from ._compat import PYDANTIC_V1, model_copy, model_dump
|
|
@@ -150,9 +150,9 @@ class PageInfo:
|
|
|
150
150
|
def __init__(
|
|
151
151
|
self,
|
|
152
152
|
*,
|
|
153
|
-
url: URL | NotGiven =
|
|
154
|
-
json: Body | NotGiven =
|
|
155
|
-
params: Query | NotGiven =
|
|
153
|
+
url: URL | NotGiven = not_given,
|
|
154
|
+
json: Body | NotGiven = not_given,
|
|
155
|
+
params: Query | NotGiven = not_given,
|
|
156
156
|
) -> None:
|
|
157
157
|
self.url = url
|
|
158
158
|
self.json = json
|
|
@@ -608,7 +608,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
608
608
|
# we internally support defining a temporary header to override the
|
|
609
609
|
# default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response`
|
|
610
610
|
# see _response.py for implementation details
|
|
611
|
-
override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER,
|
|
611
|
+
override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given)
|
|
612
612
|
if is_given(override_cast_to):
|
|
613
613
|
options.headers = headers
|
|
614
614
|
return cast(Type[ResponseT], override_cast_to)
|
|
@@ -892,7 +892,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|
|
892
892
|
version: str,
|
|
893
893
|
base_url: str | URL,
|
|
894
894
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
895
|
-
timeout: float | Timeout | None | NotGiven =
|
|
895
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
896
896
|
http_client: httpx.Client | None = None,
|
|
897
897
|
custom_headers: Mapping[str, str] | None = None,
|
|
898
898
|
custom_query: Mapping[str, object] | None = None,
|
|
@@ -1477,7 +1477,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|
|
1477
1477
|
base_url: str | URL,
|
|
1478
1478
|
_strict_response_validation: bool,
|
|
1479
1479
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
1480
|
-
timeout: float | Timeout | None | NotGiven =
|
|
1480
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
1481
1481
|
http_client: httpx.AsyncClient | None = None,
|
|
1482
1482
|
custom_headers: Mapping[str, str] | None = None,
|
|
1483
1483
|
custom_query: Mapping[str, object] | None = None,
|
|
@@ -1954,8 +1954,8 @@ def make_request_options(
|
|
|
1954
1954
|
extra_query: Query | None = None,
|
|
1955
1955
|
extra_body: Body | None = None,
|
|
1956
1956
|
idempotency_key: str | None = None,
|
|
1957
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
1958
|
-
post_parser: PostParser | NotGiven =
|
|
1957
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1958
|
+
post_parser: PostParser | NotGiven = not_given,
|
|
1959
1959
|
) -> RequestOptions:
|
|
1960
1960
|
"""Create a dict of type RequestOptions without keys of NotGiven values."""
|
|
1961
1961
|
options: RequestOptions = {}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import TYPE_CHECKING, Any,
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Mapping
|
|
7
7
|
from typing_extensions import Self, override
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
@@ -11,7 +11,6 @@ import httpx
|
|
|
11
11
|
from . import _constants, _exceptions
|
|
12
12
|
from ._qs import Querystring
|
|
13
13
|
from ._types import (
|
|
14
|
-
NOT_GIVEN,
|
|
15
14
|
Omit,
|
|
16
15
|
Headers,
|
|
17
16
|
Timeout,
|
|
@@ -19,6 +18,7 @@ from ._types import (
|
|
|
19
18
|
Transport,
|
|
20
19
|
ProxiesTypes,
|
|
21
20
|
RequestOptions,
|
|
21
|
+
not_given,
|
|
22
22
|
)
|
|
23
23
|
from ._utils import is_given, get_async_library
|
|
24
24
|
from ._compat import cached_property
|
|
@@ -65,7 +65,7 @@ class Anthropic(SyncAPIClient):
|
|
|
65
65
|
api_key: str | None = None,
|
|
66
66
|
auth_token: str | None = None,
|
|
67
67
|
base_url: str | httpx.URL | None = None,
|
|
68
|
-
timeout:
|
|
68
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
69
69
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
70
70
|
default_headers: Mapping[str, str] | None = None,
|
|
71
71
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -203,9 +203,9 @@ class Anthropic(SyncAPIClient):
|
|
|
203
203
|
api_key: str | None = None,
|
|
204
204
|
auth_token: str | None = None,
|
|
205
205
|
base_url: str | httpx.URL | None = None,
|
|
206
|
-
timeout: float | Timeout | None | NotGiven =
|
|
206
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
207
207
|
http_client: httpx.Client | None = None,
|
|
208
|
-
max_retries: int | NotGiven =
|
|
208
|
+
max_retries: int | NotGiven = not_given,
|
|
209
209
|
default_headers: Mapping[str, str] | None = None,
|
|
210
210
|
set_default_headers: Mapping[str, str] | None = None,
|
|
211
211
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -305,7 +305,7 @@ class AsyncAnthropic(AsyncAPIClient):
|
|
|
305
305
|
api_key: str | None = None,
|
|
306
306
|
auth_token: str | None = None,
|
|
307
307
|
base_url: str | httpx.URL | None = None,
|
|
308
|
-
timeout:
|
|
308
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
309
309
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
310
310
|
default_headers: Mapping[str, str] | None = None,
|
|
311
311
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -443,9 +443,9 @@ class AsyncAnthropic(AsyncAPIClient):
|
|
|
443
443
|
api_key: str | None = None,
|
|
444
444
|
auth_token: str | None = None,
|
|
445
445
|
base_url: str | httpx.URL | None = None,
|
|
446
|
-
timeout: float | Timeout | None | NotGiven =
|
|
446
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
|
447
447
|
http_client: httpx.AsyncClient | None = None,
|
|
448
|
-
max_retries: int | NotGiven =
|
|
448
|
+
max_retries: int | NotGiven = not_given,
|
|
449
449
|
default_headers: Mapping[str, str] | None = None,
|
|
450
450
|
set_default_headers: Mapping[str, str] | None = None,
|
|
451
451
|
default_query: Mapping[str, object] | None = None,
|
|
@@ -4,7 +4,7 @@ from typing import Any, List, Tuple, Union, Mapping, TypeVar
|
|
|
4
4
|
from urllib.parse import parse_qs, urlencode
|
|
5
5
|
from typing_extensions import Literal, get_args
|
|
6
6
|
|
|
7
|
-
from ._types import
|
|
7
|
+
from ._types import NotGiven, not_given
|
|
8
8
|
from ._utils import flatten
|
|
9
9
|
|
|
10
10
|
_T = TypeVar("_T")
|
|
@@ -41,8 +41,8 @@ class Querystring:
|
|
|
41
41
|
self,
|
|
42
42
|
params: Params,
|
|
43
43
|
*,
|
|
44
|
-
array_format:
|
|
45
|
-
nested_format:
|
|
44
|
+
array_format: ArrayFormat | NotGiven = not_given,
|
|
45
|
+
nested_format: NestedFormat | NotGiven = not_given,
|
|
46
46
|
) -> str:
|
|
47
47
|
return urlencode(
|
|
48
48
|
self.stringify_items(
|
|
@@ -56,8 +56,8 @@ class Querystring:
|
|
|
56
56
|
self,
|
|
57
57
|
params: Params,
|
|
58
58
|
*,
|
|
59
|
-
array_format:
|
|
60
|
-
nested_format:
|
|
59
|
+
array_format: ArrayFormat | NotGiven = not_given,
|
|
60
|
+
nested_format: NestedFormat | NotGiven = not_given,
|
|
61
61
|
) -> list[tuple[str, str]]:
|
|
62
62
|
opts = Options(
|
|
63
63
|
qs=self,
|
|
@@ -143,8 +143,8 @@ class Options:
|
|
|
143
143
|
self,
|
|
144
144
|
qs: Querystring = _qs,
|
|
145
145
|
*,
|
|
146
|
-
array_format:
|
|
147
|
-
nested_format:
|
|
146
|
+
array_format: ArrayFormat | NotGiven = not_given,
|
|
147
|
+
nested_format: NestedFormat | NotGiven = not_given,
|
|
148
148
|
) -> None:
|
|
149
149
|
self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format
|
|
150
150
|
self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format
|
|
@@ -118,18 +118,21 @@ class RequestOptions(TypedDict, total=False):
|
|
|
118
118
|
# Sentinel class used until PEP 0661 is accepted
|
|
119
119
|
class NotGiven:
|
|
120
120
|
"""
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
For parameters with a meaningful None value, we need to distinguish between
|
|
122
|
+
the user explicitly passing None, and the user not passing the parameter at
|
|
123
|
+
all.
|
|
124
|
+
|
|
125
|
+
User code shouldn't need to use not_given directly.
|
|
123
126
|
|
|
124
127
|
For example:
|
|
125
128
|
|
|
126
129
|
```py
|
|
127
|
-
def
|
|
130
|
+
def create(timeout: Timeout | None | NotGiven = not_given): ...
|
|
128
131
|
|
|
129
132
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
create(timeout=1) # 1s timeout
|
|
134
|
+
create(timeout=None) # No timeout
|
|
135
|
+
create() # Default timeout behavior
|
|
133
136
|
```
|
|
134
137
|
"""
|
|
135
138
|
|
|
@@ -141,13 +144,14 @@ class NotGiven:
|
|
|
141
144
|
return "NOT_GIVEN"
|
|
142
145
|
|
|
143
146
|
|
|
144
|
-
|
|
147
|
+
not_given = NotGiven()
|
|
148
|
+
# for backwards compatibility:
|
|
145
149
|
NOT_GIVEN = NotGiven()
|
|
146
150
|
|
|
147
151
|
|
|
148
152
|
class Omit:
|
|
149
|
-
"""
|
|
150
|
-
|
|
153
|
+
"""
|
|
154
|
+
To explicitly omit something from being sent in a request, use `omit`.
|
|
151
155
|
|
|
152
156
|
```py
|
|
153
157
|
# as the default `Content-Type` header is `application/json` that will be sent
|
|
@@ -157,8 +161,8 @@ class Omit:
|
|
|
157
161
|
# to look something like: 'multipart/form-data; boundary=0d8382fcf5f8c3be01ca2e11002d2983'
|
|
158
162
|
client.post(..., headers={"Content-Type": "multipart/form-data"})
|
|
159
163
|
|
|
160
|
-
# instead you can remove the default `application/json` header by passing
|
|
161
|
-
client.post(..., headers={"Content-Type":
|
|
164
|
+
# instead you can remove the default `application/json` header by passing omit
|
|
165
|
+
client.post(..., headers={"Content-Type": omit})
|
|
162
166
|
```
|
|
163
167
|
"""
|
|
164
168
|
|
|
@@ -166,6 +170,9 @@ class Omit:
|
|
|
166
170
|
return False
|
|
167
171
|
|
|
168
172
|
|
|
173
|
+
omit = Omit()
|
|
174
|
+
|
|
175
|
+
|
|
169
176
|
@runtime_checkable
|
|
170
177
|
class ModelBuilderProtocol(Protocol):
|
|
171
178
|
@classmethod
|
|
@@ -268,7 +268,7 @@ def _transform_typeddict(
|
|
|
268
268
|
annotations = get_type_hints(expected_type, include_extras=True)
|
|
269
269
|
for key, value in data.items():
|
|
270
270
|
if not is_given(value):
|
|
271
|
-
# we don't need to include
|
|
271
|
+
# we don't need to include omitted values here as they'll
|
|
272
272
|
# be stripped out before the request is sent anyway
|
|
273
273
|
continue
|
|
274
274
|
|
|
@@ -434,7 +434,7 @@ async def _async_transform_typeddict(
|
|
|
434
434
|
annotations = get_type_hints(expected_type, include_extras=True)
|
|
435
435
|
for key, value in data.items():
|
|
436
436
|
if not is_given(value):
|
|
437
|
-
# we don't need to include
|
|
437
|
+
# we don't need to include omitted values here as they'll
|
|
438
438
|
# be stripped out before the request is sent anyway
|
|
439
439
|
continue
|
|
440
440
|
|
|
@@ -21,7 +21,7 @@ from typing_extensions import TypeGuard
|
|
|
21
21
|
|
|
22
22
|
import sniffio
|
|
23
23
|
|
|
24
|
-
from .._types import NotGiven, FileTypes,
|
|
24
|
+
from .._types import Omit, NotGiven, FileTypes, HeadersLike
|
|
25
25
|
|
|
26
26
|
_T = TypeVar("_T")
|
|
27
27
|
_TupleT = TypeVar("_TupleT", bound=Tuple[object, ...])
|
|
@@ -63,7 +63,7 @@ def _extract_items(
|
|
|
63
63
|
try:
|
|
64
64
|
key = path[index]
|
|
65
65
|
except IndexError:
|
|
66
|
-
if
|
|
66
|
+
if not is_given(obj):
|
|
67
67
|
# no value was provided - we can safely ignore
|
|
68
68
|
return []
|
|
69
69
|
|
|
@@ -126,8 +126,8 @@ def _extract_items(
|
|
|
126
126
|
return []
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
def is_given(obj:
|
|
130
|
-
return not isinstance(obj, NotGiven)
|
|
129
|
+
def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]:
|
|
130
|
+
return not isinstance(obj, NotGiven) and not isinstance(obj, Omit)
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
# Type safe methods for narrowing types with TypeVars.
|
|
@@ -147,7 +147,6 @@ class BaseSyncToolRunner(BaseToolRunner[BetaFunctionTool[Any]], Generic[RunnerIt
|
|
|
147
147
|
self._cached_tool_call_response = response
|
|
148
148
|
return response
|
|
149
149
|
|
|
150
|
-
|
|
151
150
|
def _generate_tool_call_response(self) -> BetaMessageParam | None:
|
|
152
151
|
content = self._get_last_assistant_message_content()
|
|
153
152
|
if not content:
|
|
@@ -8,7 +8,7 @@ from itertools import chain
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
10
|
from ... import _legacy_response
|
|
11
|
-
from ..._types import
|
|
11
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
|
|
12
12
|
from ..._utils import is_given, extract_files, maybe_transform, strip_not_given, deepcopy_minimal, async_maybe_transform
|
|
13
13
|
from ..._compat import cached_property
|
|
14
14
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -57,16 +57,16 @@ class Files(SyncAPIResource):
|
|
|
57
57
|
def list(
|
|
58
58
|
self,
|
|
59
59
|
*,
|
|
60
|
-
after_id: str |
|
|
61
|
-
before_id: str |
|
|
62
|
-
limit: int |
|
|
63
|
-
betas: List[AnthropicBetaParam] |
|
|
60
|
+
after_id: str | Omit = omit,
|
|
61
|
+
before_id: str | Omit = omit,
|
|
62
|
+
limit: int | Omit = omit,
|
|
63
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
64
64
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
65
65
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
66
66
|
extra_headers: Headers | None = None,
|
|
67
67
|
extra_query: Query | None = None,
|
|
68
68
|
extra_body: Body | None = None,
|
|
69
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
69
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
70
70
|
) -> SyncPage[FileMetadata]:
|
|
71
71
|
"""List Files
|
|
72
72
|
|
|
@@ -98,7 +98,7 @@ class Files(SyncAPIResource):
|
|
|
98
98
|
{
|
|
99
99
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
100
100
|
if is_given(betas)
|
|
101
|
-
else
|
|
101
|
+
else omit
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
104
|
**(extra_headers or {}),
|
|
@@ -128,13 +128,13 @@ class Files(SyncAPIResource):
|
|
|
128
128
|
self,
|
|
129
129
|
file_id: str,
|
|
130
130
|
*,
|
|
131
|
-
betas: List[AnthropicBetaParam] |
|
|
131
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
132
132
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
133
133
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
134
134
|
extra_headers: Headers | None = None,
|
|
135
135
|
extra_query: Query | None = None,
|
|
136
136
|
extra_body: Body | None = None,
|
|
137
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
137
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
138
138
|
) -> DeletedFile:
|
|
139
139
|
"""
|
|
140
140
|
Delete File
|
|
@@ -159,7 +159,7 @@ class Files(SyncAPIResource):
|
|
|
159
159
|
{
|
|
160
160
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
161
161
|
if is_given(betas)
|
|
162
|
-
else
|
|
162
|
+
else omit
|
|
163
163
|
}
|
|
164
164
|
),
|
|
165
165
|
**(extra_headers or {}),
|
|
@@ -177,13 +177,13 @@ class Files(SyncAPIResource):
|
|
|
177
177
|
self,
|
|
178
178
|
file_id: str,
|
|
179
179
|
*,
|
|
180
|
-
betas: List[AnthropicBetaParam] |
|
|
180
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
181
181
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
182
182
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
183
183
|
extra_headers: Headers | None = None,
|
|
184
184
|
extra_query: Query | None = None,
|
|
185
185
|
extra_body: Body | None = None,
|
|
186
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
186
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
187
187
|
) -> BinaryAPIResponse:
|
|
188
188
|
"""
|
|
189
189
|
Download File
|
|
@@ -209,7 +209,7 @@ class Files(SyncAPIResource):
|
|
|
209
209
|
{
|
|
210
210
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
211
211
|
if is_given(betas)
|
|
212
|
-
else
|
|
212
|
+
else omit
|
|
213
213
|
}
|
|
214
214
|
),
|
|
215
215
|
**(extra_headers or {}),
|
|
@@ -227,13 +227,13 @@ class Files(SyncAPIResource):
|
|
|
227
227
|
self,
|
|
228
228
|
file_id: str,
|
|
229
229
|
*,
|
|
230
|
-
betas: List[AnthropicBetaParam] |
|
|
230
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
231
231
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
232
232
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
233
233
|
extra_headers: Headers | None = None,
|
|
234
234
|
extra_query: Query | None = None,
|
|
235
235
|
extra_body: Body | None = None,
|
|
236
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
236
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
237
237
|
) -> FileMetadata:
|
|
238
238
|
"""
|
|
239
239
|
Get File Metadata
|
|
@@ -258,7 +258,7 @@ class Files(SyncAPIResource):
|
|
|
258
258
|
{
|
|
259
259
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
260
260
|
if is_given(betas)
|
|
261
|
-
else
|
|
261
|
+
else omit
|
|
262
262
|
}
|
|
263
263
|
),
|
|
264
264
|
**(extra_headers or {}),
|
|
@@ -276,13 +276,13 @@ class Files(SyncAPIResource):
|
|
|
276
276
|
self,
|
|
277
277
|
*,
|
|
278
278
|
file: FileTypes,
|
|
279
|
-
betas: List[AnthropicBetaParam] |
|
|
279
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
280
280
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
281
281
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
282
282
|
extra_headers: Headers | None = None,
|
|
283
283
|
extra_query: Query | None = None,
|
|
284
284
|
extra_body: Body | None = None,
|
|
285
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
285
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
286
286
|
) -> FileMetadata:
|
|
287
287
|
"""
|
|
288
288
|
Upload File
|
|
@@ -305,7 +305,7 @@ class Files(SyncAPIResource):
|
|
|
305
305
|
{
|
|
306
306
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
307
307
|
if is_given(betas)
|
|
308
|
-
else
|
|
308
|
+
else omit
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
311
|
**(extra_headers or {}),
|
|
@@ -351,16 +351,16 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
351
351
|
def list(
|
|
352
352
|
self,
|
|
353
353
|
*,
|
|
354
|
-
after_id: str |
|
|
355
|
-
before_id: str |
|
|
356
|
-
limit: int |
|
|
357
|
-
betas: List[AnthropicBetaParam] |
|
|
354
|
+
after_id: str | Omit = omit,
|
|
355
|
+
before_id: str | Omit = omit,
|
|
356
|
+
limit: int | Omit = omit,
|
|
357
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
358
358
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
359
359
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
360
360
|
extra_headers: Headers | None = None,
|
|
361
361
|
extra_query: Query | None = None,
|
|
362
362
|
extra_body: Body | None = None,
|
|
363
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
363
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
364
364
|
) -> AsyncPaginator[FileMetadata, AsyncPage[FileMetadata]]:
|
|
365
365
|
"""List Files
|
|
366
366
|
|
|
@@ -392,7 +392,7 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
392
392
|
{
|
|
393
393
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
394
394
|
if is_given(betas)
|
|
395
|
-
else
|
|
395
|
+
else omit
|
|
396
396
|
}
|
|
397
397
|
),
|
|
398
398
|
**(extra_headers or {}),
|
|
@@ -422,13 +422,13 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
422
422
|
self,
|
|
423
423
|
file_id: str,
|
|
424
424
|
*,
|
|
425
|
-
betas: List[AnthropicBetaParam] |
|
|
425
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
426
426
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
427
427
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
428
428
|
extra_headers: Headers | None = None,
|
|
429
429
|
extra_query: Query | None = None,
|
|
430
430
|
extra_body: Body | None = None,
|
|
431
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
431
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
432
432
|
) -> DeletedFile:
|
|
433
433
|
"""
|
|
434
434
|
Delete File
|
|
@@ -453,7 +453,7 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
453
453
|
{
|
|
454
454
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
455
455
|
if is_given(betas)
|
|
456
|
-
else
|
|
456
|
+
else omit
|
|
457
457
|
}
|
|
458
458
|
),
|
|
459
459
|
**(extra_headers or {}),
|
|
@@ -471,13 +471,13 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
471
471
|
self,
|
|
472
472
|
file_id: str,
|
|
473
473
|
*,
|
|
474
|
-
betas: List[AnthropicBetaParam] |
|
|
474
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
475
475
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
476
476
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
477
477
|
extra_headers: Headers | None = None,
|
|
478
478
|
extra_query: Query | None = None,
|
|
479
479
|
extra_body: Body | None = None,
|
|
480
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
480
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
481
481
|
) -> AsyncBinaryAPIResponse:
|
|
482
482
|
"""
|
|
483
483
|
Download File
|
|
@@ -503,7 +503,7 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
503
503
|
{
|
|
504
504
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
505
505
|
if is_given(betas)
|
|
506
|
-
else
|
|
506
|
+
else omit
|
|
507
507
|
}
|
|
508
508
|
),
|
|
509
509
|
**(extra_headers or {}),
|
|
@@ -521,13 +521,13 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
521
521
|
self,
|
|
522
522
|
file_id: str,
|
|
523
523
|
*,
|
|
524
|
-
betas: List[AnthropicBetaParam] |
|
|
524
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
525
525
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
526
526
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
527
527
|
extra_headers: Headers | None = None,
|
|
528
528
|
extra_query: Query | None = None,
|
|
529
529
|
extra_body: Body | None = None,
|
|
530
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
530
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
531
531
|
) -> FileMetadata:
|
|
532
532
|
"""
|
|
533
533
|
Get File Metadata
|
|
@@ -552,7 +552,7 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
552
552
|
{
|
|
553
553
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
554
554
|
if is_given(betas)
|
|
555
|
-
else
|
|
555
|
+
else omit
|
|
556
556
|
}
|
|
557
557
|
),
|
|
558
558
|
**(extra_headers or {}),
|
|
@@ -570,13 +570,13 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
570
570
|
self,
|
|
571
571
|
*,
|
|
572
572
|
file: FileTypes,
|
|
573
|
-
betas: List[AnthropicBetaParam] |
|
|
573
|
+
betas: List[AnthropicBetaParam] | Omit = omit,
|
|
574
574
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
575
575
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
576
576
|
extra_headers: Headers | None = None,
|
|
577
577
|
extra_query: Query | None = None,
|
|
578
578
|
extra_body: Body | None = None,
|
|
579
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
579
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
580
580
|
) -> FileMetadata:
|
|
581
581
|
"""
|
|
582
582
|
Upload File
|
|
@@ -599,7 +599,7 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
599
599
|
{
|
|
600
600
|
"anthropic-beta": ",".join(chain((str(e) for e in betas), ["files-api-2025-04-14"]))
|
|
601
601
|
if is_given(betas)
|
|
602
|
-
else
|
|
602
|
+
else omit
|
|
603
603
|
}
|
|
604
604
|
),
|
|
605
605
|
**(extra_headers or {}),
|