anthropic 0.70.0__tar.gz → 0.71.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 (498) hide show
  1. anthropic-0.71.0/.release-please-manifest.json +3 -0
  2. {anthropic-0.70.0 → anthropic-0.71.0}/CHANGELOG.md +8 -0
  3. {anthropic-0.70.0 → anthropic-0.71.0}/PKG-INFO +1 -1
  4. {anthropic-0.70.0 → anthropic-0.71.0}/api.md +43 -0
  5. {anthropic-0.70.0 → anthropic-0.71.0}/pyproject.toml +1 -1
  6. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_version.py +1 -1
  7. anthropic-0.71.0/src/anthropic/lib/__init__.py +1 -0
  8. anthropic-0.71.0/src/anthropic/lib/_files.py +42 -0
  9. anthropic-0.71.0/src/anthropic/pagination.py +200 -0
  10. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/__init__.py +14 -0
  11. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/beta.py +32 -0
  12. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/messages/messages.py +140 -122
  13. anthropic-0.71.0/src/anthropic/resources/beta/skills/__init__.py +33 -0
  14. anthropic-0.71.0/src/anthropic/resources/beta/skills/skills.py +680 -0
  15. anthropic-0.71.0/src/anthropic/resources/beta/skills/versions.py +658 -0
  16. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/completions.py +36 -42
  17. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/messages/messages.py +90 -96
  18. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/anthropic_beta_param.py +1 -0
  19. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/__init__.py +9 -0
  20. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_container.py +5 -0
  21. anthropic-0.71.0/src/anthropic/types/beta/beta_container_params.py +18 -0
  22. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_message.py +4 -1
  23. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +1 -1
  24. anthropic-0.71.0/src/anthropic/types/beta/beta_skill.py +18 -0
  25. anthropic-0.71.0/src/anthropic/types/beta/beta_skill_params.py +18 -0
  26. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +1 -1
  27. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/message_count_tokens_params.py +14 -10
  28. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/message_create_params.py +25 -19
  29. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/batch_create_params.py +1 -0
  30. anthropic-0.71.0/src/anthropic/types/beta/skill_create_params.py +31 -0
  31. anthropic-0.71.0/src/anthropic/types/beta/skill_create_response.py +49 -0
  32. anthropic-0.71.0/src/anthropic/types/beta/skill_delete_response.py +19 -0
  33. anthropic-0.71.0/src/anthropic/types/beta/skill_list_params.py +38 -0
  34. anthropic-0.71.0/src/anthropic/types/beta/skill_list_response.py +49 -0
  35. anthropic-0.71.0/src/anthropic/types/beta/skill_retrieve_response.py +49 -0
  36. anthropic-0.71.0/src/anthropic/types/beta/skills/__init__.py +10 -0
  37. anthropic-0.71.0/src/anthropic/types/beta/skills/version_create_params.py +24 -0
  38. anthropic-0.71.0/src/anthropic/types/beta/skills/version_create_response.py +49 -0
  39. anthropic-0.71.0/src/anthropic/types/beta/skills/version_delete_response.py +19 -0
  40. anthropic-0.71.0/src/anthropic/types/beta/skills/version_list_params.py +25 -0
  41. anthropic-0.71.0/src/anthropic/types/beta/skills/version_list_response.py +49 -0
  42. anthropic-0.71.0/src/anthropic/types/beta/skills/version_retrieve_response.py +49 -0
  43. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/completion_create_params.py +5 -6
  44. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_count_tokens_params.py +9 -9
  45. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_create_params.py +13 -15
  46. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/batch_create_params.py +1 -0
  47. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/stop_reason.py +1 -3
  48. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/thinking_config_enabled_param.py +1 -1
  49. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/beta/messages/test_batches.py +28 -10
  50. anthropic-0.71.0/tests/api_resources/beta/skills/test_versions.py +458 -0
  51. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/beta/test_messages.py +56 -20
  52. anthropic-0.71.0/tests/api_resources/beta/test_skills.py +360 -0
  53. anthropic-0.71.0/tests/api_resources/messages/__init__.py +1 -0
  54. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/messages/test_batches.py +6 -6
  55. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/test_messages.py +16 -16
  56. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_client.py +12 -12
  57. anthropic-0.70.0/.release-please-manifest.json +0 -3
  58. anthropic-0.70.0/src/anthropic/pagination.py +0 -84
  59. anthropic-0.70.0/tests/lib/tools/__init__.py +0 -0
  60. {anthropic-0.70.0 → anthropic-0.71.0}/.gitignore +0 -0
  61. {anthropic-0.70.0 → anthropic-0.71.0}/CONTRIBUTING.md +0 -0
  62. {anthropic-0.70.0 → anthropic-0.71.0}/LICENSE +0 -0
  63. {anthropic-0.70.0 → anthropic-0.71.0}/README.md +0 -0
  64. {anthropic-0.70.0 → anthropic-0.71.0}/SECURITY.md +0 -0
  65. {anthropic-0.70.0 → anthropic-0.71.0}/bin/check-release-environment +0 -0
  66. {anthropic-0.70.0 → anthropic-0.71.0}/bin/publish-pypi +0 -0
  67. {anthropic-0.70.0 → anthropic-0.71.0}/examples/.keep +0 -0
  68. {anthropic-0.70.0 → anthropic-0.71.0}/examples/batch_results.py +0 -0
  69. {anthropic-0.70.0 → anthropic-0.71.0}/examples/bedrock.py +0 -0
  70. {anthropic-0.70.0 → anthropic-0.71.0}/examples/images.py +0 -0
  71. {anthropic-0.70.0 → anthropic-0.71.0}/examples/logo.png +0 -0
  72. {anthropic-0.70.0 → anthropic-0.71.0}/examples/memory/basic.py +0 -0
  73. {anthropic-0.70.0 → anthropic-0.71.0}/examples/messages.py +0 -0
  74. {anthropic-0.70.0 → anthropic-0.71.0}/examples/messages_stream.py +0 -0
  75. {anthropic-0.70.0 → anthropic-0.71.0}/examples/text_completions_demo_async.py +0 -0
  76. {anthropic-0.70.0 → anthropic-0.71.0}/examples/text_completions_demo_sync.py +0 -0
  77. {anthropic-0.70.0 → anthropic-0.71.0}/examples/text_completions_streaming.py +0 -0
  78. {anthropic-0.70.0 → anthropic-0.71.0}/examples/thinking.py +0 -0
  79. {anthropic-0.70.0 → anthropic-0.71.0}/examples/thinking_stream.py +0 -0
  80. {anthropic-0.70.0 → anthropic-0.71.0}/examples/tools.py +0 -0
  81. {anthropic-0.70.0 → anthropic-0.71.0}/examples/tools_runner.py +0 -0
  82. {anthropic-0.70.0 → anthropic-0.71.0}/examples/tools_stream.py +0 -0
  83. {anthropic-0.70.0 → anthropic-0.71.0}/examples/vertex.py +0 -0
  84. {anthropic-0.70.0 → anthropic-0.71.0}/examples/web_search.py +0 -0
  85. {anthropic-0.70.0 → anthropic-0.71.0}/examples/web_search_stream.py +0 -0
  86. {anthropic-0.70.0 → anthropic-0.71.0}/helpers.md +0 -0
  87. {anthropic-0.70.0 → anthropic-0.71.0}/release-please-config.json +0 -0
  88. {anthropic-0.70.0 → anthropic-0.71.0}/requirements-dev.lock +0 -0
  89. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/__init__.py +0 -0
  90. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_base_client.py +0 -0
  91. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_client.py +0 -0
  92. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_compat.py +0 -0
  93. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_constants.py +0 -0
  94. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_decoders/jsonl.py +0 -0
  95. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_exceptions.py +0 -0
  96. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_files.py +0 -0
  97. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_legacy_response.py +0 -0
  98. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_models.py +0 -0
  99. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_qs.py +0 -0
  100. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_resource.py +0 -0
  101. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_response.py +0 -0
  102. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_streaming.py +0 -0
  103. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_types.py +0 -0
  104. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/__init__.py +0 -0
  105. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_compat.py +0 -0
  106. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_datetime_parse.py +0 -0
  107. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_httpx.py +0 -0
  108. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_logs.py +0 -0
  109. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_proxy.py +0 -0
  110. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_reflection.py +0 -0
  111. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
  112. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_streams.py +0 -0
  113. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_sync.py +0 -0
  114. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_transform.py +0 -0
  115. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_typing.py +0 -0
  116. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/_utils/_utils.py +0 -0
  117. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/.keep +0 -0
  118. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/_extras/__init__.py +0 -0
  119. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/_extras/_common.py +0 -0
  120. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
  121. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
  122. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
  123. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
  124. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
  125. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/_client.py +0 -0
  126. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
  127. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
  128. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/streaming/__init__.py +0 -0
  129. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
  130. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
  131. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/streaming/_messages.py +0 -0
  132. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/streaming/_types.py +0 -0
  133. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/tools/__init__.py +0 -0
  134. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/tools/_beta_builtin_memory_tool.py +0 -0
  135. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/tools/_beta_functions.py +0 -0
  136. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/tools/_beta_runner.py +0 -0
  137. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/vertex/__init__.py +0 -0
  138. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/vertex/_auth.py +0 -0
  139. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/vertex/_beta.py +0 -0
  140. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
  141. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/lib/vertex/_client.py +0 -0
  142. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/py.typed +0 -0
  143. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/__init__.py +0 -0
  144. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/files.py +0 -0
  145. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
  146. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
  147. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/beta/models.py +0 -0
  148. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/messages/__init__.py +0 -0
  149. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/messages/batches.py +0 -0
  150. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/resources/models.py +0 -0
  151. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/__init__.py +0 -0
  152. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/base64_image_source_param.py +0 -0
  153. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
  154. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
  155. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
  156. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_base64_pdf_source.py +0 -0
  157. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
  158. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block.py +0 -0
  159. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block_param.py +0 -0
  160. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block.py +0 -0
  161. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block_param.py +0 -0
  162. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block.py +0 -0
  163. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block_param.py +0 -0
  164. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error.py +0 -0
  165. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error_param.py +0 -0
  166. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
  167. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
  168. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
  169. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
  170. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_config.py +0 -0
  171. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
  172. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
  173. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
  174. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
  175. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
  176. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
  177. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
  178. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
  179. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
  180. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
  181. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py +0 -0
  182. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_response.py +0 -0
  183. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
  184. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
  185. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
  186. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
  187. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
  188. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +0 -0
  189. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
  190. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
  191. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
  192. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
  193. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
  194. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
  195. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
  196. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
  197. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
  198. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_content_block.py +0 -0
  199. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
  200. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
  201. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
  202. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_context_management_config_param.py +0 -0
  203. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_context_management_response.py +0 -0
  204. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_count_tokens_context_management_response.py +0 -0
  205. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_document_block.py +0 -0
  206. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
  207. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
  208. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
  209. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
  210. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py +0 -0
  211. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_input_tokens_trigger_param.py +0 -0
  212. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
  213. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
  214. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
  215. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_command.py +0 -0
  216. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_create_command.py +0 -0
  217. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_delete_command.py +0 -0
  218. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_insert_command.py +0 -0
  219. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_param.py +0 -0
  220. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_rename_command.py +0 -0
  221. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py +0 -0
  222. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_memory_tool_20250818_view_command.py +0 -0
  223. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
  224. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
  225. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
  226. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
  227. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
  228. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_plain_text_source.py +0 -0
  229. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
  230. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
  231. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
  232. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
  233. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
  234. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
  235. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
  236. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
  237. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
  238. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
  239. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
  240. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
  241. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
  242. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
  243. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
  244. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
  245. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
  246. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
  247. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
  248. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
  249. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
  250. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
  251. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
  252. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
  253. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
  254. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block.py +0 -0
  255. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block_param.py +0 -0
  256. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block.py +0 -0
  257. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block_param.py +0 -0
  258. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block.py +0 -0
  259. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block_param.py +0 -0
  260. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error.py +0 -0
  261. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error_param.py +0 -0
  262. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block.py +0 -0
  263. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block_param.py +0 -0
  264. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
  265. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
  266. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
  267. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
  268. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
  269. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
  270. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
  271. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
  272. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
  273. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
  274. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
  275. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
  276. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
  277. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
  278. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_param.py +0 -0
  279. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
  280. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
  281. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
  282. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
  283. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +0 -0
  284. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
  285. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
  286. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
  287. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_uses_keep_param.py +0 -0
  288. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_tool_uses_trigger_param.py +0 -0
  289. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
  290. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
  291. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_usage.py +0 -0
  292. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_block.py +0 -0
  293. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_block_param.py +0 -0
  294. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +0 -0
  295. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block.py +0 -0
  296. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +0 -0
  297. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +0 -0
  298. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +0 -0
  299. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +0 -0
  300. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
  301. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
  302. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
  303. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
  304. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
  305. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
  306. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
  307. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
  308. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
  309. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
  310. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/deleted_file.py +0 -0
  311. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/file_list_params.py +0 -0
  312. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/file_metadata.py +0 -0
  313. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
  314. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
  315. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
  316. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
  317. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
  318. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
  319. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
  320. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
  321. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
  322. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
  323. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
  324. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
  325. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta/model_list_params.py +0 -0
  326. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_api_error.py +0 -0
  327. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_authentication_error.py +0 -0
  328. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_billing_error.py +0 -0
  329. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_error.py +0 -0
  330. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_error_response.py +0 -0
  331. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
  332. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
  333. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_not_found_error.py +0 -0
  334. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
  335. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_permission_error.py +0 -0
  336. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
  337. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
  338. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/cache_creation.py +0 -0
  339. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_char_location.py +0 -0
  340. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_char_location_param.py +0 -0
  341. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_content_block_location.py +0 -0
  342. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
  343. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_page_location.py +0 -0
  344. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_page_location_param.py +0 -0
  345. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_search_result_location_param.py +0 -0
  346. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
  347. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citations_config_param.py +0 -0
  348. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citations_delta.py +0 -0
  349. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citations_search_result_location.py +0 -0
  350. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
  351. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/completion.py +0 -0
  352. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block.py +0 -0
  353. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block_delta_event.py +0 -0
  354. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block_param.py +0 -0
  355. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
  356. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block_source_param.py +0 -0
  357. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block_start_event.py +0 -0
  358. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/content_block_stop_event.py +0 -0
  359. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/document_block_param.py +0 -0
  360. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/image_block_param.py +0 -0
  361. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/input_json_delta.py +0 -0
  362. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message.py +0 -0
  363. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
  364. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_delta_event.py +0 -0
  365. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_delta_usage.py +0 -0
  366. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_param.py +0 -0
  367. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_start_event.py +0 -0
  368. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_stop_event.py +0 -0
  369. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_stream_event.py +0 -0
  370. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/message_tokens_count.py +0 -0
  371. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/__init__.py +0 -0
  372. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
  373. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
  374. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch.py +0 -0
  375. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
  376. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
  377. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
  378. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
  379. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
  380. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
  381. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
  382. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/metadata_param.py +0 -0
  383. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/model.py +0 -0
  384. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/model_info.py +0 -0
  385. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/model_list_params.py +0 -0
  386. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/model_param.py +0 -0
  387. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/plain_text_source_param.py +0 -0
  388. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
  389. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
  390. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
  391. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
  392. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
  393. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_message_start_event.py +0 -0
  394. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
  395. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
  396. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
  397. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
  398. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/search_result_block_param.py +0 -0
  399. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/server_tool_usage.py +0 -0
  400. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/server_tool_use_block.py +0 -0
  401. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
  402. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/__init__.py +0 -0
  403. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/api_error_object.py +0 -0
  404. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/authentication_error.py +0 -0
  405. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/billing_error.py +0 -0
  406. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/error_object.py +0 -0
  407. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/error_response.py +0 -0
  408. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
  409. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
  410. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/not_found_error.py +0 -0
  411. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
  412. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/permission_error.py +0 -0
  413. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
  414. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/signature_delta.py +0 -0
  415. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/text_block.py +0 -0
  416. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/text_block_param.py +0 -0
  417. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/text_citation.py +0 -0
  418. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/text_citation_param.py +0 -0
  419. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/text_delta.py +0 -0
  420. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/thinking_block.py +0 -0
  421. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/thinking_block_param.py +0 -0
  422. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
  423. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/thinking_config_param.py +0 -0
  424. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/thinking_delta.py +0 -0
  425. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
  426. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
  427. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
  428. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
  429. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_choice_param.py +0 -0
  430. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
  431. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_param.py +0 -0
  432. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_result_block_param.py +0 -0
  433. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
  434. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_text_editor_20250429_param.py +0 -0
  435. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_text_editor_20250728_param.py +0 -0
  436. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_union_param.py +0 -0
  437. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_use_block.py +0 -0
  438. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/tool_use_block_param.py +0 -0
  439. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/url_image_source_param.py +0 -0
  440. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
  441. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/usage.py +0 -0
  442. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_result_block.py +0 -0
  443. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
  444. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
  445. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
  446. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
  447. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
  448. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
  449. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
  450. {anthropic-0.70.0 → anthropic-0.71.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
  451. {anthropic-0.70.0 → anthropic-0.71.0}/tests/__init__.py +0 -0
  452. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/__init__.py +0 -0
  453. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/beta/__init__.py +0 -0
  454. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/beta/messages/__init__.py +0 -0
  455. {anthropic-0.70.0/tests/api_resources/messages → anthropic-0.71.0/tests/api_resources/beta/skills}/__init__.py +0 -0
  456. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/beta/test_files.py +0 -0
  457. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/beta/test_models.py +0 -0
  458. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/test_completions.py +0 -0
  459. {anthropic-0.70.0 → anthropic-0.71.0}/tests/api_resources/test_models.py +0 -0
  460. {anthropic-0.70.0 → anthropic-0.71.0}/tests/conftest.py +0 -0
  461. {anthropic-0.70.0 → anthropic-0.71.0}/tests/decoders/test_jsonl.py +0 -0
  462. {anthropic-0.70.0/src/anthropic → anthropic-0.71.0/tests}/lib/__init__.py +0 -0
  463. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/snapshots.py +0 -0
  464. {anthropic-0.70.0/tests/lib → anthropic-0.71.0/tests/lib/streaming}/__init__.py +0 -0
  465. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
  466. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
  467. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
  468. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/helpers.py +0 -0
  469. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/test_beta_messages.py +0 -0
  470. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/test_messages.py +0 -0
  471. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/streaming/test_partial_json.py +0 -0
  472. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/test_bedrock.py +0 -0
  473. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/test_vertex.py +0 -0
  474. {anthropic-0.70.0/tests/lib/streaming → anthropic-0.71.0/tests/lib/tools}/__init__.py +0 -0
  475. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_max_iterations/ef758469-6fa6-454c-b2e6-19d0b450a8c5.json +0 -0
  476. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
  477. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync/e2140c0f-07db-47ee-b86b-c2ec476866d5.json +0 -0
  478. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
  479. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/tools/test_functions.py +0 -0
  480. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/tools/test_runners.py +0 -0
  481. {anthropic-0.70.0 → anthropic-0.71.0}/tests/lib/utils.py +0 -0
  482. {anthropic-0.70.0 → anthropic-0.71.0}/tests/sample_file.txt +0 -0
  483. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_deepcopy.py +0 -0
  484. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_extract_files.py +0 -0
  485. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_files.py +0 -0
  486. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_legacy_response.py +0 -0
  487. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_models.py +0 -0
  488. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_qs.py +0 -0
  489. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_required_args.py +0 -0
  490. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_response.py +0 -0
  491. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_streaming.py +0 -0
  492. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_transform.py +0 -0
  493. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_utils/test_datetime_parse.py +0 -0
  494. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_utils/test_proxy.py +0 -0
  495. {anthropic-0.70.0 → anthropic-0.71.0}/tests/test_utils/test_typing.py +0 -0
  496. {anthropic-0.70.0 → anthropic-0.71.0}/tests/utils.py +0 -0
  497. {anthropic-0.70.0 → anthropic-0.71.0}/tools.md +0 -0
  498. {anthropic-0.70.0 → anthropic-0.71.0}/uv.lock +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.71.0"
3
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.71.0 (2025-10-16)
4
+
5
+ Full Changelog: [v0.70.0...v0.71.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.70.0...v0.71.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** adding support for agent skills ([51a606f](https://github.com/anthropics/anthropic-sdk-python/commit/51a606f497fd278c96af00936aa98d94bdfc9ae4))
10
+
3
11
  ## 0.70.0 (2025-10-15)
4
12
 
5
13
  Full Changelog: [v0.69.0...v0.70.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.69.0...v0.70.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anthropic
3
- Version: 0.70.0
3
+ Version: 0.71.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
@@ -243,6 +243,7 @@ from anthropic.types.beta import (
243
243
  BetaCodeExecutionToolResultErrorCode,
244
244
  BetaCodeExecutionToolResultErrorParam,
245
245
  BetaContainer,
246
+ BetaContainerParams,
246
247
  BetaContainerUploadBlock,
247
248
  BetaContainerUploadBlockParam,
248
249
  BetaContentBlock,
@@ -295,6 +296,8 @@ from anthropic.types.beta import (
295
296
  BetaServerToolUseBlock,
296
297
  BetaServerToolUseBlockParam,
297
298
  BetaSignatureDelta,
299
+ BetaSkill,
300
+ BetaSkillParams,
298
301
  BetaStopReason,
299
302
  BetaTextBlock,
300
303
  BetaTextBlockParam,
@@ -409,3 +412,43 @@ Methods:
409
412
  - <code title="get /v1/files/{file_id}/content?beta=true">client.beta.files.<a href="./src/anthropic/resources/beta/files.py">download</a>(file_id) -> BinaryAPIResponse</code>
410
413
  - <code title="get /v1/files/{file_id}?beta=true">client.beta.files.<a href="./src/anthropic/resources/beta/files.py">retrieve_metadata</a>(file_id) -> <a href="./src/anthropic/types/beta/file_metadata.py">FileMetadata</a></code>
411
414
  - <code title="post /v1/files?beta=true">client.beta.files.<a href="./src/anthropic/resources/beta/files.py">upload</a>(\*\*<a href="src/anthropic/types/beta/file_upload_params.py">params</a>) -> <a href="./src/anthropic/types/beta/file_metadata.py">FileMetadata</a></code>
415
+
416
+ ## Skills
417
+
418
+ Types:
419
+
420
+ ```python
421
+ from anthropic.types.beta import (
422
+ SkillCreateResponse,
423
+ SkillRetrieveResponse,
424
+ SkillListResponse,
425
+ SkillDeleteResponse,
426
+ )
427
+ ```
428
+
429
+ Methods:
430
+
431
+ - <code title="post /v1/skills?beta=true">client.beta.skills.<a href="./src/anthropic/resources/beta/skills/skills.py">create</a>(\*\*<a href="src/anthropic/types/beta/skill_create_params.py">params</a>) -> <a href="./src/anthropic/types/beta/skill_create_response.py">SkillCreateResponse</a></code>
432
+ - <code title="get /v1/skills/{skill_id}?beta=true">client.beta.skills.<a href="./src/anthropic/resources/beta/skills/skills.py">retrieve</a>(skill_id) -> <a href="./src/anthropic/types/beta/skill_retrieve_response.py">SkillRetrieveResponse</a></code>
433
+ - <code title="get /v1/skills?beta=true">client.beta.skills.<a href="./src/anthropic/resources/beta/skills/skills.py">list</a>(\*\*<a href="src/anthropic/types/beta/skill_list_params.py">params</a>) -> <a href="./src/anthropic/types/beta/skill_list_response.py">SyncPageCursor[SkillListResponse]</a></code>
434
+ - <code title="delete /v1/skills/{skill_id}?beta=true">client.beta.skills.<a href="./src/anthropic/resources/beta/skills/skills.py">delete</a>(skill_id) -> <a href="./src/anthropic/types/beta/skill_delete_response.py">SkillDeleteResponse</a></code>
435
+
436
+ ### Versions
437
+
438
+ Types:
439
+
440
+ ```python
441
+ from anthropic.types.beta.skills import (
442
+ VersionCreateResponse,
443
+ VersionRetrieveResponse,
444
+ VersionListResponse,
445
+ VersionDeleteResponse,
446
+ )
447
+ ```
448
+
449
+ Methods:
450
+
451
+ - <code title="post /v1/skills/{skill_id}/versions?beta=true">client.beta.skills.versions.<a href="./src/anthropic/resources/beta/skills/versions.py">create</a>(skill_id, \*\*<a href="src/anthropic/types/beta/skills/version_create_params.py">params</a>) -> <a href="./src/anthropic/types/beta/skills/version_create_response.py">VersionCreateResponse</a></code>
452
+ - <code title="get /v1/skills/{skill_id}/versions/{version}?beta=true">client.beta.skills.versions.<a href="./src/anthropic/resources/beta/skills/versions.py">retrieve</a>(version, \*, skill_id) -> <a href="./src/anthropic/types/beta/skills/version_retrieve_response.py">VersionRetrieveResponse</a></code>
453
+ - <code title="get /v1/skills/{skill_id}/versions?beta=true">client.beta.skills.versions.<a href="./src/anthropic/resources/beta/skills/versions.py">list</a>(skill_id, \*\*<a href="src/anthropic/types/beta/skills/version_list_params.py">params</a>) -> <a href="./src/anthropic/types/beta/skills/version_list_response.py">SyncPageCursor[VersionListResponse]</a></code>
454
+ - <code title="delete /v1/skills/{skill_id}/versions/{version}?beta=true">client.beta.skills.versions.<a href="./src/anthropic/resources/beta/skills/versions.py">delete</a>(version, \*, skill_id) -> <a href="./src/anthropic/types/beta/skills/version_delete_response.py">VersionDeleteResponse</a></code>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "anthropic"
3
- version = "0.70.0"
3
+ version = "0.71.0"
4
4
  description = "The official Python library for the anthropic API"
5
5
  dynamic = ["readme"]
6
6
  license = "MIT"
@@ -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.70.0" # x-release-please-version
4
+ __version__ = "0.71.0" # x-release-please-version
@@ -0,0 +1 @@
1
+ from ._files import files_from_dir as files_from_dir, async_files_from_dir as async_files_from_dir
@@ -0,0 +1,42 @@
1
+ from __future__ import annotations
2
+
3
+ import os
4
+ from pathlib import Path
5
+
6
+ import anyio
7
+
8
+ from .._types import FileTypes
9
+
10
+
11
+ def files_from_dir(directory: str | os.PathLike[str]) -> list[FileTypes]:
12
+ path = Path(directory)
13
+
14
+ files: list[FileTypes] = []
15
+ _collect_files(path, path.parent, files)
16
+ return files
17
+
18
+
19
+ def _collect_files(directory: Path, relative_to: Path, files: list[FileTypes]) -> None:
20
+ for path in directory.iterdir():
21
+ if path.is_dir():
22
+ _collect_files(path, relative_to, files)
23
+ continue
24
+
25
+ files.append((str(path.relative_to(relative_to)), path.read_bytes()))
26
+
27
+
28
+ async def async_files_from_dir(directory: str | os.PathLike[str]) -> list[FileTypes]:
29
+ path = anyio.Path(directory)
30
+
31
+ files: list[FileTypes] = []
32
+ await _async_collect_files(path, path.parent, files)
33
+ return files
34
+
35
+
36
+ async def _async_collect_files(directory: anyio.Path, relative_to: anyio.Path, files: list[FileTypes]) -> None:
37
+ async for path in directory.iterdir():
38
+ if await path.is_dir():
39
+ await _async_collect_files(path, relative_to, files)
40
+ continue
41
+
42
+ files.append((str(path.relative_to(relative_to)), await path.read_bytes()))
@@ -0,0 +1,200 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Generic, TypeVar, Optional
4
+ from typing_extensions import override
5
+
6
+ from ._base_client import BasePage, PageInfo, BaseSyncPage, BaseAsyncPage
7
+
8
+ __all__ = ["SyncPage", "AsyncPage", "SyncTokenPage", "AsyncTokenPage", "SyncPageCursor", "AsyncPageCursor"]
9
+
10
+ _T = TypeVar("_T")
11
+
12
+
13
+ class SyncPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
14
+ data: List[_T]
15
+ has_more: Optional[bool] = None
16
+ first_id: Optional[str] = None
17
+ last_id: Optional[str] = None
18
+
19
+ @override
20
+ def _get_page_items(self) -> List[_T]:
21
+ data = self.data
22
+ if not data:
23
+ return []
24
+ return data
25
+
26
+ @override
27
+ def has_next_page(self) -> bool:
28
+ has_more = self.has_more
29
+ if has_more is not None and has_more is False:
30
+ return False
31
+
32
+ return super().has_next_page()
33
+
34
+ @override
35
+ def next_page_info(self) -> Optional[PageInfo]:
36
+ if self._options.params.get("before_id"):
37
+ first_id = self.first_id
38
+ if not first_id:
39
+ return None
40
+
41
+ return PageInfo(params={"before_id": first_id})
42
+
43
+ last_id = self.last_id
44
+ if not last_id:
45
+ return None
46
+
47
+ return PageInfo(params={"after_id": last_id})
48
+
49
+
50
+ class AsyncPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
51
+ data: List[_T]
52
+ has_more: Optional[bool] = None
53
+ first_id: Optional[str] = None
54
+ last_id: Optional[str] = None
55
+
56
+ @override
57
+ def _get_page_items(self) -> List[_T]:
58
+ data = self.data
59
+ if not data:
60
+ return []
61
+ return data
62
+
63
+ @override
64
+ def has_next_page(self) -> bool:
65
+ has_more = self.has_more
66
+ if has_more is not None and has_more is False:
67
+ return False
68
+
69
+ return super().has_next_page()
70
+
71
+ @override
72
+ def next_page_info(self) -> Optional[PageInfo]:
73
+ if self._options.params.get("before_id"):
74
+ first_id = self.first_id
75
+ if not first_id:
76
+ return None
77
+
78
+ return PageInfo(params={"before_id": first_id})
79
+
80
+ last_id = self.last_id
81
+ if not last_id:
82
+ return None
83
+
84
+ return PageInfo(params={"after_id": last_id})
85
+
86
+
87
+ class SyncTokenPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
88
+ data: List[_T]
89
+ has_more: Optional[bool] = None
90
+ next_page: Optional[str] = None
91
+
92
+ @override
93
+ def _get_page_items(self) -> List[_T]:
94
+ data = self.data
95
+ if not data:
96
+ return []
97
+ return data
98
+
99
+ @override
100
+ def has_next_page(self) -> bool:
101
+ has_more = self.has_more
102
+ if has_more is not None and has_more is False:
103
+ return False
104
+
105
+ return super().has_next_page()
106
+
107
+ @override
108
+ def next_page_info(self) -> Optional[PageInfo]:
109
+ next_page = self.next_page
110
+ if not next_page:
111
+ return None
112
+
113
+ return PageInfo(params={"page_token": next_page})
114
+
115
+
116
+ class AsyncTokenPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
117
+ data: List[_T]
118
+ has_more: Optional[bool] = None
119
+ next_page: Optional[str] = None
120
+
121
+ @override
122
+ def _get_page_items(self) -> List[_T]:
123
+ data = self.data
124
+ if not data:
125
+ return []
126
+ return data
127
+
128
+ @override
129
+ def has_next_page(self) -> bool:
130
+ has_more = self.has_more
131
+ if has_more is not None and has_more is False:
132
+ return False
133
+
134
+ return super().has_next_page()
135
+
136
+ @override
137
+ def next_page_info(self) -> Optional[PageInfo]:
138
+ next_page = self.next_page
139
+ if not next_page:
140
+ return None
141
+
142
+ return PageInfo(params={"page_token": next_page})
143
+
144
+
145
+ class SyncPageCursor(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
146
+ data: List[_T]
147
+ has_more: Optional[bool] = None
148
+ next_page: Optional[str] = None
149
+
150
+ @override
151
+ def _get_page_items(self) -> List[_T]:
152
+ data = self.data
153
+ if not data:
154
+ return []
155
+ return data
156
+
157
+ @override
158
+ def has_next_page(self) -> bool:
159
+ has_more = self.has_more
160
+ if has_more is not None and has_more is False:
161
+ return False
162
+
163
+ return super().has_next_page()
164
+
165
+ @override
166
+ def next_page_info(self) -> Optional[PageInfo]:
167
+ next_page = self.next_page
168
+ if not next_page:
169
+ return None
170
+
171
+ return PageInfo(params={"page": next_page})
172
+
173
+
174
+ class AsyncPageCursor(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
175
+ data: List[_T]
176
+ has_more: Optional[bool] = None
177
+ next_page: Optional[str] = None
178
+
179
+ @override
180
+ def _get_page_items(self) -> List[_T]:
181
+ data = self.data
182
+ if not data:
183
+ return []
184
+ return data
185
+
186
+ @override
187
+ def has_next_page(self) -> bool:
188
+ has_more = self.has_more
189
+ if has_more is not None and has_more is False:
190
+ return False
191
+
192
+ return super().has_next_page()
193
+
194
+ @override
195
+ def next_page_info(self) -> Optional[PageInfo]:
196
+ next_page = self.next_page
197
+ if not next_page:
198
+ return None
199
+
200
+ return PageInfo(params={"page": next_page})
@@ -24,6 +24,14 @@ from .models import (
24
24
  ModelsWithStreamingResponse,
25
25
  AsyncModelsWithStreamingResponse,
26
26
  )
27
+ from .skills import (
28
+ Skills,
29
+ AsyncSkills,
30
+ SkillsWithRawResponse,
31
+ AsyncSkillsWithRawResponse,
32
+ SkillsWithStreamingResponse,
33
+ AsyncSkillsWithStreamingResponse,
34
+ )
27
35
  from .messages import (
28
36
  Messages,
29
37
  AsyncMessages,
@@ -52,6 +60,12 @@ __all__ = [
52
60
  "AsyncFilesWithRawResponse",
53
61
  "FilesWithStreamingResponse",
54
62
  "AsyncFilesWithStreamingResponse",
63
+ "Skills",
64
+ "AsyncSkills",
65
+ "SkillsWithRawResponse",
66
+ "AsyncSkillsWithRawResponse",
67
+ "SkillsWithStreamingResponse",
68
+ "AsyncSkillsWithStreamingResponse",
55
69
  "Beta",
56
70
  "AsyncBeta",
57
71
  "BetaWithRawResponse",
@@ -20,6 +20,14 @@ from .models import (
20
20
  )
21
21
  from ..._compat import cached_property
22
22
  from ..._resource import SyncAPIResource, AsyncAPIResource
23
+ from .skills.skills import (
24
+ Skills,
25
+ AsyncSkills,
26
+ SkillsWithRawResponse,
27
+ AsyncSkillsWithRawResponse,
28
+ SkillsWithStreamingResponse,
29
+ AsyncSkillsWithStreamingResponse,
30
+ )
23
31
  from .messages.messages import (
24
32
  Messages,
25
33
  AsyncMessages,
@@ -45,6 +53,10 @@ class Beta(SyncAPIResource):
45
53
  def files(self) -> Files:
46
54
  return Files(self._client)
47
55
 
56
+ @cached_property
57
+ def skills(self) -> Skills:
58
+ return Skills(self._client)
59
+
48
60
  @cached_property
49
61
  def with_raw_response(self) -> BetaWithRawResponse:
50
62
  """
@@ -78,6 +90,10 @@ class AsyncBeta(AsyncAPIResource):
78
90
  def files(self) -> AsyncFiles:
79
91
  return AsyncFiles(self._client)
80
92
 
93
+ @cached_property
94
+ def skills(self) -> AsyncSkills:
95
+ return AsyncSkills(self._client)
96
+
81
97
  @cached_property
82
98
  def with_raw_response(self) -> AsyncBetaWithRawResponse:
83
99
  """
@@ -114,6 +130,10 @@ class BetaWithRawResponse:
114
130
  def files(self) -> FilesWithRawResponse:
115
131
  return FilesWithRawResponse(self._beta.files)
116
132
 
133
+ @cached_property
134
+ def skills(self) -> SkillsWithRawResponse:
135
+ return SkillsWithRawResponse(self._beta.skills)
136
+
117
137
 
118
138
  class AsyncBetaWithRawResponse:
119
139
  def __init__(self, beta: AsyncBeta) -> None:
@@ -131,6 +151,10 @@ class AsyncBetaWithRawResponse:
131
151
  def files(self) -> AsyncFilesWithRawResponse:
132
152
  return AsyncFilesWithRawResponse(self._beta.files)
133
153
 
154
+ @cached_property
155
+ def skills(self) -> AsyncSkillsWithRawResponse:
156
+ return AsyncSkillsWithRawResponse(self._beta.skills)
157
+
134
158
 
135
159
  class BetaWithStreamingResponse:
136
160
  def __init__(self, beta: Beta) -> None:
@@ -148,6 +172,10 @@ class BetaWithStreamingResponse:
148
172
  def files(self) -> FilesWithStreamingResponse:
149
173
  return FilesWithStreamingResponse(self._beta.files)
150
174
 
175
+ @cached_property
176
+ def skills(self) -> SkillsWithStreamingResponse:
177
+ return SkillsWithStreamingResponse(self._beta.skills)
178
+
151
179
 
152
180
  class AsyncBetaWithStreamingResponse:
153
181
  def __init__(self, beta: AsyncBeta) -> None:
@@ -164,3 +192,7 @@ class AsyncBetaWithStreamingResponse:
164
192
  @cached_property
165
193
  def files(self) -> AsyncFilesWithStreamingResponse:
166
194
  return AsyncFilesWithStreamingResponse(self._beta.files)
195
+
196
+ @cached_property
197
+ def skills(self) -> AsyncSkillsWithStreamingResponse:
198
+ return AsyncSkillsWithStreamingResponse(self._beta.skills)