anthropic 0.55.0__tar.gz → 0.56.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.
Files changed (397) hide show
  1. anthropic-0.56.0/.release-please-manifest.json +3 -0
  2. {anthropic-0.55.0 → anthropic-0.56.0}/CHANGELOG.md +29 -0
  3. {anthropic-0.55.0 → anthropic-0.56.0}/PKG-INFO +1 -1
  4. {anthropic-0.55.0 → anthropic-0.56.0}/bin/check-release-environment +1 -1
  5. {anthropic-0.55.0 → anthropic-0.56.0}/pyproject.toml +1 -1
  6. {anthropic-0.55.0 → anthropic-0.56.0}/requirements-dev.lock +1 -1
  7. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_version.py +1 -1
  8. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_client.py +28 -6
  9. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_client.py +8 -2
  10. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/messages/messages.py +1 -0
  11. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/fixtures/basic_response.txt +1 -1
  12. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/test_beta_messages.py +4 -4
  13. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/test_messages.py +5 -5
  14. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/test_bedrock.py +69 -1
  15. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/test_vertex.py +54 -0
  16. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_client.py +2 -0
  17. {anthropic-0.55.0 → anthropic-0.56.0}/uv.lock +1681 -1679
  18. anthropic-0.55.0/.release-please-manifest.json +0 -3
  19. {anthropic-0.55.0 → anthropic-0.56.0}/.gitignore +0 -0
  20. {anthropic-0.55.0 → anthropic-0.56.0}/CONTRIBUTING.md +0 -0
  21. {anthropic-0.55.0 → anthropic-0.56.0}/LICENSE +0 -0
  22. {anthropic-0.55.0 → anthropic-0.56.0}/README.md +0 -0
  23. {anthropic-0.55.0 → anthropic-0.56.0}/SECURITY.md +0 -0
  24. {anthropic-0.55.0 → anthropic-0.56.0}/api.md +0 -0
  25. {anthropic-0.55.0 → anthropic-0.56.0}/bin/publish-pypi +0 -0
  26. {anthropic-0.55.0 → anthropic-0.56.0}/examples/.keep +0 -0
  27. {anthropic-0.55.0 → anthropic-0.56.0}/examples/batch_results.py +0 -0
  28. {anthropic-0.55.0 → anthropic-0.56.0}/examples/bedrock.py +0 -0
  29. {anthropic-0.55.0 → anthropic-0.56.0}/examples/images.py +0 -0
  30. {anthropic-0.55.0 → anthropic-0.56.0}/examples/logo.png +0 -0
  31. {anthropic-0.55.0 → anthropic-0.56.0}/examples/mcp.py +0 -0
  32. {anthropic-0.55.0 → anthropic-0.56.0}/examples/messages.py +0 -0
  33. {anthropic-0.55.0 → anthropic-0.56.0}/examples/messages_stream.py +0 -0
  34. {anthropic-0.55.0 → anthropic-0.56.0}/examples/text_completions_demo_async.py +0 -0
  35. {anthropic-0.55.0 → anthropic-0.56.0}/examples/text_completions_demo_sync.py +0 -0
  36. {anthropic-0.55.0 → anthropic-0.56.0}/examples/text_completions_streaming.py +0 -0
  37. {anthropic-0.55.0 → anthropic-0.56.0}/examples/thinking.py +0 -0
  38. {anthropic-0.55.0 → anthropic-0.56.0}/examples/thinking_stream.py +0 -0
  39. {anthropic-0.55.0 → anthropic-0.56.0}/examples/tools.py +0 -0
  40. {anthropic-0.55.0 → anthropic-0.56.0}/examples/tools_stream.py +0 -0
  41. {anthropic-0.55.0 → anthropic-0.56.0}/examples/vertex.py +0 -0
  42. {anthropic-0.55.0 → anthropic-0.56.0}/examples/web_search.py +0 -0
  43. {anthropic-0.55.0 → anthropic-0.56.0}/examples/web_search_stream.py +0 -0
  44. {anthropic-0.55.0 → anthropic-0.56.0}/helpers.md +0 -0
  45. {anthropic-0.55.0 → anthropic-0.56.0}/mypy.ini +0 -0
  46. {anthropic-0.55.0 → anthropic-0.56.0}/release-please-config.json +0 -0
  47. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/__init__.py +0 -0
  48. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_base_client.py +0 -0
  49. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_client.py +0 -0
  50. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_compat.py +0 -0
  51. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_constants.py +0 -0
  52. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_decoders/jsonl.py +0 -0
  53. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_exceptions.py +0 -0
  54. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_files.py +0 -0
  55. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_legacy_response.py +0 -0
  56. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_models.py +0 -0
  57. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_qs.py +0 -0
  58. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_resource.py +0 -0
  59. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_response.py +0 -0
  60. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_streaming.py +0 -0
  61. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_types.py +0 -0
  62. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/__init__.py +0 -0
  63. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_httpx.py +0 -0
  64. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_logs.py +0 -0
  65. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_proxy.py +0 -0
  66. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_reflection.py +0 -0
  67. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
  68. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_streams.py +0 -0
  69. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_sync.py +0 -0
  70. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_transform.py +0 -0
  71. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_typing.py +0 -0
  72. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/_utils/_utils.py +0 -0
  73. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/.keep +0 -0
  74. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/__init__.py +0 -0
  75. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/_extras/__init__.py +0 -0
  76. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/_extras/_common.py +0 -0
  77. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
  78. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
  79. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
  80. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
  81. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
  82. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
  83. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
  84. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/__init__.py +0 -0
  85. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
  86. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
  87. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_messages.py +0 -0
  88. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/streaming/_types.py +0 -0
  89. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/__init__.py +0 -0
  90. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_auth.py +0 -0
  91. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_beta.py +0 -0
  92. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
  93. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/pagination.py +0 -0
  94. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/py.typed +0 -0
  95. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/__init__.py +0 -0
  96. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/__init__.py +0 -0
  97. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/beta.py +0 -0
  98. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/files.py +0 -0
  99. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
  100. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
  101. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/messages/messages.py +0 -0
  102. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/beta/models.py +0 -0
  103. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/completions.py +0 -0
  104. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/messages/__init__.py +0 -0
  105. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/messages/batches.py +0 -0
  106. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/resources/models.py +0 -0
  107. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/__init__.py +0 -0
  108. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/anthropic_beta_param.py +0 -0
  109. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/base64_image_source_param.py +0 -0
  110. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
  111. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/__init__.py +0 -0
  112. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
  113. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
  114. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
  115. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
  116. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
  117. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
  118. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
  119. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
  120. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
  121. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
  122. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
  123. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
  124. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
  125. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
  126. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
  127. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
  128. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
  129. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
  130. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
  131. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
  132. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
  133. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
  134. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
  135. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
  136. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
  137. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
  138. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
  139. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_container.py +0 -0
  140. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
  141. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
  142. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block.py +0 -0
  143. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
  144. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
  145. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
  146. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
  147. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
  148. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
  149. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
  150. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
  151. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
  152. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
  153. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message.py +0 -0
  154. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
  155. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
  156. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
  157. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
  158. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
  159. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
  160. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
  161. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
  162. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
  163. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
  164. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
  165. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
  166. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
  167. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
  168. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
  169. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
  170. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
  171. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
  172. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
  173. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
  174. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
  175. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
  176. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
  177. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
  178. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
  179. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
  180. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
  181. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
  182. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
  183. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
  184. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
  185. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
  186. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
  187. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
  188. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
  189. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
  190. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
  191. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
  192. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
  193. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
  194. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
  195. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
  196. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
  197. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
  198. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
  199. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_param.py +0 -0
  200. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
  201. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
  202. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
  203. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
  204. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
  205. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
  206. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
  207. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
  208. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
  209. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_usage.py +0 -0
  210. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
  211. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
  212. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
  213. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
  214. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
  215. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
  216. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
  217. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
  218. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
  219. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
  220. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/deleted_file.py +0 -0
  221. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/file_list_params.py +0 -0
  222. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/file_metadata.py +0 -0
  223. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
  224. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/message_count_tokens_params.py +0 -0
  225. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/message_create_params.py +0 -0
  226. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
  227. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/batch_create_params.py +0 -0
  228. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
  229. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
  230. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
  231. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
  232. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
  233. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
  234. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
  235. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
  236. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
  237. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
  238. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta/model_list_params.py +0 -0
  239. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_api_error.py +0 -0
  240. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_authentication_error.py +0 -0
  241. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_billing_error.py +0 -0
  242. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_error.py +0 -0
  243. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_error_response.py +0 -0
  244. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
  245. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
  246. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_not_found_error.py +0 -0
  247. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
  248. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_permission_error.py +0 -0
  249. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
  250. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
  251. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_char_location.py +0 -0
  252. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_char_location_param.py +0 -0
  253. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_content_block_location.py +0 -0
  254. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
  255. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_page_location.py +0 -0
  256. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_page_location_param.py +0 -0
  257. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
  258. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citations_config_param.py +0 -0
  259. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citations_delta.py +0 -0
  260. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
  261. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/completion.py +0 -0
  262. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/completion_create_params.py +0 -0
  263. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block.py +0 -0
  264. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_delta_event.py +0 -0
  265. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_param.py +0 -0
  266. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
  267. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_source_param.py +0 -0
  268. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_start_event.py +0 -0
  269. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/content_block_stop_event.py +0 -0
  270. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/document_block_param.py +0 -0
  271. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/image_block_param.py +0 -0
  272. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/input_json_delta.py +0 -0
  273. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message.py +0 -0
  274. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
  275. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
  276. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_create_params.py +0 -0
  277. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_delta_event.py +0 -0
  278. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_delta_usage.py +0 -0
  279. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_param.py +0 -0
  280. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_start_event.py +0 -0
  281. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_stop_event.py +0 -0
  282. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_stream_event.py +0 -0
  283. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/message_tokens_count.py +0 -0
  284. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/__init__.py +0 -0
  285. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/batch_create_params.py +0 -0
  286. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
  287. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
  288. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch.py +0 -0
  289. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
  290. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
  291. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
  292. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
  293. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
  294. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
  295. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
  296. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/metadata_param.py +0 -0
  297. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model.py +0 -0
  298. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model_info.py +0 -0
  299. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model_list_params.py +0 -0
  300. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/model_param.py +0 -0
  301. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/plain_text_source_param.py +0 -0
  302. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
  303. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
  304. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
  305. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
  306. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
  307. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_start_event.py +0 -0
  308. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
  309. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
  310. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
  311. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
  312. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/server_tool_usage.py +0 -0
  313. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/server_tool_use_block.py +0 -0
  314. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
  315. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/__init__.py +0 -0
  316. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/api_error_object.py +0 -0
  317. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/authentication_error.py +0 -0
  318. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/billing_error.py +0 -0
  319. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/error_object.py +0 -0
  320. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/error_response.py +0 -0
  321. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
  322. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
  323. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/not_found_error.py +0 -0
  324. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
  325. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/permission_error.py +0 -0
  326. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
  327. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/signature_delta.py +0 -0
  328. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/stop_reason.py +0 -0
  329. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_block.py +0 -0
  330. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_block_param.py +0 -0
  331. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_citation.py +0 -0
  332. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_citation_param.py +0 -0
  333. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/text_delta.py +0 -0
  334. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_block.py +0 -0
  335. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_block_param.py +0 -0
  336. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
  337. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
  338. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_config_param.py +0 -0
  339. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/thinking_delta.py +0 -0
  340. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
  341. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
  342. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
  343. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
  344. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_param.py +0 -0
  345. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
  346. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_param.py +0 -0
  347. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_result_block_param.py +0 -0
  348. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
  349. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_union_param.py +0 -0
  350. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_use_block.py +0 -0
  351. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/tool_use_block_param.py +0 -0
  352. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/url_image_source_param.py +0 -0
  353. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
  354. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/usage.py +0 -0
  355. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_result_block.py +0 -0
  356. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
  357. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
  358. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
  359. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
  360. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
  361. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
  362. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
  363. {anthropic-0.55.0 → anthropic-0.56.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
  364. {anthropic-0.55.0 → anthropic-0.56.0}/tests/__init__.py +0 -0
  365. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/__init__.py +0 -0
  366. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/__init__.py +0 -0
  367. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/messages/__init__.py +0 -0
  368. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/messages/test_batches.py +0 -0
  369. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/test_files.py +0 -0
  370. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/test_messages.py +0 -0
  371. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/beta/test_models.py +0 -0
  372. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/messages/__init__.py +0 -0
  373. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/messages/test_batches.py +0 -0
  374. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/test_completions.py +0 -0
  375. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/test_messages.py +0 -0
  376. {anthropic-0.55.0 → anthropic-0.56.0}/tests/api_resources/test_models.py +0 -0
  377. {anthropic-0.55.0 → anthropic-0.56.0}/tests/conftest.py +0 -0
  378. {anthropic-0.55.0 → anthropic-0.56.0}/tests/decoders/test_jsonl.py +0 -0
  379. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/__init__.py +0 -0
  380. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
  381. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
  382. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/helpers.py +0 -0
  383. {anthropic-0.55.0 → anthropic-0.56.0}/tests/lib/streaming/test_partial_json.py +0 -0
  384. {anthropic-0.55.0 → anthropic-0.56.0}/tests/sample_file.txt +0 -0
  385. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_deepcopy.py +0 -0
  386. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_extract_files.py +0 -0
  387. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_files.py +0 -0
  388. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_legacy_response.py +0 -0
  389. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_models.py +0 -0
  390. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_qs.py +0 -0
  391. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_required_args.py +0 -0
  392. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_response.py +0 -0
  393. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_streaming.py +0 -0
  394. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_transform.py +0 -0
  395. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_utils/test_proxy.py +0 -0
  396. {anthropic-0.55.0 → anthropic-0.56.0}/tests/test_utils/test_typing.py +0 -0
  397. {anthropic-0.55.0 → anthropic-0.56.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.56.0"
3
+ }
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.56.0 (2025-07-01)
4
+
5
+ Full Changelog: [v0.55.0...v0.56.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.55.0...v0.56.0)
6
+
7
+ ### Features
8
+
9
+ * **bedrock:** automatically infer AWS Region ([#974](https://github.com/anthropics/anthropic-sdk-python/issues/974)) ([f648e09](https://github.com/anthropics/anthropic-sdk-python/commit/f648e09c43ea227a7a388cbdd21e8ddb762963e4))
10
+ * **vertex:** support global region endpoint ([1fd1adf](https://github.com/anthropics/anthropic-sdk-python/commit/1fd1adf736e4e5a3e16819c052903dfe4a436132))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **ci:** correct conditional ([18e625a](https://github.com/anthropics/anthropic-sdk-python/commit/18e625a1a6de15ff7729149c19b8c22191ed8622))
16
+ * **ci:** release-doctor — report correct token name ([c91f50d](https://github.com/anthropics/anthropic-sdk-python/commit/c91f50dbd7057ea465b9d71795488cdae8c1a13a))
17
+ * **tests:** avoid deprecation warnings ([71b432f](https://github.com/anthropics/anthropic-sdk-python/commit/71b432f2d22d72f6763d7042677cb43122302ded))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **ci:** only run for pushes and fork pull requests ([447b793](https://github.com/anthropics/anthropic-sdk-python/commit/447b793baf8ba4df63a8fcfcd870a85dd2d07f07))
23
+ * **internal:** add breaking change detection ([e6d0eca](https://github.com/anthropics/anthropic-sdk-python/commit/e6d0eca3fc5c918b56e42fbe46fcf9bedd26ca4d))
24
+ * **internal:** codegen related update ([f88517b](https://github.com/anthropics/anthropic-sdk-python/commit/f88517bfb56969674b82193b788d2043806e5a39))
25
+ * **internal:** codegen related update ([a385cb9](https://github.com/anthropics/anthropic-sdk-python/commit/a385cb9270f8214907ce1f4923e16537ac10cdab))
26
+ * **internal:** codegen related update ([9d4b537](https://github.com/anthropics/anthropic-sdk-python/commit/9d4b537be3e248f2ce0d98721f9bbbdc32b75575))
27
+ * **internal:** codegen related update ([6a3a6fe](https://github.com/anthropics/anthropic-sdk-python/commit/6a3a6fe3743ee448a83f294d394c5bf9b214176f))
28
+ * **internal:** codegen related update ([28704a6](https://github.com/anthropics/anthropic-sdk-python/commit/28704a63eb20f6ed78f13b424190cac14aca8a0f))
29
+ * **tests:** run tests with min and max supported Python versions by default ([0ad8534](https://github.com/anthropics/anthropic-sdk-python/commit/0ad85343fbe4d2934aa826fde36c7927f7b57803))
30
+ * **tests:** skip some failing tests on the latest python versions ([f63a2d2](https://github.com/anthropics/anthropic-sdk-python/commit/f63a2d29d5c56175078eaf5c67a142aec0937174))
31
+
3
32
  ## 0.55.0 (2025-06-23)
4
33
 
5
34
  Full Changelog: [v0.54.0...v0.55.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.54.0...v0.55.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anthropic
3
- Version: 0.55.0
3
+ Version: 0.56.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
@@ -7,7 +7,7 @@ if [ -z "${STAINLESS_API_KEY}" ]; then
7
7
  fi
8
8
 
9
9
  if [ -z "${PYPI_TOKEN}" ]; then
10
- errors+=("The ANTHROPIC_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
10
+ errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
11
11
  fi
12
12
 
13
13
  lenErrors=${#errors[@]}
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "anthropic"
3
- version = "0.55.0"
3
+ version = "0.56.0"
4
4
  description = "The official Python library for the anthropic API"
5
5
  dynamic = ["readme"]
6
6
  license = "MIT"
@@ -11,7 +11,7 @@ anyio==4.8.0 ; python_full_version >= '3.9'
11
11
  # via
12
12
  # anthropic
13
13
  # httpx
14
- boto3-stubs==1.38.35
14
+ boto3-stubs==1.38.42
15
15
  botocore-stubs==1.38.30
16
16
  # via boto3-stubs
17
17
  certifi==2024.12.14
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "anthropic"
4
- __version__ = "0.55.0" # x-release-please-version
4
+ __version__ = "0.56.0" # x-release-please-version
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import os
4
+ import logging
4
5
  import urllib.parse
5
6
  from typing import Any, Union, Mapping, TypeVar
6
7
  from typing_extensions import Self, override
@@ -26,6 +27,8 @@ from ._stream_decoder import AWSEventStreamDecoder
26
27
  from ...resources.messages import Messages, AsyncMessages
27
28
  from ...resources.completions import Completions, AsyncCompletions
28
29
 
30
+ log: logging.Logger = logging.getLogger(__name__)
31
+
29
32
  DEFAULT_VERSION = "bedrock-2023-05-31"
30
33
 
31
34
  _HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient])
@@ -64,6 +67,29 @@ def _prepare_options(input_options: FinalRequestOptions) -> FinalRequestOptions:
64
67
  return options
65
68
 
66
69
 
70
+ def _infer_region() -> str:
71
+ """
72
+ Infer the AWS region from the environment variables or
73
+ from the boto3 session if available.
74
+ """
75
+ aws_region = os.environ.get("AWS_REGION")
76
+ if aws_region is None:
77
+ try:
78
+ import boto3
79
+
80
+ session = boto3.Session()
81
+ if session.region_name:
82
+ aws_region = session.region_name
83
+ except ImportError:
84
+ pass
85
+
86
+ if aws_region is None:
87
+ log.warning("No AWS region specified, defaulting to us-east-1")
88
+ aws_region = "us-east-1" # fall back to legacy behavior
89
+
90
+ return aws_region
91
+
92
+
67
93
  class BaseBedrockClient(BaseClient[_HttpxClientT, _DefaultStreamT]):
68
94
  @override
69
95
  def _make_status_error(
@@ -135,9 +161,7 @@ class AnthropicBedrock(BaseBedrockClient[httpx.Client, Stream[Any]], SyncAPIClie
135
161
 
136
162
  self.aws_access_key = aws_access_key
137
163
 
138
- if aws_region is None:
139
- aws_region = os.environ.get("AWS_REGION") or "us-east-1"
140
- self.aws_region = aws_region
164
+ self.aws_region = _infer_region() if aws_region is None else aws_region
141
165
  self.aws_profile = aws_profile
142
166
 
143
167
  self.aws_session_token = aws_session_token
@@ -279,9 +303,7 @@ class AsyncAnthropicBedrock(BaseBedrockClient[httpx.AsyncClient, AsyncStream[Any
279
303
 
280
304
  self.aws_access_key = aws_access_key
281
305
 
282
- if aws_region is None:
283
- aws_region = os.environ.get("AWS_REGION") or "us-east-1"
284
- self.aws_region = aws_region
306
+ self.aws_region = _infer_region() if aws_region is None else aws_region
285
307
  self.aws_profile = aws_profile
286
308
 
287
309
  self.aws_session_token = aws_session_token
@@ -117,7 +117,10 @@ class AnthropicVertex(BaseVertexClient[httpx.Client, Stream[Any]], SyncAPIClient
117
117
  if base_url is None:
118
118
  base_url = os.environ.get("ANTHROPIC_VERTEX_BASE_URL")
119
119
  if base_url is None:
120
- base_url = f"https://{region}-aiplatform.googleapis.com/v1"
120
+ if region == "global":
121
+ base_url = "https://aiplatform.googleapis.com/v1"
122
+ else:
123
+ base_url = f"https://{region}-aiplatform.googleapis.com/v1"
121
124
 
122
125
  super().__init__(
123
126
  version=__version__,
@@ -259,7 +262,10 @@ class AsyncAnthropicVertex(BaseVertexClient[httpx.AsyncClient, AsyncStream[Any]]
259
262
  if base_url is None:
260
263
  base_url = os.environ.get("ANTHROPIC_VERTEX_BASE_URL")
261
264
  if base_url is None:
262
- base_url = f"https://{region}-aiplatform.googleapis.com/v1"
265
+ if region == "global":
266
+ base_url = "https://aiplatform.googleapis.com/v1"
267
+ else:
268
+ base_url = f"https://{region}-aiplatform.googleapis.com/v1"
263
269
 
264
270
  super().__init__(
265
271
  version=__version__,
@@ -54,6 +54,7 @@ DEPRECATED_MODELS = {
54
54
  "claude-instant-1.1-100k": "November 6th, 2024",
55
55
  "claude-instant-1.2": "November 6th, 2024",
56
56
  "claude-3-sonnet-20240229": "July 21st, 2025",
57
+ "claude-3-opus-20240229": "January 5th, 2026",
57
58
  "claude-2.1": "July 21st, 2025",
58
59
  "claude-2.0": "July 21st, 2025",
59
60
  }
@@ -1,5 +1,5 @@
1
1
  event: message_start
2
- data: {"type":"message_start","message":{"id":"msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK","type":"message","role":"assistant","content":[],"model":"claude-3-opus-20240229","stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":11,"output_tokens":1}}}
2
+ data: {"type":"message_start","message":{"id":"msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK","type":"message","role":"assistant","content":[],"model":"claude-3-opus-latest","stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":11,"output_tokens":1}}}
3
3
 
4
4
  event: content_block_start
5
5
  data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
@@ -30,7 +30,7 @@ _T = TypeVar("_T")
30
30
  # Expected message fixtures
31
31
  EXPECTED_BASIC_MESSAGE = {
32
32
  "id": "msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK",
33
- "model": "claude-3-opus-20240229",
33
+ "model": "claude-3-opus-latest",
34
34
  "role": "assistant",
35
35
  "stop_reason": "end_turn",
36
36
  "type": "message",
@@ -200,7 +200,7 @@ class TestSyncMessages:
200
200
  "content": "Say hello there!",
201
201
  }
202
202
  ],
203
- model="claude-3-opus-20240229",
203
+ model="claude-3-opus-latest",
204
204
  ) as stream:
205
205
  assert isinstance(cast(Any, stream), BetaMessageStream)
206
206
 
@@ -240,7 +240,7 @@ class TestSyncMessages:
240
240
  "content": "Say hello there!",
241
241
  }
242
242
  ],
243
- model="claude-3-opus-20240229",
243
+ model="claude-3-opus-latest",
244
244
  ) as stream:
245
245
  assert not stream.response.is_closed
246
246
 
@@ -301,7 +301,7 @@ class TestAsyncMessages:
301
301
  "content": "Say hello there!",
302
302
  }
303
303
  ],
304
- model="claude-3-opus-20240229",
304
+ model="claude-3-opus-latest",
305
305
  ) as stream:
306
306
  assert not stream.response.is_closed
307
307
 
@@ -28,7 +28,7 @@ _T = TypeVar("_T")
28
28
 
29
29
  def assert_basic_response(events: list[MessageStreamEvent], message: Message) -> None:
30
30
  assert message.id == "msg_4QpJur2dWWDjF6C758FbBw5vm12BaVipnK"
31
- assert message.model == "claude-3-opus-20240229"
31
+ assert message.model == "claude-3-opus-latest"
32
32
  assert message.role == "assistant"
33
33
  assert message.stop_reason == "end_turn"
34
34
  assert message.stop_sequence is None
@@ -120,7 +120,7 @@ class TestSyncMessages:
120
120
  "content": "Say hello there!",
121
121
  }
122
122
  ],
123
- model="claude-3-opus-20240229",
123
+ model="claude-3-opus-latest",
124
124
  ) as stream:
125
125
  with pytest.warns(DeprecationWarning):
126
126
  assert isinstance(cast(Any, stream), Stream)
@@ -141,7 +141,7 @@ class TestSyncMessages:
141
141
  "content": "Say hello there!",
142
142
  }
143
143
  ],
144
- model="claude-3-opus-20240229",
144
+ model="claude-3-opus-latest",
145
145
  ) as stream:
146
146
  assert not stream.response.is_closed
147
147
 
@@ -202,7 +202,7 @@ class TestAsyncMessages:
202
202
  "content": "Say hello there!",
203
203
  }
204
204
  ],
205
- model="claude-3-opus-20240229",
205
+ model="claude-3-opus-latest",
206
206
  ) as stream:
207
207
  with pytest.warns(DeprecationWarning):
208
208
  assert isinstance(cast(Any, stream), AsyncStream)
@@ -224,7 +224,7 @@ class TestAsyncMessages:
224
224
  "content": "Say hello there!",
225
225
  }
226
226
  ],
227
- model="claude-3-opus-20240229",
227
+ model="claude-3-opus-latest",
228
228
  ) as stream:
229
229
  assert not stream.response.is_closed
230
230
 
@@ -1,5 +1,7 @@
1
1
  import re
2
- from typing import cast
2
+ import typing as t
3
+ import tempfile
4
+ from typing import TypedDict, cast
3
5
  from typing_extensions import Protocol
4
6
 
5
7
  import httpx
@@ -24,6 +26,41 @@ class MockRequestCall(Protocol):
24
26
  request: httpx.Request
25
27
 
26
28
 
29
+ class AwsConfigProfile(TypedDict):
30
+ # Available regions: https://docs.aws.amazon.com/global-infrastructure/latest/regions/aws-regions.html#available-regions
31
+ name: t.Union[t.Literal["default"], str]
32
+ region: str
33
+
34
+
35
+ def profile_to_ini(profile: AwsConfigProfile) -> str:
36
+ """
37
+ Convert an AWS config profile to an INI format string.
38
+ """
39
+
40
+ profile_name = profile["name"] if profile["name"] == "default" else f"profile {profile['name']}"
41
+ return f"[{profile_name}]\nregion = {profile['region']}\n"
42
+
43
+
44
+ @pytest.fixture
45
+ def profiles() -> t.List[AwsConfigProfile]:
46
+ return [
47
+ {"name": "default", "region": "us-east-2"},
48
+ ]
49
+
50
+
51
+ @pytest.fixture
52
+ def mock_aws_config(
53
+ profiles: t.List[AwsConfigProfile],
54
+ monkeypatch: t.Any,
55
+ ) -> t.Iterable[None]:
56
+ with tempfile.NamedTemporaryFile(mode="w+", delete=True) as temp_file:
57
+ for profile in profiles:
58
+ temp_file.write(profile_to_ini(profile))
59
+ temp_file.flush()
60
+ monkeypatch.setenv("AWS_CONFIG_FILE", str(temp_file.name))
61
+ yield
62
+
63
+
27
64
  @pytest.mark.filterwarnings("ignore::DeprecationWarning")
28
65
  @pytest.mark.respx()
29
66
  def test_messages_retries(respx_mock: MockRouter) -> None:
@@ -127,3 +164,34 @@ def test_application_inference_profile(respx_mock: MockRouter) -> None:
127
164
  calls[1].request.url
128
165
  == "https://bedrock-runtime.us-east-1.amazonaws.com/model/arn:aws:bedrock:us-east-1:123456789012:application-inference-profile%2Fjf2sje1c0jnb/invoke"
129
166
  )
167
+
168
+
169
+ def test_region_infer_from_profile(
170
+ mock_aws_config: None, # noqa: ARG001
171
+ profiles: t.List[AwsConfigProfile],
172
+ ) -> None:
173
+ client = AnthropicBedrock()
174
+ assert client.aws_region == profiles[0]["region"]
175
+
176
+
177
+ @pytest.mark.parametrize(
178
+ "profiles, aws_profile",
179
+ [
180
+ pytest.param([{"name": "default", "region": "us-east-2"}], "default", id="default profile"),
181
+ pytest.param(
182
+ [{"name": "default", "region": "us-east-2"}, {"name": "custom", "region": "us-west-1"}],
183
+ "custom",
184
+ id="custom profile",
185
+ ),
186
+ ],
187
+ )
188
+ def test_region_infer_from_specified_profile(
189
+ mock_aws_config: None, # noqa: ARG001
190
+ profiles: t.List[AwsConfigProfile],
191
+ aws_profile: str,
192
+ monkeypatch: t.Any,
193
+ ) -> None:
194
+ monkeypatch.setenv("AWS_PROFILE", aws_profile)
195
+ client = AnthropicBedrock()
196
+
197
+ assert client.aws_region == next(profile for profile in profiles if profile["name"] == aws_profile)["region"]
@@ -119,6 +119,32 @@ class TestAnthropicVertex:
119
119
  ):
120
120
  client.copy(set_default_headers={}, default_headers={"X-Foo": "Bar"})
121
121
 
122
+ def test_global_region_base_url(self) -> None:
123
+ """Test that global region uses the correct base URL."""
124
+ client = AnthropicVertex(region="global", project_id="test-project", access_token="fake-token")
125
+ assert str(client.base_url).rstrip("/") == "https://aiplatform.googleapis.com/v1"
126
+
127
+ @pytest.mark.parametrize("region", ["us-central1", "europe-west1", "asia-southeast1"])
128
+ def test_regional_base_url(self, region: str) -> None:
129
+ """Test that regional endpoints use the correct base URL format."""
130
+ client = AnthropicVertex(region=region, project_id="test-project", access_token="fake-token")
131
+ expected_url = f"https://{region}-aiplatform.googleapis.com/v1"
132
+ assert str(client.base_url).rstrip("/") == expected_url
133
+
134
+ def test_env_var_base_url_override(self, monkeypatch: pytest.MonkeyPatch) -> None:
135
+ """Test that ANTHROPIC_VERTEX_BASE_URL environment variable does not override client arg."""
136
+ test_url = "https://custom-endpoint.googleapis.com/v1"
137
+
138
+ monkeypatch.setenv("ANTHROPIC_VERTEX_BASE_URL", test_url)
139
+
140
+ client = AnthropicVertex(
141
+ region="global", # we expect this to get ignored since the user is providing a base_url
142
+ project_id="test-project",
143
+ access_token="fake-token",
144
+ base_url="https://test.googleapis.com/v1",
145
+ )
146
+ assert str(client.base_url).rstrip("/") == "https://test.googleapis.com/v1"
147
+
122
148
 
123
149
  class TestAsyncAnthropicVertex:
124
150
  client = AsyncAnthropicVertex(region="region", project_id="project", access_token="my-access-token")
@@ -222,3 +248,31 @@ class TestAsyncAnthropicVertex:
222
248
  match="`default_headers` and `set_default_headers` arguments are mutually exclusive",
223
249
  ):
224
250
  client.copy(set_default_headers={}, default_headers={"X-Foo": "Bar"})
251
+
252
+ def test_global_region_base_url(self) -> None:
253
+ """Test that global region uses the correct base URL."""
254
+ client = AsyncAnthropicVertex(region="global", project_id="test-project", access_token="fake-token")
255
+ assert str(client.base_url).rstrip("/") == "https://aiplatform.googleapis.com/v1"
256
+
257
+ def test_regional_base_url(self) -> None:
258
+ """Test that regional endpoints use the correct base URL format."""
259
+ test_regions = ["us-central1", "europe-west1", "asia-southeast1"]
260
+
261
+ for region in test_regions:
262
+ client = AsyncAnthropicVertex(region=region, project_id="test-project", access_token="fake-token")
263
+ expected_url = f"https://{region}-aiplatform.googleapis.com/v1"
264
+ assert str(client.base_url).rstrip("/") == expected_url
265
+
266
+ def test_env_var_base_url_override(self, monkeypatch: pytest.MonkeyPatch) -> None:
267
+ """Test that ANTHROPIC_VERTEX_BASE_URL environment variable does not override client arg."""
268
+ test_url = "https://custom-endpoint.googleapis.com/v1"
269
+
270
+ monkeypatch.setenv("ANTHROPIC_VERTEX_BASE_URL", test_url)
271
+
272
+ client = AsyncAnthropicVertex(
273
+ region="global", # we expect this to get ignored since the user is providing a base_url
274
+ project_id="test-project",
275
+ access_token="fake-token",
276
+ base_url="https://test.googleapis.com/v1",
277
+ )
278
+ assert str(client.base_url).rstrip("/") == "https://test.googleapis.com/v1"
@@ -192,6 +192,7 @@ class TestAnthropic:
192
192
  copy_param = copy_signature.parameters.get(name)
193
193
  assert copy_param is not None, f"copy() signature is missing the {name} param"
194
194
 
195
+ @pytest.mark.skipif(sys.version_info >= (3, 10), reason="fails because of a memory leak that started from 3.12")
195
196
  def test_copy_build_request(self) -> None:
196
197
  options = FinalRequestOptions(method="get", url="/foo")
197
198
 
@@ -1089,6 +1090,7 @@ class TestAsyncAnthropic:
1089
1090
  copy_param = copy_signature.parameters.get(name)
1090
1091
  assert copy_param is not None, f"copy() signature is missing the {name} param"
1091
1092
 
1093
+ @pytest.mark.skipif(sys.version_info >= (3, 10), reason="fails because of a memory leak that started from 3.12")
1092
1094
  def test_copy_build_request(self) -> None:
1093
1095
  options = FinalRequestOptions(method="get", url="/foo")
1094
1096