anthropic 0.73.0__tar.gz → 0.74.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.74.0/.release-please-manifest.json +3 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/CHANGELOG.md +24 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/CONTRIBUTING.md +22 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/PKG-INFO +1 -1
- anthropic-0.74.0/examples/azure.py +26 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/memory/basic.py +5 -5
- {anthropic-0.73.0 → anthropic-0.74.0}/pyproject.toml +1 -1
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/__init__.py +1 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_client.py +8 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_version.py +1 -1
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/_files.py +2 -2
- anthropic-0.74.0/src/anthropic/lib/foundry.md +127 -0
- anthropic-0.74.0/src/anthropic/lib/foundry.py +443 -0
- anthropic-0.74.0/tests/lib/test_azure.py +106 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/tools/test_runners.py +3 -3
- anthropic-0.73.0/.release-please-manifest.json +0 -3
- {anthropic-0.73.0 → anthropic-0.74.0}/.gitignore +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/LICENSE +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/README.md +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/SECURITY.md +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/api.md +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/bin/check-release-environment +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/bin/publish-pypi +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/.keep +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/batch_results.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/bedrock.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/images.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/logo.png +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/messages_stream.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/structured_outputs.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/structured_outputs_streaming.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/thinking.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/thinking_stream.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/tools.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/tools_runner.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/tools_stream.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/vertex.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/web_search.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/examples/web_search_stream.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/helpers.md +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/release-please-config.json +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/requirements-dev.lock +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_base_client.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_compat.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_constants.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_files.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_models.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_qs.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_resource.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_types.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_compat.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_datetime_parse.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_transform.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/_utils/_utils.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/_parse/_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/_parse/_transform.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/_client.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/tools/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/tools/_beta_builtin_memory_tool.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/tools/_beta_functions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/tools/_beta_runner.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/lib/vertex/_client.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/pagination.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/py.typed +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/files.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/messages/messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/models.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/skills/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/skills/skills.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/beta/skills/versions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/completions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/messages/batches.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/messages/messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/resources/models.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/anthropic_beta_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_all_thinking_turns_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_base64_pdf_source.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_config.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_container_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_content_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_context_management_config_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_context_management_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_count_tokens_context_management_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_document_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_input_tokens_trigger_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_json_output_format_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_create_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_delete_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_insert_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_rename_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_memory_tool_20250818_view_command.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_plain_text_source.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_skill.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_skill_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_thinking_turns_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_uses_keep_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_tool_uses_trigger_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_usage.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/message_count_tokens_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/message_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/batch_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/parsed_beta_message.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skill_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skill_create_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skill_delete_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skill_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skill_list_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skill_retrieve_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/version_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/version_create_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/version_delete_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/version_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/version_list_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta/skills/version_retrieve_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/cache_creation.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_char_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_content_block_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_page_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_search_result_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citations_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citations_search_result_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/batch_create_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/model.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/model_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/search_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/text_citation.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/text_citation_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/thinking_config_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_union_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/usage.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/messages/test_batches.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/skills/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/skills/test_versions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/test_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/beta/test_skills.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/messages/test_batches.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/test_completions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/test_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/conftest.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/_parse/test_transform.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/snapshots.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/test_beta_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/test_messages.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/streaming/test_partial_json.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/test_bedrock.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/test_vertex.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/tools/__init__.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/tools/test_functions.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/lib/utils.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/sample_file.txt +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_client.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_deepcopy.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_extract_files.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_files.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_legacy_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_models.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_qs.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_required_args.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_response.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_streaming.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_transform.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tests/utils.py +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/tools.md +0 -0
- {anthropic-0.73.0 → anthropic-0.74.0}/uv.lock +0 -0
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.74.0 (2025-11-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.73.0...v0.74.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.73.0...v0.74.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add Foundry SDK ([3ae9e45](https://github.com/anthropics/anthropic-sdk-python/commit/3ae9e45451d3ff85b25ba5f5f9f8786ea35e3cc9))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **examples/memory:** properly add assistant_content to messages ([#1049](https://github.com/anthropics/anthropic-sdk-python/issues/1049)) ([9c7141b](https://github.com/anthropics/anthropic-sdk-python/commit/9c7141b887bbde251b6b740405a91d1726308c32))
|
|
15
|
+
* use posix paths in file collection for cross-platform compatibility ([d9c6f40](https://github.com/anthropics/anthropic-sdk-python/commit/d9c6f4006a43fe094acbf652a8dbd4234853ed70)), closes [#1051](https://github.com/anthropics/anthropic-sdk-python/issues/1051)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **internal:** remove unnecessary wrapper around external snapshots ([19eceac](https://github.com/anthropics/anthropic-sdk-python/commit/19eceac2406e4c71db14f9e870aaa901b4249219))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Documentation
|
|
24
|
+
|
|
25
|
+
* explain snapshot update process ([#1040](https://github.com/anthropics/anthropic-sdk-python/issues/1040)) ([b61fd87](https://github.com/anthropics/anthropic-sdk-python/commit/b61fd87986a90105c20d4f35e34a9f69ec73645f))
|
|
26
|
+
|
|
3
27
|
## 0.73.0 (2025-11-14)
|
|
4
28
|
|
|
5
29
|
Full Changelog: [v0.72.1...v0.73.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.72.1...v0.73.0)
|
|
@@ -96,6 +96,28 @@ $ npx prism mock path/to/your/openapi.yml
|
|
|
96
96
|
$ ./scripts/test
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
+
### Snapshots
|
|
100
|
+
|
|
101
|
+
Some tests use [inline-snapshot](https://15r10nk.github.io/inline-snapshot/latest/). To update them after making changes, rerun the tests with the `--inline-snapshot=fix` and `-n0` options:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
./scripts/test --inline-snapshot=fix -n0
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
> [!NOTE]
|
|
108
|
+
> `inline-snapshot` is incompatible with [pytest-xdist](https://github.com/pytest-dev/pytest-xdist), so you need to disable parallel execution `(-n0)` when using the `--inline-snapshot` option.
|
|
109
|
+
|
|
110
|
+
In addition, some tests capture snapshots of the HTTP requests they make.
|
|
111
|
+
To refresh these snapshots, run the tests with the `ANTHROPIC_LIVE=1` environment variable enabled.
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
ANTHROPIC_LIVE=1 ./scripts/test --inline-snapshot=fix
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
> [!NOTE]
|
|
118
|
+
> Sometimes it makes sense to update only the inline snapshots `(--inline-snapshot=fix)` without refreshing the HTTP snapshots `(ANTHROPIC_LIVE=1)`.
|
|
119
|
+
> This is useful when the endpoint hasn’t changed, but your code handles the response differently and the assertions need updating.
|
|
120
|
+
|
|
99
121
|
## Linting and formatting
|
|
100
122
|
|
|
101
123
|
This repository uses [ruff](https://github.com/astral-sh/ruff) and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.74.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
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.9"
|
|
3
|
+
# dependencies = [
|
|
4
|
+
# "anthropic",
|
|
5
|
+
# ]
|
|
6
|
+
#
|
|
7
|
+
# [tool.uv.sources]
|
|
8
|
+
# anthropic = { path = "../", editable = true }
|
|
9
|
+
# ///
|
|
10
|
+
|
|
11
|
+
from anthropic import AnthropicFoundry
|
|
12
|
+
|
|
13
|
+
cl = AnthropicFoundry(
|
|
14
|
+
resource="your-resource-name",
|
|
15
|
+
api_key="your-foundry-anthropic-api-key",
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
response = cl.messages.create(
|
|
19
|
+
model="claude-haiku-4-5",
|
|
20
|
+
messages=[
|
|
21
|
+
{"role": "user", "content": "Hello!"},
|
|
22
|
+
],
|
|
23
|
+
max_tokens=1024,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
print(response)
|
|
@@ -335,7 +335,6 @@ def conversation_loop():
|
|
|
335
335
|
raise
|
|
336
336
|
|
|
337
337
|
# Process all messages from the runner
|
|
338
|
-
assistant_content: list[BetaContentBlockParam] = []
|
|
339
338
|
for message in runner:
|
|
340
339
|
spinner.stop()
|
|
341
340
|
|
|
@@ -351,6 +350,7 @@ def conversation_loop():
|
|
|
351
350
|
print(f"\n🧹 [Context Management: {edit.type} applied]")
|
|
352
351
|
|
|
353
352
|
# Process content blocks
|
|
353
|
+
assistant_content: list[BetaContentBlockParam] = []
|
|
354
354
|
for content in message.content:
|
|
355
355
|
if content.type == "text":
|
|
356
356
|
print(content.text, end="", flush=True)
|
|
@@ -371,6 +371,10 @@ def conversation_loop():
|
|
|
371
371
|
}
|
|
372
372
|
)
|
|
373
373
|
|
|
374
|
+
# Store assistant message
|
|
375
|
+
if assistant_content:
|
|
376
|
+
messages.append({"role": "assistant", "content": assistant_content})
|
|
377
|
+
|
|
374
378
|
# Generate tool response automatically
|
|
375
379
|
tool_response = runner.generate_tool_call_response()
|
|
376
380
|
if tool_response and tool_response["content"]:
|
|
@@ -381,10 +385,6 @@ def conversation_loop():
|
|
|
381
385
|
if isinstance(result, dict) and result.get("type") == "tool_result":
|
|
382
386
|
print(f"[Tool result processed]")
|
|
383
387
|
|
|
384
|
-
# Store assistant message
|
|
385
|
-
if assistant_content:
|
|
386
|
-
messages.append({"role": "assistant", "content": assistant_content})
|
|
387
|
-
|
|
388
388
|
print()
|
|
389
389
|
|
|
390
390
|
|
|
@@ -101,6 +101,7 @@ if not _t.TYPE_CHECKING:
|
|
|
101
101
|
from .lib.tools import beta_tool, beta_async_tool
|
|
102
102
|
from .lib.vertex import *
|
|
103
103
|
from .lib.bedrock import *
|
|
104
|
+
from .lib.foundry import AnthropicFoundry as AnthropicFoundry, AsyncAnthropicFoundry as AsyncAnthropicFoundry
|
|
104
105
|
from .lib.streaming import *
|
|
105
106
|
|
|
106
107
|
_setup_logging()
|
|
@@ -183,6 +183,10 @@ class Anthropic(SyncAPIClient):
|
|
|
183
183
|
|
|
184
184
|
@override
|
|
185
185
|
def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
|
|
186
|
+
if headers.get("Authorization") or headers.get("X-Api-Key"):
|
|
187
|
+
# valid
|
|
188
|
+
return
|
|
189
|
+
|
|
186
190
|
if self.api_key and headers.get("X-Api-Key"):
|
|
187
191
|
return
|
|
188
192
|
if isinstance(custom_headers.get("X-Api-Key"), Omit):
|
|
@@ -423,6 +427,10 @@ class AsyncAnthropic(AsyncAPIClient):
|
|
|
423
427
|
|
|
424
428
|
@override
|
|
425
429
|
def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
|
|
430
|
+
if headers.get("Authorization") or headers.get("X-Api-Key"):
|
|
431
|
+
# valid
|
|
432
|
+
return
|
|
433
|
+
|
|
426
434
|
if self.api_key and headers.get("X-Api-Key"):
|
|
427
435
|
return
|
|
428
436
|
if isinstance(custom_headers.get("X-Api-Key"), Omit):
|
|
@@ -22,7 +22,7 @@ def _collect_files(directory: Path, relative_to: Path, files: list[FileTypes]) -
|
|
|
22
22
|
_collect_files(path, relative_to, files)
|
|
23
23
|
continue
|
|
24
24
|
|
|
25
|
-
files.append((
|
|
25
|
+
files.append((path.relative_to(relative_to).as_posix(), path.read_bytes()))
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
async def async_files_from_dir(directory: str | os.PathLike[str]) -> list[FileTypes]:
|
|
@@ -39,4 +39,4 @@ async def _async_collect_files(directory: anyio.Path, relative_to: anyio.Path, f
|
|
|
39
39
|
await _async_collect_files(path, relative_to, files)
|
|
40
40
|
continue
|
|
41
41
|
|
|
42
|
-
files.append((
|
|
42
|
+
files.append((path.relative_to(relative_to).as_posix(), await path.read_bytes()))
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Anthropic Foundry
|
|
2
|
+
|
|
3
|
+
To use this library with Foundry, use the `AnthropicFoundry` class instead of the `Anthropic` class.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pip install anthropic
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
### Basic Usage with API Key
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
from anthropic import AnthropicFoundry
|
|
18
|
+
|
|
19
|
+
client = AnthropicFoundry(
|
|
20
|
+
api_key="...", # defaults to ANTHROPIC_FOUNDRY_API_KEY environment variable
|
|
21
|
+
resource="my-resource", # your Foundry resource
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
message = client.messages.create(
|
|
25
|
+
model="claude-3-5-sonnet-20241022",
|
|
26
|
+
max_tokens=1024,
|
|
27
|
+
messages=[{"role": "user", "content": "Hello!"}],
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
print(message.content[0].text)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Using Azure AD Token Provider
|
|
34
|
+
|
|
35
|
+
For enhanced security, you can use Azure AD (Microsoft Entra) authentication instead of an API key:
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from anthropic import AnthropicFoundry
|
|
39
|
+
from azure.identity import DefaultAzureCredential
|
|
40
|
+
from azure.identity import get_bearer_token_provider
|
|
41
|
+
|
|
42
|
+
credential = DefaultAzureCredential()
|
|
43
|
+
token_provider = get_bearer_token_provider(
|
|
44
|
+
credential,
|
|
45
|
+
"https://ai.azure.com/.default"
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
client = AnthropicFoundry(
|
|
49
|
+
azure_ad_token_provider=token_provider,
|
|
50
|
+
resource="my-resource",
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
message = client.messages.create(
|
|
54
|
+
model="claude-3-5-sonnet-20241022",
|
|
55
|
+
max_tokens=1024,
|
|
56
|
+
messages=[{"role": "user", "content": "Hello!"}],
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
print(message.content[0].text)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Examples
|
|
63
|
+
|
|
64
|
+
### Streaming Messages
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
from anthropic import AnthropicFoundry
|
|
68
|
+
|
|
69
|
+
client = AnthropicFoundry(
|
|
70
|
+
api_key="...",
|
|
71
|
+
resource="my-resource",
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
with client.messages.stream(
|
|
75
|
+
model="claude-3-5-sonnet-20241022",
|
|
76
|
+
max_tokens=1024,
|
|
77
|
+
messages=[{"role": "user", "content": "Write a haiku about programming"}],
|
|
78
|
+
) as stream:
|
|
79
|
+
for text in stream.text_stream:
|
|
80
|
+
print(text, end="", flush=True)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Async Usage
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
from anthropic import AsyncAnthropicFoundry
|
|
87
|
+
|
|
88
|
+
async def main():
|
|
89
|
+
client = AsyncAnthropicFoundry(
|
|
90
|
+
api_key="...",
|
|
91
|
+
resource="my-resource",
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
message = await client.messages.create(
|
|
95
|
+
model="claude-3-5-sonnet-20241022",
|
|
96
|
+
max_tokens=1024,
|
|
97
|
+
messages=[{"role": "user", "content": "Hello!"}],
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
print(message.content[0].text)
|
|
101
|
+
|
|
102
|
+
import asyncio
|
|
103
|
+
asyncio.run(main())
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Async Streaming
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
from anthropic import AsyncAnthropicFoundry
|
|
110
|
+
|
|
111
|
+
async def main():
|
|
112
|
+
client = AsyncAnthropicFoundry(
|
|
113
|
+
api_key="...",
|
|
114
|
+
resource="my-resource",
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
async with client.messages.stream(
|
|
118
|
+
model="claude-3-5-sonnet-20241022",
|
|
119
|
+
max_tokens=1024,
|
|
120
|
+
messages=[{"role": "user", "content": "Write a haiku about programming"}],
|
|
121
|
+
) as stream:
|
|
122
|
+
async for text in stream.text_stream:
|
|
123
|
+
print(text, end="", flush=True)
|
|
124
|
+
|
|
125
|
+
import asyncio
|
|
126
|
+
asyncio.run(main())
|
|
127
|
+
```
|