anthropic 1.59.0 → 1.65.0

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 (1295) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +98 -1
  3. data/README.md +1 -1
  4. data/lib/anthropic/client.rb +37 -6
  5. data/lib/anthropic/errors.rb +6 -0
  6. data/lib/anthropic/helpers/aws/client.rb +9 -17
  7. data/lib/anthropic/helpers/aws_auth.rb +13 -2
  8. data/lib/anthropic/helpers/bedrock/client.rb +27 -17
  9. data/lib/anthropic/helpers/bedrock/mantle_client.rb +12 -0
  10. data/lib/anthropic/helpers/google_cloud/client.rb +16 -27
  11. data/lib/anthropic/helpers/messages.rb +21 -15
  12. data/lib/anthropic/helpers/streaming/message_stream.rb +37 -8
  13. data/lib/anthropic/helpers/tools/base_tool.rb +69 -10
  14. data/lib/anthropic/helpers/tools/mcp.rb +2 -2
  15. data/lib/anthropic/helpers/tools/runner.rb +33 -19
  16. data/lib/anthropic/helpers/vertex/client.rb +32 -13
  17. data/lib/anthropic/internal/page_cursor.rb +2 -2
  18. data/lib/anthropic/internal/type/base_model.rb +5 -1
  19. data/lib/anthropic/internal/type/base_stream.rb +10 -0
  20. data/lib/anthropic/internal/type/union.rb +3 -1
  21. data/lib/anthropic/models/anthropic_beta.rb +6 -0
  22. data/lib/anthropic/models/beta/agent_create_params.rb +39 -2
  23. data/lib/anthropic/models/beta/agent_update_params.rb +39 -2
  24. data/lib/anthropic/models/beta/beta_advisor_message_iteration_usage.rb +2 -2
  25. data/lib/anthropic/models/beta/beta_browser_close_tab_config.rb +36 -0
  26. data/lib/anthropic/models/beta/beta_browser_double_click_config.rb +36 -0
  27. data/lib/anthropic/models/beta/beta_browser_file_upload_config.rb +36 -0
  28. data/lib/anthropic/models/beta/beta_browser_find_config.rb +36 -0
  29. data/lib/anthropic/models/beta/beta_browser_form_input_config.rb +36 -0
  30. data/lib/anthropic/models/beta/beta_browser_get_page_text_config.rb +36 -0
  31. data/lib/anthropic/models/beta/beta_browser_hold_key_config.rb +36 -0
  32. data/lib/anthropic/models/beta/beta_browser_hover_config.rb +36 -0
  33. data/lib/anthropic/models/beta/beta_browser_javascript_exec_config.rb +36 -0
  34. data/lib/anthropic/models/beta/beta_browser_key_config.rb +36 -0
  35. data/lib/anthropic/models/beta/beta_browser_left_click_config.rb +36 -0
  36. data/lib/anthropic/models/beta/beta_browser_left_click_drag_config.rb +36 -0
  37. data/lib/anthropic/models/beta/beta_browser_left_mouse_down_config.rb +36 -0
  38. data/lib/anthropic/models/beta/beta_browser_left_mouse_up_config.rb +36 -0
  39. data/lib/anthropic/models/beta/beta_browser_list_tabs_config.rb +36 -0
  40. data/lib/anthropic/models/beta/beta_browser_middle_click_config.rb +36 -0
  41. data/lib/anthropic/models/beta/beta_browser_mouse_move_config.rb +36 -0
  42. data/lib/anthropic/models/beta/beta_browser_navigate_config.rb +36 -0
  43. data/lib/anthropic/models/beta/beta_browser_new_tab_config.rb +36 -0
  44. data/lib/anthropic/models/beta/beta_browser_read_console_config.rb +36 -0
  45. data/lib/anthropic/models/beta/beta_browser_read_network_config.rb +36 -0
  46. data/lib/anthropic/models/beta/beta_browser_read_page_config.rb +36 -0
  47. data/lib/anthropic/models/beta/beta_browser_right_click_config.rb +36 -0
  48. data/lib/anthropic/models/beta/beta_browser_screenshot_config.rb +36 -0
  49. data/lib/anthropic/models/beta/beta_browser_scroll_config.rb +36 -0
  50. data/lib/anthropic/models/beta/beta_browser_scroll_to_config.rb +36 -0
  51. data/lib/anthropic/models/beta/beta_browser_state_block_param.rb +58 -0
  52. data/lib/anthropic/models/beta/beta_browser_state_change.rb +84 -0
  53. data/lib/anthropic/models/beta/beta_browser_state_change_download_completed.rb +62 -0
  54. data/lib/anthropic/models/beta/beta_browser_state_change_download_failed.rb +50 -0
  55. data/lib/anthropic/models/beta/beta_browser_state_change_download_started.rb +42 -0
  56. data/lib/anthropic/models/beta/beta_browser_state_change_tab_opened.rb +34 -0
  57. data/lib/anthropic/models/beta/beta_browser_state_tab_entry.rb +55 -0
  58. data/lib/anthropic/models/beta/beta_browser_switch_tab_config.rb +36 -0
  59. data/lib/anthropic/models/beta/beta_browser_toolset_20260801.rb +73 -0
  60. data/lib/anthropic/models/beta/beta_browser_toolset_configs.rb +266 -0
  61. data/lib/anthropic/models/beta/beta_browser_triple_click_config.rb +36 -0
  62. data/lib/anthropic/models/beta/beta_browser_type_config.rb +36 -0
  63. data/lib/anthropic/models/beta/beta_browser_wait_config.rb +36 -0
  64. data/lib/anthropic/models/beta/beta_browser_zoom_config.rb +36 -0
  65. data/lib/anthropic/models/beta/beta_citations_delta.rb +59 -0
  66. data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb +22 -0
  67. data/lib/anthropic/models/beta/beta_cloud_config.rb +29 -0
  68. data/lib/anthropic/models/beta/beta_cloud_config_params.rb +32 -3
  69. data/lib/anthropic/models/beta/beta_code_execution_tool_20260120.rb +3 -3
  70. data/lib/anthropic/models/beta/beta_code_execution_tool_20260521.rb +2 -2
  71. data/lib/anthropic/models/beta/beta_computer_cursor_position_config.rb +36 -0
  72. data/lib/anthropic/models/beta/beta_computer_double_click_config.rb +36 -0
  73. data/lib/anthropic/models/beta/beta_computer_hold_key_config.rb +36 -0
  74. data/lib/anthropic/models/beta/beta_computer_key_config.rb +36 -0
  75. data/lib/anthropic/models/beta/beta_computer_left_click_config.rb +36 -0
  76. data/lib/anthropic/models/beta/beta_computer_left_click_drag_config.rb +36 -0
  77. data/lib/anthropic/models/beta/beta_computer_left_mouse_down_config.rb +36 -0
  78. data/lib/anthropic/models/beta/beta_computer_left_mouse_up_config.rb +36 -0
  79. data/lib/anthropic/models/beta/beta_computer_middle_click_config.rb +36 -0
  80. data/lib/anthropic/models/beta/beta_computer_mouse_move_config.rb +36 -0
  81. data/lib/anthropic/models/beta/beta_computer_right_click_config.rb +36 -0
  82. data/lib/anthropic/models/beta/beta_computer_screenshot_config.rb +36 -0
  83. data/lib/anthropic/models/beta/beta_computer_scroll_config.rb +36 -0
  84. data/lib/anthropic/models/beta/beta_computer_toolset_20260801.rb +76 -0
  85. data/lib/anthropic/models/beta/beta_computer_toolset_configs.rb +154 -0
  86. data/lib/anthropic/models/beta/beta_computer_triple_click_config.rb +36 -0
  87. data/lib/anthropic/models/beta/beta_computer_type_config.rb +36 -0
  88. data/lib/anthropic/models/beta/beta_computer_wait_config.rb +36 -0
  89. data/lib/anthropic/models/beta/beta_computer_zoom_config.rb +36 -0
  90. data/lib/anthropic/models/beta/beta_content_block.rb +91 -0
  91. data/lib/anthropic/models/beta/beta_content_block_param.rb +116 -7
  92. data/lib/anthropic/models/beta/beta_content_block_source_content.rb +33 -0
  93. data/lib/anthropic/models/beta/beta_context_management_config.rb +39 -0
  94. data/lib/anthropic/models/beta/beta_context_management_response.rb +26 -0
  95. data/lib/anthropic/models/beta/{deleted_file.rb → beta_deleted_file.rb} +8 -6
  96. data/lib/anthropic/models/beta/beta_diagnostics.rb +36 -3
  97. data/lib/anthropic/models/beta/beta_diagnostics_param.rb +3 -3
  98. data/lib/anthropic/models/beta/beta_document_block.rb +24 -0
  99. data/lib/anthropic/models/beta/beta_dream.rb +18 -7
  100. data/lib/anthropic/models/beta/beta_dream_input.rb +28 -2
  101. data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +3 -1
  102. data/lib/anthropic/models/beta/beta_dream_model_config.rb +5 -5
  103. data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +4 -4
  104. data/lib/anthropic/models/beta/beta_environment.rb +30 -6
  105. data/lib/anthropic/models/beta/beta_fallback_block.rb +3 -3
  106. data/lib/anthropic/models/beta/beta_fallback_block_param.rb +3 -3
  107. data/lib/anthropic/models/beta/beta_fallback_credit_not_applied.rb +2 -2
  108. data/lib/anthropic/models/beta/beta_fallback_credit_token_param.rb +3 -3
  109. data/lib/anthropic/models/beta/beta_fallback_credit_usage.rb +29 -2
  110. data/lib/anthropic/models/beta/beta_fallback_info.rb +2 -2
  111. data/lib/anthropic/models/beta/beta_fallback_info_param.rb +2 -2
  112. data/lib/anthropic/models/beta/beta_fallback_message_iteration_usage.rb +3 -3
  113. data/lib/anthropic/models/beta/beta_fallback_param.rb +32 -3
  114. data/lib/anthropic/models/beta/{file_metadata.rb → beta_file_metadata.rb} +4 -2
  115. data/lib/anthropic/models/beta/beta_image_block_param.rb +45 -1
  116. data/lib/anthropic/models/beta/beta_image_transformations_param.rb +51 -0
  117. data/lib/anthropic/models/beta/beta_iterations_usage.rb +39 -0
  118. data/lib/anthropic/models/beta/beta_limited_network.rb +2 -2
  119. data/lib/anthropic/models/beta/beta_limited_network_params.rb +3 -3
  120. data/lib/anthropic/models/beta/beta_managed_agents_advisor.rb +40 -0
  121. data/lib/anthropic/models/beta/beta_managed_agents_advisor_params.rb +45 -0
  122. data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +60 -2
  123. data/lib/anthropic/models/beta/beta_managed_agents_agent_params.rb +3 -3
  124. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +66 -52
  125. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +70 -59
  126. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rb +3 -3
  127. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_bash_input.rb +4 -4
  128. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_edit_input.rb +3 -3
  129. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_glob_input.rb +3 -3
  130. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_grep_input.rb +3 -3
  131. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rb +3 -3
  132. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_read_input.rb +3 -3
  133. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +20 -0
  134. data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +22 -2
  135. data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +45 -7
  136. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +82 -0
  137. data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +100 -0
  138. data/lib/anthropic/models/beta/beta_managed_agents_budget_limit.rb +40 -0
  139. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +2 -2
  140. data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rb +3 -3
  141. data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +4 -4
  142. data/lib/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rb +2 -2
  143. data/lib/anthropic/models/beta/beta_managed_agents_delta_event.rb +3 -3
  144. data/lib/anthropic/models/beta/beta_managed_agents_deployment.rb +12 -3
  145. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +30 -0
  146. data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +30 -0
  147. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +22 -0
  148. data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +44 -0
  149. data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +53 -3
  150. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +24 -0
  151. data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +38 -3
  152. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +82 -0
  153. data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +100 -0
  154. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb +24 -0
  155. data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +24 -0
  156. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +82 -0
  157. data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +100 -0
  158. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +82 -0
  159. data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +100 -0
  160. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rb +20 -0
  161. data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +20 -0
  162. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +20 -0
  163. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +20 -0
  164. data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rb +2 -2
  165. data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +3 -3
  166. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +2 -2
  167. data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +2 -2
  168. data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +38 -3
  169. data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +13 -3
  170. data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +47 -5
  171. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +47 -5
  172. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +5 -5
  173. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +5 -5
  174. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rb +4 -1
  175. data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +2 -2
  176. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +82 -0
  177. data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +100 -0
  178. data/lib/anthropic/models/beta/beta_managed_agents_schedule.rb +2 -2
  179. data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +3 -3
  180. data/lib/anthropic/models/beta/beta_managed_agents_server_tool_usage.rb +30 -0
  181. data/lib/anthropic/models/beta/beta_managed_agents_session.rb +12 -3
  182. data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +61 -3
  183. data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +41 -3
  184. data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +57 -3
  185. data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +41 -0
  186. data/lib/anthropic/models/beta/beta_managed_agents_session_stats.rb +2 -2
  187. data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +58 -0
  188. data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +14 -5
  189. data/lib/anthropic/models/beta/beta_managed_agents_session_usage.rb +31 -1
  190. data/lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb +67 -0
  191. data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +24 -0
  192. data/lib/anthropic/models/beta/beta_managed_agents_start_event.rb +3 -3
  193. data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +25 -0
  194. data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +22 -0
  195. data/lib/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rb +2 -2
  196. data/lib/anthropic/models/beta/beta_managed_agents_user_location.rb +54 -0
  197. data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +40 -4
  198. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +103 -0
  199. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +131 -0
  200. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +104 -0
  201. data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +130 -0
  202. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +82 -0
  203. data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +100 -0
  204. data/lib/anthropic/models/beta/beta_memory_tool_20250818_command.rb +46 -0
  205. data/lib/anthropic/models/beta/beta_message_iteration_usage.rb +2 -2
  206. data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
  207. data/lib/anthropic/models/beta/beta_output_behavior.rb +49 -0
  208. data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +33 -0
  209. data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +39 -0
  210. data/lib/anthropic/models/beta/beta_raw_content_block_delta.rb +47 -0
  211. data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +92 -0
  212. data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +43 -0
  213. data/lib/anthropic/models/beta/beta_redacted_thinking_block.rb +15 -1
  214. data/lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb +7 -1
  215. data/lib/anthropic/models/beta/beta_refusal_stop_details.rb +2 -2
  216. data/lib/anthropic/models/beta/beta_request_document_block.rb +36 -0
  217. data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +29 -3
  218. data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +29 -3
  219. data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +24 -0
  220. data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +24 -0
  221. data/lib/anthropic/models/beta/beta_signature_delta.rb +8 -1
  222. data/lib/anthropic/models/beta/beta_skill.rb +2 -2
  223. data/lib/anthropic/models/beta/beta_text_citation.rb +59 -0
  224. data/lib/anthropic/models/beta/beta_text_citation_param.rb +57 -0
  225. data/lib/anthropic/models/beta/beta_thinking_block.rb +18 -2
  226. data/lib/anthropic/models/beta/beta_thinking_block_param.rb +13 -2
  227. data/lib/anthropic/models/beta/beta_thinking_config_param.rb +29 -0
  228. data/lib/anthropic/models/beta/beta_thinking_delta.rb +4 -1
  229. data/lib/anthropic/models/beta/beta_token_task_budget.rb +2 -2
  230. data/lib/anthropic/models/beta/beta_tool_choice.rb +31 -0
  231. data/lib/anthropic/models/beta/beta_tool_choice_any.rb +2 -2
  232. data/lib/anthropic/models/beta/beta_tool_choice_auto.rb +2 -2
  233. data/lib/anthropic/models/beta/beta_tool_choice_tool.rb +2 -2
  234. data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +76 -5
  235. data/lib/anthropic/models/beta/beta_tool_union.rb +17 -1
  236. data/lib/anthropic/models/beta/beta_tool_use_block.rb +33 -1
  237. data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +33 -1
  238. data/lib/anthropic/models/beta/beta_tunnel.rb +2 -2
  239. data/lib/anthropic/models/beta/beta_tunnel_token.rb +2 -2
  240. data/lib/anthropic/models/beta/beta_user_profile.rb +56 -26
  241. data/lib/anthropic/models/beta/beta_web_fetch_tool_20260309.rb +2 -2
  242. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block.rb +24 -0
  243. data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb +24 -0
  244. data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +24 -0
  245. data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +24 -0
  246. data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
  247. data/lib/anthropic/models/beta/beta_webhook_event_data.rb +117 -1
  248. data/lib/anthropic/models/beta/beta_webhook_session_budget_reached_event_data.rb +41 -0
  249. data/lib/anthropic/models/beta/deployment_create_params.rb +52 -1
  250. data/lib/anthropic/models/beta/deployment_update_params.rb +52 -1
  251. data/lib/anthropic/models/beta/dream_create_params.rb +14 -1
  252. data/lib/anthropic/models/beta/environment_create_params.rb +27 -0
  253. data/lib/anthropic/models/beta/environment_update_params.rb +30 -2
  254. data/lib/anthropic/models/beta/environments/beta_self_hosted_work.rb +3 -3
  255. data/lib/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rb +4 -4
  256. data/lib/anthropic/models/beta/environments/beta_self_hosted_work_update_request.rb +2 -2
  257. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +40 -1
  258. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +3 -3
  259. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +4 -4
  260. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +46 -0
  261. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +4 -4
  262. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +42 -0
  263. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +4 -4
  264. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +8 -8
  265. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +4 -4
  266. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rb +30 -0
  267. data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +3 -3
  268. data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +9 -1
  269. data/lib/anthropic/models/beta/message_count_tokens_params.rb +19 -3
  270. data/lib/anthropic/models/beta/message_create_params.rb +2 -2
  271. data/lib/anthropic/models/beta/messages/batch_create_params.rb +6 -6
  272. data/lib/anthropic/models/beta/messages/beta_message_batch_individual_response.rb +3 -3
  273. data/lib/anthropic/models/beta/messages/beta_message_batch_result.rb +28 -0
  274. data/lib/anthropic/models/beta/session_create_params.rb +80 -1
  275. data/lib/anthropic/models/beta/session_update_params.rb +10 -1
  276. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +3 -3
  277. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +36 -0
  278. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +2 -2
  279. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +41 -3
  280. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +41 -6
  281. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +41 -6
  282. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +36 -0
  283. data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +2 -2
  284. data/lib/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rb +2 -2
  285. data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +22 -0
  286. data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +22 -0
  287. data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +32 -0
  288. data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +54 -0
  289. data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rb +24 -0
  290. data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +34 -0
  291. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +22 -0
  292. data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +22 -0
  293. data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +2 -2
  294. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +22 -0
  295. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +22 -0
  296. data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +22 -0
  297. data/lib/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rb +31 -0
  298. data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +60 -0
  299. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rb +34 -0
  300. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +44 -2
  301. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +164 -1
  302. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rb +4 -4
  303. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +51 -0
  304. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +36 -3
  305. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +60 -10
  306. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_stats.rb +2 -2
  307. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +36 -3
  308. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rb +31 -1
  309. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rb +76 -0
  310. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_usage.rb +2 -2
  311. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +4 -4
  312. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +4 -4
  313. data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rb +2 -2
  314. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +174 -1
  315. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +174 -1
  316. data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rb +2 -2
  317. data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +22 -0
  318. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +38 -2
  319. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +38 -2
  320. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +27 -3
  321. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +28 -0
  322. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rb +2 -2
  323. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rb +2 -2
  324. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +38 -3
  325. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +38 -3
  326. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +2 -2
  327. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rb +2 -2
  328. data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +40 -4
  329. data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +50 -0
  330. data/lib/anthropic/models/beta/sessions/resource_update_response.rb +50 -0
  331. data/lib/anthropic/models/beta/unwrap_webhook_event.rb +2 -2
  332. data/lib/anthropic/models/beta/user_profile_create_params.rb +32 -4
  333. data/lib/anthropic/models/beta/user_profile_update_params.rb +28 -1
  334. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +34 -0
  335. data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +26 -0
  336. data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +26 -0
  337. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +2 -2
  338. data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +2 -2
  339. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +24 -0
  340. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +22 -0
  341. data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +22 -0
  342. data/lib/anthropic/models/beta/vaults/credential_create_params.rb +40 -0
  343. data/lib/anthropic/models/beta/vaults/credential_update_params.rb +36 -0
  344. data/lib/anthropic/models/beta_currency.rb +14 -0
  345. data/lib/anthropic/models/beta_error.rb +36 -0
  346. data/lib/anthropic/models/beta_monetary_amount.rb +33 -0
  347. data/lib/anthropic/models/browser_close_tab_config.rb +32 -0
  348. data/lib/anthropic/models/browser_double_click_config.rb +32 -0
  349. data/lib/anthropic/models/browser_file_upload_config.rb +32 -0
  350. data/lib/anthropic/models/browser_find_config.rb +32 -0
  351. data/lib/anthropic/models/browser_form_input_config.rb +32 -0
  352. data/lib/anthropic/models/browser_get_page_text_config.rb +32 -0
  353. data/lib/anthropic/models/browser_hold_key_config.rb +32 -0
  354. data/lib/anthropic/models/browser_hover_config.rb +32 -0
  355. data/lib/anthropic/models/browser_javascript_exec_config.rb +32 -0
  356. data/lib/anthropic/models/browser_key_config.rb +32 -0
  357. data/lib/anthropic/models/browser_left_click_config.rb +32 -0
  358. data/lib/anthropic/models/browser_left_click_drag_config.rb +32 -0
  359. data/lib/anthropic/models/browser_left_mouse_down_config.rb +32 -0
  360. data/lib/anthropic/models/browser_left_mouse_up_config.rb +32 -0
  361. data/lib/anthropic/models/browser_list_tabs_config.rb +32 -0
  362. data/lib/anthropic/models/browser_middle_click_config.rb +32 -0
  363. data/lib/anthropic/models/browser_mouse_move_config.rb +32 -0
  364. data/lib/anthropic/models/browser_navigate_config.rb +32 -0
  365. data/lib/anthropic/models/browser_new_tab_config.rb +32 -0
  366. data/lib/anthropic/models/browser_read_console_config.rb +32 -0
  367. data/lib/anthropic/models/browser_read_network_config.rb +32 -0
  368. data/lib/anthropic/models/browser_read_page_config.rb +32 -0
  369. data/lib/anthropic/models/browser_right_click_config.rb +32 -0
  370. data/lib/anthropic/models/browser_screenshot_config.rb +32 -0
  371. data/lib/anthropic/models/browser_scroll_config.rb +32 -0
  372. data/lib/anthropic/models/browser_scroll_to_config.rb +32 -0
  373. data/lib/anthropic/models/browser_state_block_param.rb +54 -0
  374. data/lib/anthropic/models/browser_state_change.rb +80 -0
  375. data/lib/anthropic/models/browser_state_change_download_completed.rb +57 -0
  376. data/lib/anthropic/models/browser_state_change_download_failed.rb +45 -0
  377. data/lib/anthropic/models/browser_state_change_download_started.rb +37 -0
  378. data/lib/anthropic/models/browser_state_change_tab_opened.rb +30 -0
  379. data/lib/anthropic/models/browser_state_tab_entry.rb +51 -0
  380. data/lib/anthropic/models/browser_switch_tab_config.rb +32 -0
  381. data/lib/anthropic/models/browser_toolset_20260801.rb +69 -0
  382. data/lib/anthropic/models/browser_toolset_configs.rb +262 -0
  383. data/lib/anthropic/models/browser_triple_click_config.rb +32 -0
  384. data/lib/anthropic/models/browser_type_config.rb +32 -0
  385. data/lib/anthropic/models/browser_wait_config.rb +32 -0
  386. data/lib/anthropic/models/browser_zoom_config.rb +32 -0
  387. data/lib/anthropic/models/citations_delta.rb +59 -0
  388. data/lib/anthropic/models/code_execution_tool_20260120.rb +3 -3
  389. data/lib/anthropic/models/code_execution_tool_20260521.rb +2 -2
  390. data/lib/anthropic/models/computer_cursor_position_config.rb +32 -0
  391. data/lib/anthropic/models/computer_double_click_config.rb +32 -0
  392. data/lib/anthropic/models/computer_hold_key_config.rb +32 -0
  393. data/lib/anthropic/models/computer_key_config.rb +32 -0
  394. data/lib/anthropic/models/computer_left_click_config.rb +32 -0
  395. data/lib/anthropic/models/computer_left_click_drag_config.rb +32 -0
  396. data/lib/anthropic/models/computer_left_mouse_down_config.rb +32 -0
  397. data/lib/anthropic/models/computer_left_mouse_up_config.rb +32 -0
  398. data/lib/anthropic/models/computer_middle_click_config.rb +32 -0
  399. data/lib/anthropic/models/computer_mouse_move_config.rb +32 -0
  400. data/lib/anthropic/models/computer_right_click_config.rb +32 -0
  401. data/lib/anthropic/models/computer_screenshot_config.rb +32 -0
  402. data/lib/anthropic/models/computer_scroll_config.rb +32 -0
  403. data/lib/anthropic/models/computer_toolset_20260801.rb +72 -0
  404. data/lib/anthropic/models/computer_toolset_configs.rb +150 -0
  405. data/lib/anthropic/models/computer_triple_click_config.rb +32 -0
  406. data/lib/anthropic/models/computer_type_config.rb +32 -0
  407. data/lib/anthropic/models/computer_wait_config.rb +32 -0
  408. data/lib/anthropic/models/computer_zoom_config.rb +32 -0
  409. data/lib/anthropic/models/container.rb +9 -1
  410. data/lib/anthropic/models/container_params.rb +26 -0
  411. data/lib/anthropic/models/container_skill.rb +47 -0
  412. data/lib/anthropic/models/content_block.rb +69 -0
  413. data/lib/anthropic/models/content_block_param.rb +90 -7
  414. data/lib/anthropic/models/content_block_source_content.rb +33 -0
  415. data/lib/anthropic/models/deleted_file.rb +44 -0
  416. data/lib/anthropic/models/deleted_skill.rb +32 -0
  417. data/lib/anthropic/models/document_block.rb +24 -0
  418. data/lib/anthropic/models/document_block_param.rb +41 -3
  419. data/lib/anthropic/models/error_object.rb +36 -0
  420. data/lib/anthropic/models/file_delete_params.rb +22 -0
  421. data/lib/anthropic/models/file_document_source.rb +21 -0
  422. data/lib/anthropic/models/file_download_params.rb +22 -0
  423. data/lib/anthropic/models/file_image_source.rb +21 -0
  424. data/lib/anthropic/models/file_list_params.rb +48 -0
  425. data/lib/anthropic/models/file_metadata.rb +82 -0
  426. data/lib/anthropic/models/file_retrieve_metadata_params.rb +22 -0
  427. data/lib/anthropic/models/file_upload_params.rb +34 -0
  428. data/lib/anthropic/models/image_block_param.rb +50 -4
  429. data/lib/anthropic/models/image_transformations_param.rb +47 -0
  430. data/lib/anthropic/models/message_count_tokens_params.rb +2 -2
  431. data/lib/anthropic/models/message_count_tokens_tool.rb +17 -1
  432. data/lib/anthropic/models/message_create_params.rb +5 -5
  433. data/lib/anthropic/models/message_create_params_container.rb +18 -0
  434. data/lib/anthropic/models/message_param.rb +3 -3
  435. data/lib/anthropic/models/messages/batch_create_params.rb +9 -9
  436. data/lib/anthropic/models/messages/message_batch_individual_response.rb +3 -3
  437. data/lib/anthropic/models/messages/message_batch_result.rb +28 -0
  438. data/lib/anthropic/models/model.rb +0 -16
  439. data/lib/anthropic/models/raw_content_block_delta.rb +39 -0
  440. data/lib/anthropic/models/raw_content_block_start_event.rb +69 -0
  441. data/lib/anthropic/models/raw_message_stream_event.rb +41 -0
  442. data/lib/anthropic/models/redacted_thinking_block.rb +15 -1
  443. data/lib/anthropic/models/redacted_thinking_block_param.rb +7 -1
  444. data/lib/anthropic/models/refusal_stop_details.rb +2 -2
  445. data/lib/anthropic/models/server_tool_use_block.rb +24 -0
  446. data/lib/anthropic/models/server_tool_use_block_param.rb +24 -0
  447. data/lib/anthropic/models/signature_delta.rb +8 -1
  448. data/lib/anthropic/models/skill.rb +82 -0
  449. data/lib/anthropic/models/skill_create_params.rb +38 -0
  450. data/lib/anthropic/models/skill_delete_params.rb +27 -0
  451. data/lib/anthropic/models/skill_list_params.rb +51 -0
  452. data/lib/anthropic/models/skill_params.rb +47 -0
  453. data/lib/anthropic/models/skill_retrieve_params.rb +27 -0
  454. data/lib/anthropic/models/skill_source.rb +48 -0
  455. data/lib/anthropic/models/skills/deleted_skill_version.rb +33 -0
  456. data/lib/anthropic/models/skills/skill_version.rb +74 -0
  457. data/lib/anthropic/models/skills/version_create_params.rb +40 -0
  458. data/lib/anthropic/models/skills/version_delete_params.rb +41 -0
  459. data/lib/anthropic/models/skills/version_list_params.rb +47 -0
  460. data/lib/anthropic/models/skills/version_retrieve_params.rb +41 -0
  461. data/lib/anthropic/models/text_citation.rb +59 -0
  462. data/lib/anthropic/models/text_citation_param.rb +57 -0
  463. data/lib/anthropic/models/thinking_block.rb +18 -2
  464. data/lib/anthropic/models/thinking_block_param.rb +13 -2
  465. data/lib/anthropic/models/thinking_config_param.rb +29 -0
  466. data/lib/anthropic/models/thinking_delta.rb +8 -1
  467. data/lib/anthropic/models/tool_choice.rb +31 -0
  468. data/lib/anthropic/models/tool_choice_any.rb +2 -2
  469. data/lib/anthropic/models/tool_choice_auto.rb +2 -2
  470. data/lib/anthropic/models/tool_choice_tool.rb +2 -2
  471. data/lib/anthropic/models/tool_result_block_param.rb +75 -5
  472. data/lib/anthropic/models/tool_union.rb +17 -1
  473. data/lib/anthropic/models/tool_use_block.rb +33 -1
  474. data/lib/anthropic/models/tool_use_block_param.rb +33 -1
  475. data/lib/anthropic/models/web_fetch_tool_20260309.rb +2 -2
  476. data/lib/anthropic/models/web_fetch_tool_result_block.rb +24 -0
  477. data/lib/anthropic/models/web_fetch_tool_result_block_param.rb +24 -0
  478. data/lib/anthropic/models/web_search_tool_result_block.rb +24 -0
  479. data/lib/anthropic/models/web_search_tool_result_block_param.rb +24 -0
  480. data/lib/anthropic/models.rb +166 -2
  481. data/lib/anthropic/resources/beta/agents.rb +6 -6
  482. data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
  483. data/lib/anthropic/resources/beta/deployments.rb +12 -8
  484. data/lib/anthropic/resources/beta/dreams.rb +8 -3
  485. data/lib/anthropic/resources/beta/environments/work.rb +9 -9
  486. data/lib/anthropic/resources/beta/environments.rb +7 -7
  487. data/lib/anthropic/resources/beta/files.rb +10 -10
  488. data/lib/anthropic/resources/beta/memory_stores/memories.rb +6 -6
  489. data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +4 -1
  490. data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
  491. data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
  492. data/lib/anthropic/resources/beta/messages.rb +44 -23
  493. data/lib/anthropic/resources/beta/models.rb +3 -3
  494. data/lib/anthropic/resources/beta/sessions/events.rb +6 -6
  495. data/lib/anthropic/resources/beta/sessions/resources.rb +6 -6
  496. data/lib/anthropic/resources/beta/sessions/threads/events.rb +4 -4
  497. data/lib/anthropic/resources/beta/sessions/threads.rb +2 -2
  498. data/lib/anthropic/resources/beta/sessions.rb +12 -8
  499. data/lib/anthropic/resources/beta/skills/versions.rb +10 -10
  500. data/lib/anthropic/resources/beta/skills.rb +8 -8
  501. data/lib/anthropic/resources/beta/tunnels/certificates.rb +6 -6
  502. data/lib/anthropic/resources/beta/tunnels.rb +3 -3
  503. data/lib/anthropic/resources/beta/user_profiles.rb +15 -11
  504. data/lib/anthropic/resources/beta/vaults/credentials.rb +6 -6
  505. data/lib/anthropic/resources/beta/vaults.rb +6 -6
  506. data/lib/anthropic/resources/completions.rb +6 -6
  507. data/lib/anthropic/resources/files.rb +134 -0
  508. data/lib/anthropic/resources/messages/batches.rb +6 -6
  509. data/lib/anthropic/resources/messages.rb +43 -34
  510. data/lib/anthropic/resources/models.rb +3 -3
  511. data/lib/anthropic/resources/skills/versions.rb +135 -0
  512. data/lib/anthropic/resources/skills.rb +123 -0
  513. data/lib/anthropic/version.rb +1 -1
  514. data/lib/anthropic.rb +183 -4
  515. data/rbi/anthropic/client.rbi +11 -0
  516. data/rbi/anthropic/errors.rbi +8 -0
  517. data/rbi/anthropic/helpers/bedrock/client.rbi +12 -0
  518. data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +8 -0
  519. data/rbi/anthropic/helpers/google_cloud/client.rbi +5 -9
  520. data/rbi/anthropic/helpers/tools/base_tool.rbi +17 -0
  521. data/rbi/anthropic/helpers/vertex/client.rbi +13 -0
  522. data/rbi/anthropic/internal/type/base_stream.rbi +8 -0
  523. data/rbi/anthropic/models/anthropic_beta.rbi +10 -0
  524. data/rbi/anthropic/models/beta/agent_create_params.rbi +62 -3
  525. data/rbi/anthropic/models/beta/agent_update_params.rbi +62 -3
  526. data/rbi/anthropic/models/beta/beta_browser_close_tab_config.rbi +59 -0
  527. data/rbi/anthropic/models/beta/beta_browser_double_click_config.rbi +59 -0
  528. data/rbi/anthropic/models/beta/beta_browser_file_upload_config.rbi +59 -0
  529. data/rbi/anthropic/models/beta/beta_browser_find_config.rbi +59 -0
  530. data/rbi/anthropic/models/beta/beta_browser_form_input_config.rbi +59 -0
  531. data/rbi/anthropic/models/beta/beta_browser_get_page_text_config.rbi +59 -0
  532. data/rbi/anthropic/models/beta/beta_browser_hold_key_config.rbi +59 -0
  533. data/rbi/anthropic/models/beta/beta_browser_hover_config.rbi +59 -0
  534. data/rbi/anthropic/models/beta/beta_browser_javascript_exec_config.rbi +59 -0
  535. data/rbi/anthropic/models/beta/beta_browser_key_config.rbi +59 -0
  536. data/rbi/anthropic/models/beta/beta_browser_left_click_config.rbi +59 -0
  537. data/rbi/anthropic/models/beta/beta_browser_left_click_drag_config.rbi +59 -0
  538. data/rbi/anthropic/models/beta/beta_browser_left_mouse_down_config.rbi +59 -0
  539. data/rbi/anthropic/models/beta/beta_browser_left_mouse_up_config.rbi +59 -0
  540. data/rbi/anthropic/models/beta/beta_browser_list_tabs_config.rbi +59 -0
  541. data/rbi/anthropic/models/beta/beta_browser_middle_click_config.rbi +59 -0
  542. data/rbi/anthropic/models/beta/beta_browser_mouse_move_config.rbi +59 -0
  543. data/rbi/anthropic/models/beta/beta_browser_navigate_config.rbi +59 -0
  544. data/rbi/anthropic/models/beta/beta_browser_new_tab_config.rbi +59 -0
  545. data/rbi/anthropic/models/beta/beta_browser_read_console_config.rbi +59 -0
  546. data/rbi/anthropic/models/beta/beta_browser_read_network_config.rbi +59 -0
  547. data/rbi/anthropic/models/beta/beta_browser_read_page_config.rbi +59 -0
  548. data/rbi/anthropic/models/beta/beta_browser_right_click_config.rbi +59 -0
  549. data/rbi/anthropic/models/beta/beta_browser_screenshot_config.rbi +59 -0
  550. data/rbi/anthropic/models/beta/beta_browser_scroll_config.rbi +59 -0
  551. data/rbi/anthropic/models/beta/beta_browser_scroll_to_config.rbi +59 -0
  552. data/rbi/anthropic/models/beta/beta_browser_state_block_param.rbi +120 -0
  553. data/rbi/anthropic/models/beta/beta_browser_state_change.rbi +69 -0
  554. data/rbi/anthropic/models/beta/beta_browser_state_change_download_completed.rbi +83 -0
  555. data/rbi/anthropic/models/beta/beta_browser_state_change_download_failed.rbi +70 -0
  556. data/rbi/anthropic/models/beta/beta_browser_state_change_download_started.rbi +54 -0
  557. data/rbi/anthropic/models/beta/beta_browser_state_change_tab_opened.rbi +44 -0
  558. data/rbi/anthropic/models/beta/beta_browser_state_tab_entry.rbi +74 -0
  559. data/rbi/anthropic/models/beta/beta_browser_switch_tab_config.rbi +59 -0
  560. data/rbi/anthropic/models/beta/beta_browser_toolset_20260801.rbi +169 -0
  561. data/rbi/anthropic/models/beta/beta_browser_toolset_configs.rbi +598 -0
  562. data/rbi/anthropic/models/beta/beta_browser_triple_click_config.rbi +59 -0
  563. data/rbi/anthropic/models/beta/beta_browser_type_config.rbi +59 -0
  564. data/rbi/anthropic/models/beta/beta_browser_wait_config.rbi +59 -0
  565. data/rbi/anthropic/models/beta/beta_browser_zoom_config.rbi +59 -0
  566. data/rbi/anthropic/models/beta/beta_citations_delta.rbi +60 -0
  567. data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbi +10 -0
  568. data/rbi/anthropic/models/beta/beta_cloud_config.rbi +23 -0
  569. data/rbi/anthropic/models/beta/beta_cloud_config_params.rbi +25 -0
  570. data/rbi/anthropic/models/beta/beta_computer_cursor_position_config.rbi +59 -0
  571. data/rbi/anthropic/models/beta/beta_computer_double_click_config.rbi +59 -0
  572. data/rbi/anthropic/models/beta/beta_computer_hold_key_config.rbi +59 -0
  573. data/rbi/anthropic/models/beta/beta_computer_key_config.rbi +59 -0
  574. data/rbi/anthropic/models/beta/beta_computer_left_click_config.rbi +59 -0
  575. data/rbi/anthropic/models/beta/beta_computer_left_click_drag_config.rbi +59 -0
  576. data/rbi/anthropic/models/beta/beta_computer_left_mouse_down_config.rbi +59 -0
  577. data/rbi/anthropic/models/beta/beta_computer_left_mouse_up_config.rbi +59 -0
  578. data/rbi/anthropic/models/beta/beta_computer_middle_click_config.rbi +59 -0
  579. data/rbi/anthropic/models/beta/beta_computer_mouse_move_config.rbi +59 -0
  580. data/rbi/anthropic/models/beta/beta_computer_right_click_config.rbi +59 -0
  581. data/rbi/anthropic/models/beta/beta_computer_screenshot_config.rbi +59 -0
  582. data/rbi/anthropic/models/beta/beta_computer_scroll_config.rbi +59 -0
  583. data/rbi/anthropic/models/beta/beta_computer_toolset_20260801.rbi +172 -0
  584. data/rbi/anthropic/models/beta/beta_computer_toolset_configs.rbi +362 -0
  585. data/rbi/anthropic/models/beta/beta_computer_triple_click_config.rbi +59 -0
  586. data/rbi/anthropic/models/beta/beta_computer_type_config.rbi +59 -0
  587. data/rbi/anthropic/models/beta/beta_computer_wait_config.rbi +59 -0
  588. data/rbi/anthropic/models/beta/beta_computer_zoom_config.rbi +59 -0
  589. data/rbi/anthropic/models/beta/beta_content_block.rbi +145 -0
  590. data/rbi/anthropic/models/beta/beta_content_block_param.rbi +173 -1
  591. data/rbi/anthropic/models/beta/beta_content_block_source_content.rbi +45 -0
  592. data/rbi/anthropic/models/beta/beta_context_management_config.rbi +55 -0
  593. data/rbi/anthropic/models/beta/beta_context_management_response.rbi +23 -0
  594. data/rbi/anthropic/models/beta/{deleted_file.rbi → beta_deleted_file.rbi} +20 -9
  595. data/rbi/anthropic/models/beta/beta_diagnostics.rbi +18 -0
  596. data/rbi/anthropic/models/beta/beta_document_block.rbi +12 -0
  597. data/rbi/anthropic/models/beta/beta_dream.rbi +20 -3
  598. data/rbi/anthropic/models/beta/beta_dream_input.rbi +15 -1
  599. data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +3 -1
  600. data/rbi/anthropic/models/beta/beta_dream_model_config.rbi +2 -2
  601. data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +2 -2
  602. data/rbi/anthropic/models/beta/beta_environment.rbi +27 -5
  603. data/rbi/anthropic/models/beta/beta_fallback_credit_usage.rbi +30 -0
  604. data/rbi/anthropic/models/beta/beta_fallback_param.rbi +37 -0
  605. data/rbi/anthropic/models/beta/{file_metadata.rbi → beta_file_metadata.rbi} +7 -2
  606. data/rbi/anthropic/models/beta/beta_image_block_param.rbi +48 -1
  607. data/rbi/anthropic/models/beta/beta_image_transformations_param.rbi +114 -0
  608. data/rbi/anthropic/models/beta/beta_iterations_usage.rbi +34 -0
  609. data/rbi/anthropic/models/beta/beta_managed_agents_advisor.rbi +81 -0
  610. data/rbi/anthropic/models/beta/beta_managed_agents_advisor_params.rbi +90 -0
  611. data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +60 -0
  612. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +37 -128
  613. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +49 -139
  614. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbi +18 -3
  615. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbi +42 -4
  616. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbi +10 -0
  617. data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +10 -0
  618. data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +64 -3
  619. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbi +105 -0
  620. data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +169 -0
  621. data/rbi/anthropic/models/beta/beta_managed_agents_budget_limit.rbi +86 -0
  622. data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +2 -2
  623. data/rbi/anthropic/models/beta/beta_managed_agents_deployment.rbi +24 -3
  624. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbi +43 -0
  625. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbi +43 -0
  626. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +33 -0
  627. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +10 -0
  628. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +14 -0
  629. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +20 -0
  630. data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +43 -2
  631. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbi +105 -0
  632. data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +169 -0
  633. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbi +20 -0
  634. data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +20 -0
  635. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbi +105 -0
  636. data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +169 -0
  637. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbi +105 -0
  638. data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +169 -0
  639. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbi +10 -0
  640. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +10 -0
  641. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbi +10 -0
  642. data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +10 -0
  643. data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +23 -0
  644. data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +12 -0
  645. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +56 -3
  646. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +62 -3
  647. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +6 -3
  648. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +6 -3
  649. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbi +2 -1
  650. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config.rbi +105 -0
  651. data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +169 -0
  652. data/rbi/anthropic/models/beta/beta_managed_agents_server_tool_usage.rbi +56 -0
  653. data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +21 -0
  654. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +64 -0
  655. data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +61 -0
  656. data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +86 -3
  657. data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +46 -0
  658. data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +64 -0
  659. data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +21 -0
  660. data/rbi/anthropic/models/beta/beta_managed_agents_session_usage.rbi +59 -3
  661. data/rbi/anthropic/models/beta/beta_managed_agents_session_usage_event.rbi +138 -0
  662. data/rbi/anthropic/models/beta/beta_managed_agents_skill_params.rbi +18 -0
  663. data/rbi/anthropic/models/beta/beta_managed_agents_start_event_preview.rbi +15 -0
  664. data/rbi/anthropic/models/beta/beta_managed_agents_trigger_context.rbi +14 -0
  665. data/rbi/anthropic/models/beta/beta_managed_agents_user_location.rbi +77 -0
  666. data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +50 -0
  667. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +130 -0
  668. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +213 -0
  669. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbi +144 -0
  670. data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +223 -0
  671. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config.rbi +105 -0
  672. data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +169 -0
  673. data/rbi/anthropic/models/beta/beta_memory_tool_20250818_command.rbi +39 -0
  674. data/rbi/anthropic/models/beta/beta_output_behavior.rbi +42 -0
  675. data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +71 -0
  676. data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +83 -0
  677. data/rbi/anthropic/models/beta/beta_raw_content_block_delta.rbi +50 -0
  678. data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +147 -0
  679. data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +72 -0
  680. data/rbi/anthropic/models/beta/beta_redacted_thinking_block.rbi +24 -1
  681. data/rbi/anthropic/models/beta/beta_redacted_thinking_block_param.rbi +8 -1
  682. data/rbi/anthropic/models/beta/beta_request_document_block.rbi +25 -0
  683. data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +14 -0
  684. data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +14 -0
  685. data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +10 -0
  686. data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +10 -0
  687. data/rbi/anthropic/models/beta/beta_signature_delta.rbi +10 -1
  688. data/rbi/anthropic/models/beta/beta_skill.rbi +2 -2
  689. data/rbi/anthropic/models/beta/beta_text_citation.rbi +60 -0
  690. data/rbi/anthropic/models/beta/beta_text_citation_param.rbi +58 -0
  691. data/rbi/anthropic/models/beta/beta_thinking_block.rbi +27 -1
  692. data/rbi/anthropic/models/beta/beta_thinking_block_param.rbi +17 -1
  693. data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +37 -0
  694. data/rbi/anthropic/models/beta/beta_thinking_delta.rbi +6 -0
  695. data/rbi/anthropic/models/beta/beta_tool_choice.rbi +21 -0
  696. data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +101 -2
  697. data/rbi/anthropic/models/beta/beta_tool_union.rbi +2 -0
  698. data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +19 -1
  699. data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +19 -1
  700. data/rbi/anthropic/models/beta/beta_user_profile.rbi +125 -45
  701. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block.rbi +10 -0
  702. data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbi +10 -0
  703. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +10 -0
  704. data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +10 -0
  705. data/rbi/anthropic/models/beta/beta_webhook_event.rbi +6 -3
  706. data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +27 -1
  707. data/rbi/anthropic/models/beta/beta_webhook_session_budget_reached_event_data.rbi +63 -0
  708. data/rbi/anthropic/models/beta/deployment_create_params.rbi +70 -0
  709. data/rbi/anthropic/models/beta/deployment_update_params.rbi +70 -0
  710. data/rbi/anthropic/models/beta/dream_create_params.rbi +40 -0
  711. data/rbi/anthropic/models/beta/environment_create_params.rbi +30 -0
  712. data/rbi/anthropic/models/beta/environment_update_params.rbi +34 -2
  713. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +31 -1
  714. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +20 -0
  715. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +53 -0
  716. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +8 -4
  717. data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rbi +44 -0
  718. data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +11 -0
  719. data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +10 -0
  720. data/rbi/anthropic/models/beta/message_create_params.rbi +8 -0
  721. data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +8 -0
  722. data/rbi/anthropic/models/beta/messages/beta_message_batch_result.rbi +14 -0
  723. data/rbi/anthropic/models/beta/session_create_params.rbi +104 -0
  724. data/rbi/anthropic/models/beta/session_update_params.rbi +21 -0
  725. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +50 -0
  726. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +45 -3
  727. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +43 -2
  728. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +43 -2
  729. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +50 -0
  730. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +10 -0
  731. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +10 -0
  732. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +30 -0
  733. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +79 -0
  734. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbi +20 -0
  735. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +27 -0
  736. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +10 -0
  737. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +10 -0
  738. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +10 -0
  739. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +10 -0
  740. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +10 -0
  741. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbi +76 -0
  742. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +89 -0
  743. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbi +79 -0
  744. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +34 -0
  745. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +205 -1
  746. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +60 -0
  747. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +22 -2
  748. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +88 -16
  749. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +22 -2
  750. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rbi +59 -3
  751. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rbi +140 -0
  752. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +224 -1
  753. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +224 -1
  754. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +10 -0
  755. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +50 -0
  756. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +50 -0
  757. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +20 -0
  758. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +21 -0
  759. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +43 -2
  760. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +47 -4
  761. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +50 -0
  762. data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +60 -0
  763. data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +60 -0
  764. data/rbi/anthropic/models/beta/unwrap_webhook_event.rbi +2 -1
  765. data/rbi/anthropic/models/beta/user_profile_create_params.rbi +77 -4
  766. data/rbi/anthropic/models/beta/user_profile_update_params.rbi +67 -0
  767. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +40 -0
  768. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +20 -0
  769. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +19 -0
  770. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +17 -0
  771. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +10 -0
  772. data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +17 -0
  773. data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +49 -0
  774. data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +45 -0
  775. data/rbi/anthropic/models/beta_currency.rbi +18 -0
  776. data/rbi/anthropic/models/beta_error.rbi +10 -0
  777. data/rbi/anthropic/models/beta_monetary_amount.rbi +51 -0
  778. data/rbi/anthropic/models/browser_close_tab_config.rbi +52 -0
  779. data/rbi/anthropic/models/browser_double_click_config.rbi +55 -0
  780. data/rbi/anthropic/models/browser_file_upload_config.rbi +55 -0
  781. data/rbi/anthropic/models/browser_find_config.rbi +52 -0
  782. data/rbi/anthropic/models/browser_form_input_config.rbi +52 -0
  783. data/rbi/anthropic/models/browser_get_page_text_config.rbi +55 -0
  784. data/rbi/anthropic/models/browser_hold_key_config.rbi +52 -0
  785. data/rbi/anthropic/models/browser_hover_config.rbi +52 -0
  786. data/rbi/anthropic/models/browser_javascript_exec_config.rbi +55 -0
  787. data/rbi/anthropic/models/browser_key_config.rbi +52 -0
  788. data/rbi/anthropic/models/browser_left_click_config.rbi +52 -0
  789. data/rbi/anthropic/models/browser_left_click_drag_config.rbi +55 -0
  790. data/rbi/anthropic/models/browser_left_mouse_down_config.rbi +55 -0
  791. data/rbi/anthropic/models/browser_left_mouse_up_config.rbi +55 -0
  792. data/rbi/anthropic/models/browser_list_tabs_config.rbi +52 -0
  793. data/rbi/anthropic/models/browser_middle_click_config.rbi +55 -0
  794. data/rbi/anthropic/models/browser_mouse_move_config.rbi +52 -0
  795. data/rbi/anthropic/models/browser_navigate_config.rbi +52 -0
  796. data/rbi/anthropic/models/browser_new_tab_config.rbi +52 -0
  797. data/rbi/anthropic/models/browser_read_console_config.rbi +55 -0
  798. data/rbi/anthropic/models/browser_read_network_config.rbi +55 -0
  799. data/rbi/anthropic/models/browser_read_page_config.rbi +52 -0
  800. data/rbi/anthropic/models/browser_right_click_config.rbi +55 -0
  801. data/rbi/anthropic/models/browser_screenshot_config.rbi +55 -0
  802. data/rbi/anthropic/models/browser_scroll_config.rbi +52 -0
  803. data/rbi/anthropic/models/browser_scroll_to_config.rbi +52 -0
  804. data/rbi/anthropic/models/browser_state_block_param.rbi +110 -0
  805. data/rbi/anthropic/models/browser_state_change.rbi +63 -0
  806. data/rbi/anthropic/models/browser_state_change_download_completed.rbi +78 -0
  807. data/rbi/anthropic/models/browser_state_change_download_failed.rbi +65 -0
  808. data/rbi/anthropic/models/browser_state_change_download_started.rbi +49 -0
  809. data/rbi/anthropic/models/browser_state_change_tab_opened.rbi +40 -0
  810. data/rbi/anthropic/models/browser_state_tab_entry.rbi +67 -0
  811. data/rbi/anthropic/models/browser_switch_tab_config.rbi +52 -0
  812. data/rbi/anthropic/models/browser_toolset_20260801.rbi +150 -0
  813. data/rbi/anthropic/models/browser_toolset_configs.rbi +479 -0
  814. data/rbi/anthropic/models/browser_triple_click_config.rbi +55 -0
  815. data/rbi/anthropic/models/browser_type_config.rbi +52 -0
  816. data/rbi/anthropic/models/browser_wait_config.rbi +52 -0
  817. data/rbi/anthropic/models/browser_zoom_config.rbi +52 -0
  818. data/rbi/anthropic/models/citations_delta.rbi +60 -0
  819. data/rbi/anthropic/models/computer_cursor_position_config.rbi +55 -0
  820. data/rbi/anthropic/models/computer_double_click_config.rbi +55 -0
  821. data/rbi/anthropic/models/computer_hold_key_config.rbi +52 -0
  822. data/rbi/anthropic/models/computer_key_config.rbi +52 -0
  823. data/rbi/anthropic/models/computer_left_click_config.rbi +55 -0
  824. data/rbi/anthropic/models/computer_left_click_drag_config.rbi +55 -0
  825. data/rbi/anthropic/models/computer_left_mouse_down_config.rbi +55 -0
  826. data/rbi/anthropic/models/computer_left_mouse_up_config.rbi +55 -0
  827. data/rbi/anthropic/models/computer_middle_click_config.rbi +55 -0
  828. data/rbi/anthropic/models/computer_mouse_move_config.rbi +55 -0
  829. data/rbi/anthropic/models/computer_right_click_config.rbi +55 -0
  830. data/rbi/anthropic/models/computer_screenshot_config.rbi +55 -0
  831. data/rbi/anthropic/models/computer_scroll_config.rbi +52 -0
  832. data/rbi/anthropic/models/computer_toolset_20260801.rbi +160 -0
  833. data/rbi/anthropic/models/computer_toolset_configs.rbi +284 -0
  834. data/rbi/anthropic/models/computer_triple_click_config.rbi +55 -0
  835. data/rbi/anthropic/models/computer_type_config.rbi +52 -0
  836. data/rbi/anthropic/models/computer_wait_config.rbi +52 -0
  837. data/rbi/anthropic/models/computer_zoom_config.rbi +52 -0
  838. data/rbi/anthropic/models/container.rbi +23 -3
  839. data/rbi/anthropic/models/container_params.rbi +46 -0
  840. data/rbi/anthropic/models/container_skill.rbi +75 -0
  841. data/rbi/anthropic/models/content_block.rbi +112 -0
  842. data/rbi/anthropic/models/content_block_param.rbi +135 -2
  843. data/rbi/anthropic/models/content_block_source_content.rbi +44 -0
  844. data/rbi/anthropic/models/deleted_file.rbi +69 -0
  845. data/rbi/anthropic/models/deleted_skill.rbi +41 -0
  846. data/rbi/anthropic/models/document_block.rbi +12 -0
  847. data/rbi/anthropic/models/document_block_param.rbi +30 -4
  848. data/rbi/anthropic/models/error_object.rbi +10 -0
  849. data/rbi/anthropic/models/file_delete_params.rbi +40 -0
  850. data/rbi/anthropic/models/file_document_source.rbi +26 -0
  851. data/rbi/anthropic/models/file_download_params.rbi +40 -0
  852. data/rbi/anthropic/models/file_image_source.rbi +26 -0
  853. data/rbi/anthropic/models/file_list_params.rbi +76 -0
  854. data/rbi/anthropic/models/file_metadata.rbi +108 -0
  855. data/rbi/anthropic/models/file_retrieve_metadata_params.rbi +43 -0
  856. data/rbi/anthropic/models/file_upload_params.rbi +56 -0
  857. data/rbi/anthropic/models/image_block_param.rbi +57 -5
  858. data/rbi/anthropic/models/image_transformations_param.rbi +107 -0
  859. data/rbi/anthropic/models/message_count_tokens_params.rbi +8 -0
  860. data/rbi/anthropic/models/message_count_tokens_tool.rbi +2 -0
  861. data/rbi/anthropic/models/message_create_params.rbi +12 -3
  862. data/rbi/anthropic/models/message_create_params_container.rbi +20 -0
  863. data/rbi/anthropic/models/messages/batch_create_params.rbi +15 -3
  864. data/rbi/anthropic/models/messages/message_batch_result.rbi +12 -0
  865. data/rbi/anthropic/models/model.rbi +0 -8
  866. data/rbi/anthropic/models/raw_content_block_delta.rbi +35 -0
  867. data/rbi/anthropic/models/raw_content_block_start_event.rbi +114 -0
  868. data/rbi/anthropic/models/raw_message_stream_event.rbi +62 -0
  869. data/rbi/anthropic/models/redacted_thinking_block.rbi +24 -1
  870. data/rbi/anthropic/models/redacted_thinking_block_param.rbi +8 -1
  871. data/rbi/anthropic/models/server_tool_use_block.rbi +10 -0
  872. data/rbi/anthropic/models/server_tool_use_block_param.rbi +10 -0
  873. data/rbi/anthropic/models/signature_delta.rbi +10 -1
  874. data/rbi/anthropic/models/skill.rbi +114 -0
  875. data/rbi/anthropic/models/skill_create_params.rbi +61 -0
  876. data/rbi/anthropic/models/skill_delete_params.rbi +44 -0
  877. data/rbi/anthropic/models/skill_list_params.rbi +82 -0
  878. data/rbi/anthropic/models/skill_params.rbi +76 -0
  879. data/rbi/anthropic/models/skill_retrieve_params.rbi +44 -0
  880. data/rbi/anthropic/models/skill_source.rbi +76 -0
  881. data/rbi/anthropic/models/skills/deleted_skill_version.rbi +44 -0
  882. data/rbi/anthropic/models/skills/skill_version.rbi +101 -0
  883. data/rbi/anthropic/models/skills/version_create_params.rbi +66 -0
  884. data/rbi/anthropic/models/skills/version_delete_params.rbi +68 -0
  885. data/rbi/anthropic/models/skills/version_list_params.rbi +72 -0
  886. data/rbi/anthropic/models/skills/version_retrieve_params.rbi +68 -0
  887. data/rbi/anthropic/models/text_citation.rbi +60 -0
  888. data/rbi/anthropic/models/text_citation_param.rbi +58 -0
  889. data/rbi/anthropic/models/thinking_block.rbi +27 -1
  890. data/rbi/anthropic/models/thinking_block_param.rbi +17 -1
  891. data/rbi/anthropic/models/thinking_config_param.rbi +33 -0
  892. data/rbi/anthropic/models/thinking_delta.rbi +10 -1
  893. data/rbi/anthropic/models/tool_choice.rbi +21 -0
  894. data/rbi/anthropic/models/tool_result_block_param.rbi +98 -2
  895. data/rbi/anthropic/models/tool_union.rbi +2 -0
  896. data/rbi/anthropic/models/tool_use_block.rbi +19 -1
  897. data/rbi/anthropic/models/tool_use_block_param.rbi +19 -1
  898. data/rbi/anthropic/models/web_fetch_tool_result_block.rbi +10 -0
  899. data/rbi/anthropic/models/web_fetch_tool_result_block_param.rbi +10 -0
  900. data/rbi/anthropic/models/web_search_tool_result_block.rbi +10 -0
  901. data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +10 -0
  902. data/rbi/anthropic/models.rbi +169 -3
  903. data/rbi/anthropic/resources/beta/agents.rbi +2 -2
  904. data/rbi/anthropic/resources/beta/deployments.rbi +10 -0
  905. data/rbi/anthropic/resources/beta/dreams.rbi +9 -0
  906. data/rbi/anthropic/resources/beta/environments.rbi +2 -1
  907. data/rbi/anthropic/resources/beta/files.rbi +6 -4
  908. data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +3 -0
  909. data/rbi/anthropic/resources/beta/messages.rbi +410 -0
  910. data/rbi/anthropic/resources/beta/sessions.rbi +9 -0
  911. data/rbi/anthropic/resources/beta/user_profiles.rbi +22 -3
  912. data/rbi/anthropic/resources/files.rbi +99 -0
  913. data/rbi/anthropic/resources/messages.rbi +114 -89
  914. data/rbi/anthropic/resources/skills/versions.rbi +108 -0
  915. data/rbi/anthropic/resources/skills.rbi +99 -0
  916. data/sig/anthropic/client.rbs +5 -0
  917. data/sig/anthropic/errors.rbs +4 -0
  918. data/sig/anthropic/helpers/bedrock/client.rbs +6 -0
  919. data/sig/anthropic/helpers/google_cloud/client.rbs +2 -6
  920. data/sig/anthropic/helpers/vertex/client.rbs +6 -0
  921. data/sig/anthropic/internal/type/base_stream.rbs +4 -0
  922. data/sig/anthropic/models/anthropic_beta.rbs +4 -0
  923. data/sig/anthropic/models/beta/agent_create_params.rbs +30 -0
  924. data/sig/anthropic/models/beta/agent_update_params.rbs +30 -0
  925. data/sig/anthropic/models/beta/beta_browser_close_tab_config.rbs +20 -0
  926. data/sig/anthropic/models/beta/beta_browser_double_click_config.rbs +20 -0
  927. data/sig/anthropic/models/beta/beta_browser_file_upload_config.rbs +20 -0
  928. data/sig/anthropic/models/beta/beta_browser_find_config.rbs +19 -0
  929. data/sig/anthropic/models/beta/beta_browser_form_input_config.rbs +20 -0
  930. data/sig/anthropic/models/beta/beta_browser_get_page_text_config.rbs +20 -0
  931. data/sig/anthropic/models/beta/beta_browser_hold_key_config.rbs +20 -0
  932. data/sig/anthropic/models/beta/beta_browser_hover_config.rbs +19 -0
  933. data/sig/anthropic/models/beta/beta_browser_javascript_exec_config.rbs +20 -0
  934. data/sig/anthropic/models/beta/beta_browser_key_config.rbs +19 -0
  935. data/sig/anthropic/models/beta/beta_browser_left_click_config.rbs +20 -0
  936. data/sig/anthropic/models/beta/beta_browser_left_click_drag_config.rbs +20 -0
  937. data/sig/anthropic/models/beta/beta_browser_left_mouse_down_config.rbs +20 -0
  938. data/sig/anthropic/models/beta/beta_browser_left_mouse_up_config.rbs +20 -0
  939. data/sig/anthropic/models/beta/beta_browser_list_tabs_config.rbs +20 -0
  940. data/sig/anthropic/models/beta/beta_browser_middle_click_config.rbs +20 -0
  941. data/sig/anthropic/models/beta/beta_browser_mouse_move_config.rbs +20 -0
  942. data/sig/anthropic/models/beta/beta_browser_navigate_config.rbs +20 -0
  943. data/sig/anthropic/models/beta/beta_browser_new_tab_config.rbs +20 -0
  944. data/sig/anthropic/models/beta/beta_browser_read_console_config.rbs +20 -0
  945. data/sig/anthropic/models/beta/beta_browser_read_network_config.rbs +20 -0
  946. data/sig/anthropic/models/beta/beta_browser_read_page_config.rbs +20 -0
  947. data/sig/anthropic/models/beta/beta_browser_right_click_config.rbs +20 -0
  948. data/sig/anthropic/models/beta/beta_browser_screenshot_config.rbs +20 -0
  949. data/sig/anthropic/models/beta/beta_browser_scroll_config.rbs +19 -0
  950. data/sig/anthropic/models/beta/beta_browser_scroll_to_config.rbs +20 -0
  951. data/sig/anthropic/models/beta/beta_browser_state_block_param.rbs +39 -0
  952. data/sig/anthropic/models/beta/beta_browser_state_change.rbs +52 -0
  953. data/sig/anthropic/models/beta/beta_browser_state_change_download_completed.rbs +44 -0
  954. data/sig/anthropic/models/beta/beta_browser_state_change_download_failed.rbs +39 -0
  955. data/sig/anthropic/models/beta/beta_browser_state_change_download_started.rbs +30 -0
  956. data/sig/anthropic/models/beta/beta_browser_state_change_tab_opened.rbs +20 -0
  957. data/sig/anthropic/models/beta/beta_browser_state_tab_entry.rbs +36 -0
  958. data/sig/anthropic/models/beta/beta_browser_switch_tab_config.rbs +20 -0
  959. data/sig/anthropic/models/beta/beta_browser_toolset_20260801.rbs +60 -0
  960. data/sig/anthropic/models/beta/beta_browser_toolset_configs.rbs +174 -0
  961. data/sig/anthropic/models/beta/beta_browser_triple_click_config.rbs +20 -0
  962. data/sig/anthropic/models/beta/beta_browser_type_config.rbs +19 -0
  963. data/sig/anthropic/models/beta/beta_browser_wait_config.rbs +19 -0
  964. data/sig/anthropic/models/beta/beta_browser_zoom_config.rbs +19 -0
  965. data/sig/anthropic/models/beta/beta_citations_delta.rbs +63 -0
  966. data/sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbs +14 -0
  967. data/sig/anthropic/models/beta/beta_cloud_config.rbs +17 -0
  968. data/sig/anthropic/models/beta/beta_cloud_config_params.rbs +17 -0
  969. data/sig/anthropic/models/beta/beta_computer_cursor_position_config.rbs +20 -0
  970. data/sig/anthropic/models/beta/beta_computer_double_click_config.rbs +20 -0
  971. data/sig/anthropic/models/beta/beta_computer_hold_key_config.rbs +20 -0
  972. data/sig/anthropic/models/beta/beta_computer_key_config.rbs +19 -0
  973. data/sig/anthropic/models/beta/beta_computer_left_click_config.rbs +20 -0
  974. data/sig/anthropic/models/beta/beta_computer_left_click_drag_config.rbs +20 -0
  975. data/sig/anthropic/models/beta/beta_computer_left_mouse_down_config.rbs +20 -0
  976. data/sig/anthropic/models/beta/beta_computer_left_mouse_up_config.rbs +20 -0
  977. data/sig/anthropic/models/beta/beta_computer_middle_click_config.rbs +20 -0
  978. data/sig/anthropic/models/beta/beta_computer_mouse_move_config.rbs +20 -0
  979. data/sig/anthropic/models/beta/beta_computer_right_click_config.rbs +20 -0
  980. data/sig/anthropic/models/beta/beta_computer_screenshot_config.rbs +20 -0
  981. data/sig/anthropic/models/beta/beta_computer_scroll_config.rbs +20 -0
  982. data/sig/anthropic/models/beta/beta_computer_toolset_20260801.rbs +60 -0
  983. data/sig/anthropic/models/beta/beta_computer_toolset_configs.rbs +104 -0
  984. data/sig/anthropic/models/beta/beta_computer_triple_click_config.rbs +20 -0
  985. data/sig/anthropic/models/beta/beta_computer_type_config.rbs +19 -0
  986. data/sig/anthropic/models/beta/beta_computer_wait_config.rbs +19 -0
  987. data/sig/anthropic/models/beta/beta_computer_zoom_config.rbs +19 -0
  988. data/sig/anthropic/models/beta/beta_content_block.rbs +132 -0
  989. data/sig/anthropic/models/beta/beta_content_block_param.rbs +199 -1
  990. data/sig/anthropic/models/beta/beta_content_block_source_content.rbs +22 -0
  991. data/sig/anthropic/models/beta/beta_context_management_config.rbs +32 -0
  992. data/sig/anthropic/models/beta/beta_context_management_response.rbs +18 -0
  993. data/sig/anthropic/models/beta/beta_deleted_file.rbs +40 -0
  994. data/sig/anthropic/models/beta/beta_diagnostics.rbs +28 -0
  995. data/sig/anthropic/models/beta/beta_document_block.rbs +17 -0
  996. data/sig/anthropic/models/beta/beta_dream.rbs +5 -0
  997. data/sig/anthropic/models/beta/beta_dream_input.rbs +15 -0
  998. data/sig/anthropic/models/beta/beta_environment.rbs +19 -4
  999. data/sig/anthropic/models/beta/beta_fallback_credit_usage.rbs +15 -0
  1000. data/sig/anthropic/models/beta/beta_fallback_param.rbs +20 -0
  1001. data/sig/anthropic/models/beta/{file_metadata.rbs → beta_file_metadata.rbs} +4 -2
  1002. data/sig/anthropic/models/beta/beta_image_block_param.rbs +29 -2
  1003. data/sig/anthropic/models/beta/beta_image_transformations_param.rbs +39 -0
  1004. data/sig/anthropic/models/beta/beta_iterations_usage.rbs +46 -0
  1005. data/sig/anthropic/models/beta/beta_managed_agents_advisor.rbs +39 -0
  1006. data/sig/anthropic/models/beta/beta_managed_agents_advisor_params.rbs +39 -0
  1007. data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +47 -0
  1008. data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +91 -57
  1009. data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +91 -57
  1010. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbs +4 -4
  1011. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbs +6 -6
  1012. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rbs +11 -0
  1013. data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbs +11 -0
  1014. data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +30 -0
  1015. data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbs +60 -0
  1016. data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbs +74 -0
  1017. data/sig/anthropic/models/beta/beta_managed_agents_budget_limit.rbs +39 -0
  1018. data/sig/anthropic/models/beta/beta_managed_agents_deployment.rbs +8 -3
  1019. data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbs +24 -0
  1020. data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbs +24 -0
  1021. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +13 -0
  1022. data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +49 -0
  1023. data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +76 -0
  1024. data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbs +15 -0
  1025. data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbs +28 -0
  1026. data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbs +60 -0
  1027. data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbs +74 -0
  1028. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbs +15 -0
  1029. data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +15 -0
  1030. data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbs +60 -0
  1031. data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbs +74 -0
  1032. data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbs +60 -0
  1033. data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbs +74 -0
  1034. data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config.rbs +11 -0
  1035. data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbs +11 -0
  1036. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbs +11 -0
  1037. data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbs +11 -0
  1038. data/sig/anthropic/models/beta/beta_managed_agents_model_config.rbs +25 -0
  1039. data/sig/anthropic/models/beta/beta_managed_agents_model_config_params.rbs +5 -0
  1040. data/sig/anthropic/models/beta/beta_managed_agents_multiagent.rbs +31 -4
  1041. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbs +31 -4
  1042. data/sig/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbs +1 -0
  1043. data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config.rbs +60 -0
  1044. data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbs +74 -0
  1045. data/sig/anthropic/models/beta/beta_managed_agents_server_tool_usage.rbs +30 -0
  1046. data/sig/anthropic/models/beta/beta_managed_agents_session.rbs +5 -0
  1047. data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +47 -0
  1048. data/sig/anthropic/models/beta/beta_managed_agents_session_agent_update.rbs +30 -0
  1049. data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +44 -4
  1050. data/sig/anthropic/models/beta/beta_managed_agents_session_resource_config.rbs +29 -0
  1051. data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +47 -0
  1052. data/sig/anthropic/models/beta/beta_managed_agents_session_updated_event.rbs +5 -0
  1053. data/sig/anthropic/models/beta/beta_managed_agents_session_usage.rbs +20 -3
  1054. data/sig/anthropic/models/beta/beta_managed_agents_session_usage_event.rbs +54 -0
  1055. data/sig/anthropic/models/beta/beta_managed_agents_skill_params.rbs +17 -0
  1056. data/sig/anthropic/models/beta/beta_managed_agents_start_event_preview.rbs +14 -0
  1057. data/sig/anthropic/models/beta/beta_managed_agents_trigger_context.rbs +13 -0
  1058. data/sig/anthropic/models/beta/beta_managed_agents_user_location.rbs +44 -0
  1059. data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +34 -0
  1060. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +79 -0
  1061. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +93 -0
  1062. data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbs +79 -0
  1063. data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbs +93 -0
  1064. data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config.rbs +60 -0
  1065. data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbs +74 -0
  1066. data/sig/anthropic/models/beta/beta_memory_tool_20250818_command.rbs +45 -0
  1067. data/sig/anthropic/models/beta/beta_output_behavior.rbs +30 -0
  1068. data/sig/anthropic/models/beta/beta_output_behavior_create_new.rbs +32 -0
  1069. data/sig/anthropic/models/beta/beta_output_behavior_update_existing.rbs +39 -0
  1070. data/sig/anthropic/models/beta/beta_raw_content_block_delta.rbs +39 -0
  1071. data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +132 -0
  1072. data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +39 -0
  1073. data/sig/anthropic/models/beta/beta_request_document_block.rbs +32 -0
  1074. data/sig/anthropic/models/beta/beta_request_tool_addition_block.rbs +20 -0
  1075. data/sig/anthropic/models/beta/beta_request_tool_removal_block.rbs +20 -0
  1076. data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +15 -0
  1077. data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +15 -0
  1078. data/sig/anthropic/models/beta/beta_text_citation.rbs +63 -0
  1079. data/sig/anthropic/models/beta/beta_text_citation_param.rbs +59 -0
  1080. data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +20 -0
  1081. data/sig/anthropic/models/beta/beta_tool_choice.rbs +21 -0
  1082. data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +67 -2
  1083. data/sig/anthropic/models/beta/beta_tool_union.rbs +2 -0
  1084. data/sig/anthropic/models/beta/beta_tool_use_block.rbs +22 -2
  1085. data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +22 -2
  1086. data/sig/anthropic/models/beta/beta_user_profile.rbs +42 -18
  1087. data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block.rbs +15 -0
  1088. data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbs +15 -0
  1089. data/sig/anthropic/models/beta/beta_web_search_tool_result_block.rbs +15 -0
  1090. data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param.rbs +15 -0
  1091. data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +284 -0
  1092. data/sig/anthropic/models/beta/beta_webhook_session_budget_reached_event_data.rbs +39 -0
  1093. data/sig/anthropic/models/beta/deployment_create_params.rbs +36 -0
  1094. data/sig/anthropic/models/beta/deployment_update_params.rbs +36 -0
  1095. data/sig/anthropic/models/beta/dream_create_params.rbs +9 -0
  1096. data/sig/anthropic/models/beta/environment_create_params.rbs +15 -0
  1097. data/sig/anthropic/models/beta/environment_update_params.rbs +15 -0
  1098. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs +26 -0
  1099. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +59 -0
  1100. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbs +30 -0
  1101. data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rbs +26 -0
  1102. data/sig/anthropic/models/beta/memory_stores/memory_version_list_params.rbs +7 -0
  1103. data/sig/anthropic/models/beta/message_count_tokens_params.rbs +2 -0
  1104. data/sig/anthropic/models/beta/messages/beta_message_batch_result.rbs +21 -0
  1105. data/sig/anthropic/models/beta/session_create_params.rbs +59 -0
  1106. data/sig/anthropic/models/beta/session_update_params.rbs +5 -0
  1107. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbs +34 -0
  1108. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbs +27 -4
  1109. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbs +28 -0
  1110. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbs +28 -0
  1111. data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbs +34 -0
  1112. data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +14 -0
  1113. data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +14 -0
  1114. data/sig/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbs +28 -0
  1115. data/sig/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbs +54 -0
  1116. data/sig/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbs +15 -0
  1117. data/sig/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbs +22 -0
  1118. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +14 -0
  1119. data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +14 -0
  1120. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +14 -0
  1121. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +14 -0
  1122. data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +14 -0
  1123. data/sig/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbs +34 -0
  1124. data/sig/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbs +75 -0
  1125. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbs +34 -0
  1126. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +65 -0
  1127. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +314 -0
  1128. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbs +43 -0
  1129. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbs +20 -0
  1130. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +44 -4
  1131. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs +20 -0
  1132. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rbs +20 -3
  1133. data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rbs +74 -0
  1134. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +326 -0
  1135. data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +326 -0
  1136. data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +14 -0
  1137. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbs +34 -0
  1138. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbs +34 -0
  1139. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbs +15 -0
  1140. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbs +15 -0
  1141. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbs +28 -0
  1142. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbs +28 -0
  1143. data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +34 -0
  1144. data/sig/anthropic/models/beta/sessions/resource_retrieve_response.rbs +43 -0
  1145. data/sig/anthropic/models/beta/sessions/resource_update_response.rbs +43 -0
  1146. data/sig/anthropic/models/beta/user_profile_create_params.rbs +20 -0
  1147. data/sig/anthropic/models/beta/user_profile_update_params.rbs +16 -0
  1148. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs +27 -0
  1149. data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbs +13 -0
  1150. data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbs +13 -0
  1151. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbs +17 -0
  1152. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbs +14 -0
  1153. data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbs +14 -0
  1154. data/sig/anthropic/models/beta/vaults/credential_create_params.rbs +33 -0
  1155. data/sig/anthropic/models/beta/vaults/credential_update_params.rbs +28 -0
  1156. data/sig/anthropic/models/beta_currency.rbs +13 -0
  1157. data/sig/anthropic/models/beta_error.rbs +42 -0
  1158. data/sig/anthropic/models/beta_monetary_amount.rbs +22 -0
  1159. data/sig/anthropic/models/browser_close_tab_config.rbs +15 -0
  1160. data/sig/anthropic/models/browser_double_click_config.rbs +15 -0
  1161. data/sig/anthropic/models/browser_file_upload_config.rbs +15 -0
  1162. data/sig/anthropic/models/browser_find_config.rbs +15 -0
  1163. data/sig/anthropic/models/browser_form_input_config.rbs +15 -0
  1164. data/sig/anthropic/models/browser_get_page_text_config.rbs +15 -0
  1165. data/sig/anthropic/models/browser_hold_key_config.rbs +15 -0
  1166. data/sig/anthropic/models/browser_hover_config.rbs +15 -0
  1167. data/sig/anthropic/models/browser_javascript_exec_config.rbs +16 -0
  1168. data/sig/anthropic/models/browser_key_config.rbs +15 -0
  1169. data/sig/anthropic/models/browser_left_click_config.rbs +15 -0
  1170. data/sig/anthropic/models/browser_left_click_drag_config.rbs +16 -0
  1171. data/sig/anthropic/models/browser_left_mouse_down_config.rbs +16 -0
  1172. data/sig/anthropic/models/browser_left_mouse_up_config.rbs +15 -0
  1173. data/sig/anthropic/models/browser_list_tabs_config.rbs +15 -0
  1174. data/sig/anthropic/models/browser_middle_click_config.rbs +15 -0
  1175. data/sig/anthropic/models/browser_mouse_move_config.rbs +15 -0
  1176. data/sig/anthropic/models/browser_navigate_config.rbs +15 -0
  1177. data/sig/anthropic/models/browser_new_tab_config.rbs +15 -0
  1178. data/sig/anthropic/models/browser_read_console_config.rbs +15 -0
  1179. data/sig/anthropic/models/browser_read_network_config.rbs +15 -0
  1180. data/sig/anthropic/models/browser_read_page_config.rbs +15 -0
  1181. data/sig/anthropic/models/browser_right_click_config.rbs +15 -0
  1182. data/sig/anthropic/models/browser_screenshot_config.rbs +15 -0
  1183. data/sig/anthropic/models/browser_scroll_config.rbs +15 -0
  1184. data/sig/anthropic/models/browser_scroll_to_config.rbs +15 -0
  1185. data/sig/anthropic/models/browser_state_block_param.rbs +35 -0
  1186. data/sig/anthropic/models/browser_state_change.rbs +48 -0
  1187. data/sig/anthropic/models/browser_state_change_download_completed.rbs +40 -0
  1188. data/sig/anthropic/models/browser_state_change_download_failed.rbs +35 -0
  1189. data/sig/anthropic/models/browser_state_change_download_started.rbs +26 -0
  1190. data/sig/anthropic/models/browser_state_change_tab_opened.rbs +15 -0
  1191. data/sig/anthropic/models/browser_state_tab_entry.rbs +32 -0
  1192. data/sig/anthropic/models/browser_switch_tab_config.rbs +15 -0
  1193. data/sig/anthropic/models/browser_toolset_20260801.rbs +56 -0
  1194. data/sig/anthropic/models/browser_toolset_configs.rbs +170 -0
  1195. data/sig/anthropic/models/browser_triple_click_config.rbs +15 -0
  1196. data/sig/anthropic/models/browser_type_config.rbs +15 -0
  1197. data/sig/anthropic/models/browser_wait_config.rbs +15 -0
  1198. data/sig/anthropic/models/browser_zoom_config.rbs +15 -0
  1199. data/sig/anthropic/models/citations_delta.rbs +63 -0
  1200. data/sig/anthropic/models/computer_cursor_position_config.rbs +16 -0
  1201. data/sig/anthropic/models/computer_double_click_config.rbs +15 -0
  1202. data/sig/anthropic/models/computer_hold_key_config.rbs +15 -0
  1203. data/sig/anthropic/models/computer_key_config.rbs +15 -0
  1204. data/sig/anthropic/models/computer_left_click_config.rbs +15 -0
  1205. data/sig/anthropic/models/computer_left_click_drag_config.rbs +16 -0
  1206. data/sig/anthropic/models/computer_left_mouse_down_config.rbs +16 -0
  1207. data/sig/anthropic/models/computer_left_mouse_up_config.rbs +16 -0
  1208. data/sig/anthropic/models/computer_middle_click_config.rbs +15 -0
  1209. data/sig/anthropic/models/computer_mouse_move_config.rbs +15 -0
  1210. data/sig/anthropic/models/computer_right_click_config.rbs +15 -0
  1211. data/sig/anthropic/models/computer_screenshot_config.rbs +15 -0
  1212. data/sig/anthropic/models/computer_scroll_config.rbs +15 -0
  1213. data/sig/anthropic/models/computer_toolset_20260801.rbs +56 -0
  1214. data/sig/anthropic/models/computer_toolset_configs.rbs +100 -0
  1215. data/sig/anthropic/models/computer_triple_click_config.rbs +15 -0
  1216. data/sig/anthropic/models/computer_type_config.rbs +15 -0
  1217. data/sig/anthropic/models/computer_wait_config.rbs +15 -0
  1218. data/sig/anthropic/models/computer_zoom_config.rbs +15 -0
  1219. data/sig/anthropic/models/container.rbs +18 -3
  1220. data/sig/anthropic/models/container_params.rbs +19 -0
  1221. data/sig/anthropic/models/container_skill.rbs +41 -0
  1222. data/sig/anthropic/models/content_block.rbs +93 -0
  1223. data/sig/anthropic/models/content_block_param.rbs +145 -1
  1224. data/sig/anthropic/models/content_block_source_content.rbs +22 -0
  1225. data/sig/anthropic/models/deleted_file.rbs +36 -0
  1226. data/sig/anthropic/models/deleted_skill.rbs +15 -0
  1227. data/sig/anthropic/models/document_block.rbs +17 -0
  1228. data/sig/anthropic/models/document_block_param.rbs +30 -0
  1229. data/sig/anthropic/models/error_object.rbs +42 -0
  1230. data/sig/anthropic/models/file_delete_params.rbs +23 -0
  1231. data/sig/anthropic/models/file_document_source.rbs +15 -0
  1232. data/sig/anthropic/models/file_download_params.rbs +23 -0
  1233. data/sig/anthropic/models/file_image_source.rbs +15 -0
  1234. data/sig/anthropic/models/file_list_params.rbs +34 -0
  1235. data/sig/anthropic/models/file_metadata.rbs +57 -0
  1236. data/sig/anthropic/models/file_retrieve_metadata_params.rbs +23 -0
  1237. data/sig/anthropic/models/file_upload_params.rbs +30 -0
  1238. data/sig/anthropic/models/image_block_param.rbs +30 -3
  1239. data/sig/anthropic/models/image_transformations_param.rbs +35 -0
  1240. data/sig/anthropic/models/message_count_tokens_tool.rbs +2 -0
  1241. data/sig/anthropic/models/message_create_params.rbs +4 -4
  1242. data/sig/anthropic/models/message_create_params_container.rbs +11 -0
  1243. data/sig/anthropic/models/messages/batch_create_params.rbs +4 -4
  1244. data/sig/anthropic/models/messages/message_batch_result.rbs +21 -0
  1245. data/sig/anthropic/models/model.rbs +0 -8
  1246. data/sig/anthropic/models/raw_content_block_delta.rbs +27 -0
  1247. data/sig/anthropic/models/raw_content_block_start_event.rbs +93 -0
  1248. data/sig/anthropic/models/raw_message_stream_event.rbs +37 -0
  1249. data/sig/anthropic/models/server_tool_use_block.rbs +15 -0
  1250. data/sig/anthropic/models/server_tool_use_block_param.rbs +15 -0
  1251. data/sig/anthropic/models/skill.rbs +50 -0
  1252. data/sig/anthropic/models/skill_create_params.rbs +28 -0
  1253. data/sig/anthropic/models/skill_delete_params.rbs +23 -0
  1254. data/sig/anthropic/models/skill_list_params.rbs +34 -0
  1255. data/sig/anthropic/models/skill_params.rbs +43 -0
  1256. data/sig/anthropic/models/skill_retrieve_params.rbs +23 -0
  1257. data/sig/anthropic/models/skill_source.rbs +26 -0
  1258. data/sig/anthropic/models/skills/deleted_skill_version.rbs +17 -0
  1259. data/sig/anthropic/models/skills/skill_version.rbs +49 -0
  1260. data/sig/anthropic/models/skills/version_create_params.rbs +30 -0
  1261. data/sig/anthropic/models/skills/version_delete_params.rbs +30 -0
  1262. data/sig/anthropic/models/skills/version_list_params.rbs +34 -0
  1263. data/sig/anthropic/models/skills/version_retrieve_params.rbs +30 -0
  1264. data/sig/anthropic/models/text_citation.rbs +63 -0
  1265. data/sig/anthropic/models/text_citation_param.rbs +59 -0
  1266. data/sig/anthropic/models/thinking_config_param.rbs +18 -0
  1267. data/sig/anthropic/models/tool_choice.rbs +21 -0
  1268. data/sig/anthropic/models/tool_result_block_param.rbs +67 -2
  1269. data/sig/anthropic/models/tool_union.rbs +2 -0
  1270. data/sig/anthropic/models/tool_use_block.rbs +22 -2
  1271. data/sig/anthropic/models/tool_use_block_param.rbs +22 -2
  1272. data/sig/anthropic/models/web_fetch_tool_result_block.rbs +15 -0
  1273. data/sig/anthropic/models/web_fetch_tool_result_block_param.rbs +15 -0
  1274. data/sig/anthropic/models/web_search_tool_result_block.rbs +15 -0
  1275. data/sig/anthropic/models/web_search_tool_result_block_param.rbs +15 -0
  1276. data/sig/anthropic/models.rbs +166 -2
  1277. data/sig/anthropic/resources/beta/deployments.rbs +2 -0
  1278. data/sig/anthropic/resources/beta/dreams.rbs +1 -0
  1279. data/sig/anthropic/resources/beta/files.rbs +4 -4
  1280. data/sig/anthropic/resources/beta/memory_stores/memory_versions.rbs +1 -0
  1281. data/sig/anthropic/resources/beta/messages.rbs +30 -0
  1282. data/sig/anthropic/resources/beta/sessions.rbs +2 -0
  1283. data/sig/anthropic/resources/beta/user_profiles.rbs +2 -0
  1284. data/sig/anthropic/resources/files.rbs +35 -0
  1285. data/sig/anthropic/resources/messages.rbs +24 -2
  1286. data/sig/anthropic/resources/skills/versions.rbs +34 -0
  1287. data/sig/anthropic/resources/skills.rbs +32 -0
  1288. metadata +581 -24
  1289. data/lib/anthropic/models/beta/beta_mid_conversation_system_block_param.rb +0 -71
  1290. data/lib/anthropic/models/mid_conversation_system_block_param.rb +0 -37
  1291. data/rbi/anthropic/models/beta/beta_mid_conversation_system_block_param.rbi +0 -125
  1292. data/rbi/anthropic/models/mid_conversation_system_block_param.rbi +0 -66
  1293. data/sig/anthropic/models/beta/beta_mid_conversation_system_block_param.rbs +0 -45
  1294. data/sig/anthropic/models/beta/deleted_file.rbs +0 -38
  1295. data/sig/anthropic/models/mid_conversation_system_block_param.rbs +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5c7920c024b325266d16d26526490511c33ee3de9136b7a0314a6d7c28f8c0a
4
- data.tar.gz: 21354f0f03146858812a863149f1c02b7f961cdbd3d7726b166530d628d340eb
3
+ metadata.gz: 2250e8bcc591b9822aba99c4c69d00f28495b14a6f7e03ec4997a3ec8fbaa63d
4
+ data.tar.gz: 1875230fde738ce6d365470dc781c264ec81147d4bf7382f111ea98f43777340
5
5
  SHA512:
6
- metadata.gz: be751a0e2ddaf99238b87eefb9d67fb7479542f624d42490dc009eb1b1fcdd92159bea36526d41ab07d26687ab943911b94e27941b809f6322478ffaaa0baff2
7
- data.tar.gz: da3afb6cf93ae7f9a4ab4fe2bca496f80eca4222ab80638677bca0eebd6cc9c0e556f980d2214a112aec585349193b8fcf73dde751b8a087c0da56a65647fd7f
6
+ metadata.gz: cd7fb0d6a181129755fc38183e4fa5f77aef8f29bed1fb01b1d53f94776d05a85a00c6173f0686968a470b9991258dcc37383067380594a6345e7fd402b41eeb
7
+ data.tar.gz: 16f85f7c7abc63b6aa4b3cd8b3172744e9852107dd56413038ac04fd3b08529b5029812cf651ca365b4565963e776dcfa01c4c742678a47a6ab70ed195094df1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,102 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.65.0 (2026-08-19)
4
+
5
+ Full Changelog: [v1.64.0...v1.65.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.64.0...v1.65.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** managed agents web search config and self hosted sandbox memory ([c7a8dac](https://github.com/anthropics/anthropic-sdk-ruby/commit/c7a8dac314c1b05ef5e01d632f4d0a8c0b467e38))
10
+
11
+ ## 1.64.0 (2026-08-19)
12
+
13
+ Full Changelog: [v1.63.0...v1.64.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.63.0...v1.64.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** Files and Skills APIs are now GA; add computer use and browser use toolsets ([6878cd5](https://github.com/anthropics/anthropic-sdk-ruby/commit/6878cd5099c99f5dc8e600ec71a40b9194d384d7))
18
+
19
+ ## 1.63.0 (2026-08-18)
20
+
21
+ Full Changelog: [v1.62.0...v1.63.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.62.0...v1.63.0)
22
+
23
+ ### Features
24
+
25
+ * **api:** additions to files and memory stores ([f4baf57](https://github.com/anthropics/anthropic-sdk-ruby/commit/f4baf57eaf96b098ec63c895c84c701294583240))
26
+ * **api:** updates to skill, files, and user profiles ([ba0844b](https://github.com/anthropics/anthropic-sdk-ruby/commit/ba0844b290a2036cba7c0a79e500497d48096c5f))
27
+ * **tools:** add `tool_options` to `BaseTool` (strict, cache_control, …) ([#161](https://github.com/anthropics/anthropic-sdk-ruby/issues/161)) ([df278f9](https://github.com/anthropics/anthropic-sdk-ruby/commit/df278f9170ce5ff130433602b18470248dcfa3f4))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * **api:** remove unsupported mid_conv_system content block ([687a6da](https://github.com/anthropics/anthropic-sdk-ruby/commit/687a6da56fe9cb85753f6a819d7978580bed61c9))
33
+ * **aws,google_cloud:** adopt the default-credentials hook in the AWS and Google Cloud clients ([#170](https://github.com/anthropics/anthropic-sdk-ruby/issues/170)) ([169fea9](https://github.com/anthropics/anthropic-sdk-ruby/commit/169fea9f5ef8d0798bc0e795e0579eae367939e2))
34
+ * **client:** never fall back to the first-party base URL when default credentials are disabled ([#193](https://github.com/anthropics/anthropic-sdk-ruby/issues/193)) ([b6e9f56](https://github.com/anthropics/anthropic-sdk-ruby/commit/b6e9f562c2872dc5f3ca3a4d6c4025e0e75397d1))
35
+ * **tool-runner:** forward the server-assigned container on follow-up requests ([#189](https://github.com/anthropics/anthropic-sdk-ruby/issues/189)) ([891ac9b](https://github.com/anthropics/anthropic-sdk-ruby/commit/891ac9b8f12234bfe6938086937505e27175df46))
36
+ * **tool-runner:** replay unknown tool_use input verbatim ([#173](https://github.com/anthropics/anthropic-sdk-ruby/issues/173)) ([566a881](https://github.com/anthropics/anthropic-sdk-ruby/commit/566a8817fbe8aad5a25b4111021e39d20451ef03))
37
+ * **tool-runner:** stop on refusal instead of executing tools ([#174](https://github.com/anthropics/anthropic-sdk-ruby/issues/174)) ([4b8d2e4](https://github.com/anthropics/anthropic-sdk-ruby/commit/4b8d2e43265d31b55eb9a6f0d3241b62fa510b2d))
38
+
39
+
40
+ ### Chores
41
+
42
+ * **internal:** remove leftover prism references ([5a416d3](https://github.com/anthropics/anthropic-sdk-ruby/commit/5a416d3f2c784d697a8f9fbc99f5620102ea0c84))
43
+
44
+ ## 1.62.0 (2026-08-13)
45
+
46
+ Full Changelog: [v1.61.0...v1.62.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.61.0...v1.62.0)
47
+
48
+ ### Features
49
+
50
+ * **api:** add output_behavior to dream creation (create a new memory store or update the input store in place) ([836125f](https://github.com/anthropics/anthropic-sdk-ruby/commit/836125f10cee42677d814fa7bb85f693914c6af9))
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * **bedrock:** adopt the default-credentials hook in place of the direct base-client bind ([#145](https://github.com/anthropics/anthropic-sdk-ruby/issues/145)) ([e082f28](https://github.com/anthropics/anthropic-sdk-ruby/commit/e082f280846cd00bda4f89b9fb6ad50b4a4a5feb))
56
+ * **client:** accumulate streamed input for server tool use blocks ([#162](https://github.com/anthropics/anthropic-sdk-ruby/issues/162)) ([75382d8](https://github.com/anthropics/anthropic-sdk-ruby/commit/75382d81ebb6b3bedad92749f26e4625d8203097))
57
+ * **client:** add models ([055b440](https://github.com/anthropics/anthropic-sdk-ruby/commit/055b440aa315cf644b08ede51a19f448fab00cbf))
58
+ * **internal:** don't resolve lazy field types when hashing a model class ([#155](https://github.com/anthropics/anthropic-sdk-ruby/issues/155)) ([0a2c06f](https://github.com/anthropics/anthropic-sdk-ruby/commit/0a2c06fcbdb345d751ae0850cac70177cb232d53))
59
+ * **streaming:** apply all message_delta fields when accumulating streamed messages ([#160](https://github.com/anthropics/anthropic-sdk-ruby/issues/160)) ([e537ae2](https://github.com/anthropics/anthropic-sdk-ruby/commit/e537ae23ac5c5701b47812e9062db9c3bd9f29da))
60
+ * **vertex:** don't resolve the shared config store during client init ([#142](https://github.com/anthropics/anthropic-sdk-ruby/issues/142)) ([4108bd4](https://github.com/anthropics/anthropic-sdk-ruby/commit/4108bd4aa3fd3517b51971fdd25f15351bd8f5be))
61
+
62
+
63
+ ### Documentation
64
+
65
+ * **api:** clarify that user profile name is optional for resold profiles ([e68fd57](https://github.com/anthropics/anthropic-sdk-ruby/commit/e68fd57357fed4964666d84d011b38873abff02d))
66
+ * **client:** move truncated-docs note below the description in YARD doc blocks ([3db8b94](https://github.com/anthropics/anthropic-sdk-ruby/commit/3db8b9489cd2adb207edbb0165ea11fbacc19db4))
67
+ * fix Symbol typo in RDoc comments ([#163](https://github.com/anthropics/anthropic-sdk-ruby/issues/163)) ([1102732](https://github.com/anthropics/anthropic-sdk-ruby/commit/1102732847ffc02eef9d2c69e233f5e6f56787d8))
68
+
69
+ ## 1.61.0 (2026-08-07)
70
+
71
+ Full Changelog: [v1.60.0...v1.61.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.60.0...v1.61.0)
72
+
73
+ ### Features
74
+
75
+ * **api:** add support for session budgets, advisor tool, pinned inference location and skills auto-loading from GitHub ([3d294f2](https://github.com/anthropics/anthropic-sdk-ruby/commit/3d294f276ed76868fd62159a72e3bbfeca69c0a9))
76
+
77
+ ## 1.60.0 (2026-08-06)
78
+
79
+ Full Changelog: [v1.59.0...v1.60.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.59.0...v1.60.0)
80
+
81
+ ### Features
82
+
83
+ * **api:** add `mid-conversation-tool-changes-2026-07-01` beta ([f52232a](https://github.com/anthropics/anthropic-sdk-ruby/commit/f52232a5ed81f9911d0481b41b2bbe44456c421b))
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * **client:** declare `base64` gemspec dependency so `require` works under Bundler on Ruby 3.4+ ([468dd7d](https://github.com/anthropics/anthropic-sdk-ruby/commit/468dd7d5fcd5ba973825968c5f6dd6529b586201))
89
+ * **deps:** constrain gemspec runtime dependencies to their current major ([#141](https://github.com/anthropics/anthropic-sdk-ruby/issues/141)) ([b0e644c](https://github.com/anthropics/anthropic-sdk-ruby/commit/b0e644ceac00a7f9b43632345fa99c86717b7cca))
90
+ * **internal:** preserve coerce state strictness in discriminated union fast path ([b30146f](https://github.com/anthropics/anthropic-sdk-ruby/commit/b30146f91e58ba71a751685ea3264ee757a7cc77))
91
+
92
+
93
+ ### Chores
94
+
95
+ * **api:** remove retired Claude Opus 4.1 models ([b7b2043](https://github.com/anthropics/anthropic-sdk-ruby/commit/b7b2043b8bdf38271a6269771c1869b96fb66d82))
96
+ * **deps:** bump 6 CVE-flagged dev/test gems to CVE-clean versions ([#146](https://github.com/anthropics/anthropic-sdk-ruby/issues/146)) ([ae3a617](https://github.com/anthropics/anthropic-sdk-ruby/commit/ae3a61750cede1c854e15047c411241b82ede8de))
97
+ * **docs:** small updates to descriptions ([b8dc207](https://github.com/anthropics/anthropic-sdk-ruby/commit/b8dc207c909f48c7b276cef6da79e99404e1b6c7))
98
+ * **docs:** updates to a few documentation strings ([b83066a](https://github.com/anthropics/anthropic-sdk-ruby/commit/b83066acd84f805bdf475883d1b3e3029f421103))
99
+
3
100
  ## 1.59.0 (2026-07-24)
4
101
 
5
102
  Full Changelog: [v1.58.0...v1.59.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.58.0...v1.59.0)
@@ -235,7 +332,7 @@ Full Changelog: [v1.43.0...v1.44.0](https://github.com/anthropics/anthropic-sdk-
235
332
 
236
333
  ### Bug Fixes
237
334
 
238
- * **internal:** preserve path-qualified multipart filenames (SDK-40) ([#937](https://github.com/anthropics/anthropic-sdk-ruby/issues/937)) ([000e793](https://github.com/anthropics/anthropic-sdk-ruby/commit/000e793062309ee421111866f1bd56d0384277f3))
335
+ * **internal:** preserve path-qualified multipart filenames ([#937](https://github.com/anthropics/anthropic-sdk-ruby/issues/937)) ([000e793](https://github.com/anthropics/anthropic-sdk-ruby/commit/000e793062309ee421111866f1bd56d0384277f3))
239
336
 
240
337
 
241
338
  ### Documentation
data/README.md CHANGED
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.59.0"
18
+ gem "anthropic", "~> 1.65.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -48,7 +48,6 @@ module Anthropic
48
48
  "claude-4-opus-20250514": 8_192,
49
49
  "anthropic.claude-opus-4-20250514-v1:0": 8_192,
50
50
  "claude-opus-4@20250514": 8_192,
51
- "claude-opus-4-1-20250805": 8192,
52
51
  "anthropic.claude-opus-4-1-20250805-v1:0": 8192,
53
52
  "claude-opus-4-1@20250805": 8192
54
53
  }.freeze
@@ -77,6 +76,12 @@ module Anthropic
77
76
  # @return [Anthropic::Resources::Models]
78
77
  attr_reader :models
79
78
 
79
+ # @return [Anthropic::Resources::Files]
80
+ attr_reader :files
81
+
82
+ # @return [Anthropic::Resources::Skills]
83
+ attr_reader :skills
84
+
80
85
  # @return [Anthropic::Resources::Beta]
81
86
  attr_reader :beta
82
87
 
@@ -198,7 +203,7 @@ module Anthropic
198
203
 
199
204
  has_explicit_credential = api_key || auth_token || credentials || config
200
205
 
201
- unless has_explicit_credential
206
+ if !has_explicit_credential && resolve_default_credentials?
202
207
  api_key = ENV["ANTHROPIC_API_KEY"]
203
208
  auth_token = ENV["ANTHROPIC_AUTH_TOKEN"]
204
209
  end
@@ -209,7 +214,7 @@ module Anthropic
209
214
  @token_cache = nil
210
215
 
211
216
  base_url_is_explicit = base_url && !base_url.empty?
212
- base_url ||= ENV["ANTHROPIC_BASE_URL"]
217
+ base_url ||= ENV["ANTHROPIC_BASE_URL"] if resolve_default_credentials?
213
218
 
214
219
  credential_headers = {}
215
220
 
@@ -224,7 +229,7 @@ module Anthropic
224
229
  @credentials = credentials
225
230
  end
226
231
 
227
- if @credentials.nil? && @api_key.nil? && @auth_token.nil?
232
+ if @credentials.nil? && @api_key.nil? && @auth_token.nil? && resolve_default_credentials?
228
233
  default_base_url = base_url || "https://api.anthropic.com"
229
234
  result = Anthropic::Credentials.default_credentials(base_url: default_base_url)
230
235
  if result
@@ -235,13 +240,20 @@ module Anthropic
235
240
  end
236
241
 
237
242
  warn_explicit_shadow(api_key: api_key, auth_token: auth_token, credentials: credentials || config)
238
- warn_env_shadow(api_key: api_key, auth_token: auth_token)
243
+ warn_env_shadow(api_key: api_key, auth_token: auth_token) if resolve_default_credentials?
239
244
 
240
245
  if @credentials
241
246
  @token_cache = Anthropic::Credentials::TokenCache.new(@credentials)
242
247
  end
243
248
 
244
- base_url ||= "https://api.anthropic.com"
249
+ if resolve_default_credentials?
250
+ base_url ||= "https://api.anthropic.com"
251
+ elsif base_url.to_s.empty?
252
+ raise ArgumentError.new(
253
+ "No base_url was resolved for #{self.class.name}; " \
254
+ "platform clients must supply their own endpoint."
255
+ )
256
+ end
245
257
 
246
258
  if @credentials.respond_to?(:bind_base_url)
247
259
  @credentials.bind_base_url(base_url)
@@ -277,6 +289,8 @@ module Anthropic
277
289
  @completions = Anthropic::Resources::Completions.new(client: self)
278
290
  @messages = Anthropic::Resources::Messages.new(client: self)
279
291
  @models = Anthropic::Resources::Models.new(client: self)
292
+ @files = Anthropic::Resources::Files.new(client: self)
293
+ @skills = Anthropic::Resources::Skills.new(client: self)
280
294
  @beta = Anthropic::Resources::Beta.new(client: self)
281
295
  end
282
296
 
@@ -296,6 +310,23 @@ module Anthropic
296
310
 
297
311
  private
298
312
 
313
+ # @api private
314
+ #
315
+ # Whether to resolve credentials from the default chain (the static
316
+ # +ANTHROPIC_API_KEY+ / +ANTHROPIC_AUTH_TOKEN+ env vars and the shared
317
+ # config store / federation auto-discovery, precedence steps 2–5 above)
318
+ # when no explicit credential argument is passed. Called once from
319
+ # {#initialize}, so overrides must not depend on subclass instance state.
320
+ # Subclasses that bring their own auth scheme override this to +false+ so
321
+ # ambient first-party credentials are never resolved or folded into
322
+ # requests bound for another platform's endpoint. Returning +false+ also
323
+ # withholds the +ANTHROPIC_BASE_URL+ / +https://api.anthropic.com+
324
+ # base-URL fallback, so such a subclass must pass its own +base_url+ or
325
+ # {#initialize} raises +ArgumentError+.
326
+ #
327
+ # @return [Boolean]
328
+ def resolve_default_credentials? = true
329
+
299
330
  def warn_explicit_shadow(api_key:, auth_token:, credentials:)
300
331
  return if credentials.nil?
301
332
 
@@ -60,6 +60,12 @@ module Anthropic
60
60
  # @return [Object, nil]
61
61
  attr_accessor :body
62
62
 
63
+ # @return [String, nil]
64
+ def request_id = headers&.[]("request-id")
65
+
66
+ # @return [String, nil]
67
+ def workspace_id = headers&.[]("anthropic-workspace-id")
68
+
63
69
  # @api private
64
70
  #
65
71
  # @param url [URI::Generic]
@@ -53,7 +53,7 @@ module Anthropic
53
53
  #
54
54
  # @param max_retry_delay [Float]
55
55
  #
56
- def initialize( # rubocop:disable Lint/MissingSuper
56
+ def initialize(
57
57
  api_key: nil,
58
58
  aws_access_key: nil,
59
59
  aws_secret_access_key: nil,
@@ -84,27 +84,19 @@ module Anthropic
84
84
  derive_base_url: ->(region) { "https://aws-external-anthropic.#{region}.api.aws" }
85
85
  )
86
86
 
87
- @api_key = effective_api_key
88
- @auth_token = nil
89
- @credentials = nil
90
- @token_cache = nil
91
-
92
- # Skip Anthropic::Client#initialize and bind BaseClient#initialize directly:
93
- # the parent's initializer runs OIDC/credential-provider resolution that does
94
- # not apply here.
95
- Anthropic::Internal::Transport::BaseClient.instance_method(:initialize).bind(self).call(
87
+ # In API-key mode the gateway key rides the base client's `api_key`
88
+ # slot; {#resolve_default_credentials?} keeps first-party credential
89
+ # auto-discovery out of the picture when it is absent. The gateway
90
+ # serves the full first-party API, so every resource the parent wires
91
+ # up stays available.
92
+ super(
93
+ api_key: effective_api_key,
96
94
  base_url: resolved_base_url,
97
95
  timeout: timeout,
98
96
  max_retries: max_retries,
99
97
  initial_retry_delay: initial_retry_delay,
100
- max_retry_delay: max_retry_delay,
101
- headers: {"anthropic-version" => "2023-06-01"}
98
+ max_retry_delay: max_retry_delay
102
99
  )
103
-
104
- @completions = Anthropic::Resources::Completions.new(client: self)
105
- @messages = Anthropic::Resources::Messages.new(client: self)
106
- @models = Anthropic::Resources::Models.new(client: self)
107
- @beta = Anthropic::Resources::Beta.new(client: self)
108
100
  end
109
101
 
110
102
  # @api private
@@ -44,6 +44,7 @@ module Anthropic
44
44
  use_bearer_auth: false
45
45
  )
46
46
  @use_bearer_auth = use_bearer_auth
47
+ base_url = nil if base_url.to_s.empty?
47
48
  begin
48
49
  require("aws-sdk-core")
49
50
  rescue LoadError
@@ -119,12 +120,12 @@ module Anthropic
119
120
  end
120
121
  end
121
122
 
122
- if base_url.nil? && !aws_region.to_s.empty?
123
+ if !base_url && !aws_region.to_s.empty?
123
124
  @aws_region ||= aws_region
124
125
  base_url = derive_base_url.call(aws_region)
125
126
  end
126
127
 
127
- if base_url.nil?
128
+ unless base_url
128
129
  # rubocop:disable Layout/LineLength
129
130
  raise ArgumentError.new("No base_url was given and no aws_region is available to derive one. Set the `base_url` argument or provide an `aws_region`.")
130
131
  # rubocop:enable Layout/LineLength
@@ -147,6 +148,16 @@ module Anthropic
147
148
  super
148
149
  end
149
150
 
151
+ # @api private
152
+ #
153
+ # AWS-authenticated clients never resolve ambient first-party
154
+ # credentials, which would fold the shared config store's headers and
155
+ # bearer into requests bound for a third-party endpoint.
156
+ #
157
+ # @return [Boolean]
158
+ # @see Anthropic::Client#resolve_default_credentials?
159
+ private def resolve_default_credentials? = false
160
+
150
161
  # The AWS provider middleware entry: applies the workspace-id header and
151
162
  # SigV4 signing per attempt. Return from the including class's
152
163
  # `provider_middleware`. Pure — requests are reused across retry
@@ -60,7 +60,7 @@ module Anthropic
60
60
  # the Bedrock URL rewrite and SigV4 signing happen inside the continuation, per
61
61
  # attempt.
62
62
  #
63
- def initialize( # rubocop:disable Lint/MissingSuper
63
+ def initialize(
64
64
  aws_region: nil,
65
65
  base_url: nil,
66
66
  max_retries: self.class::DEFAULT_MAX_RETRIES,
@@ -121,36 +121,46 @@ module Anthropic
121
121
  @aws_region = aws_region
122
122
  end
123
123
 
124
- base_url ||= ENV.fetch(
125
- "ANTHROPIC_BEDROCK_BASE_URL",
126
- "https://bedrock-runtime.#{@aws_region}.amazonaws.com"
127
- )
124
+ base_url = ENV["ANTHROPIC_BEDROCK_BASE_URL"] if base_url.to_s.empty?
125
+ base_url = "https://bedrock-runtime.#{@aws_region}.amazonaws.com" if base_url.to_s.empty?
128
126
 
129
- @api_key = nil
130
- @auth_token = @signer ? nil : api_key
131
- @credentials = nil
132
- @token_cache = nil
133
127
  # For AWSAuth#auth_headers: suppress key headers in SigV4 mode; in
134
128
  # API-key mode fall through to the base bearer-token handling.
135
129
  @use_sig_v4 = !@signer.nil?
136
130
  @use_bearer_auth = false
137
131
 
138
- # Skip Anthropic::Client#initialize and bind BaseClient#initialize directly:
139
- # the parent's initializer runs OIDC/credential-provider resolution that does
140
- # not apply here.
141
- Anthropic::Internal::Transport::BaseClient.instance_method(:initialize).bind(self).call(
132
+ # The Bedrock bearer rides the base client's `auth_token` slot;
133
+ # {#resolve_default_credentials?} keeps first-party credential
134
+ # auto-discovery out of the picture when it is absent.
135
+ super(
136
+ auth_token: @signer ? nil : api_key,
142
137
  base_url: base_url,
143
138
  timeout: timeout,
144
139
  max_retries: max_retries,
145
140
  initial_retry_delay: initial_retry_delay,
146
141
  max_retry_delay: max_retry_delay,
147
- headers: {"anthropic-version" => "2023-06-01"},
148
142
  middleware: middleware
149
143
  )
144
+ end
145
+
146
+ # The Models API is not available on Bedrock, so the resource the
147
+ # parent wires up would target routes the Bedrock host does not serve
148
+ # — keep it unavailable, matching the SDK's other Bedrock clients.
149
+ #
150
+ # @raise [NotImplementedError]
151
+ def models
152
+ # rubocop:disable Layout/LineLength
153
+ message = "Please instead use https://docs.anthropic.com/en/api/claude-on-amazon-bedrock#list-available-models to list available models on Bedrock."
154
+ # rubocop:enable Layout/LineLength
155
+ raise NotImplementedError.new(message)
156
+ end
157
+
158
+ def files
159
+ raise NotImplementedError, "Files are not supported on Bedrock."
160
+ end
150
161
 
151
- @messages = Anthropic::Resources::Messages.new(client: self)
152
- @completions = Anthropic::Resources::Completions.new(client: self)
153
- @beta = Anthropic::Resources::Beta.new(client: self)
162
+ def skills
163
+ raise NotImplementedError, "Skills are not supported on Bedrock."
154
164
  end
155
165
 
156
166
  # @api private
@@ -113,6 +113,18 @@ module Anthropic
113
113
  "Models listing is not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
114
114
  end
115
115
 
116
+ # Files are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported.
117
+ def files
118
+ raise NotImplementedError,
119
+ "Files are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
120
+ end
121
+
122
+ # Skills are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported.
123
+ def skills
124
+ raise NotImplementedError,
125
+ "Skills are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
126
+ end
127
+
116
128
  # @api private
117
129
  #
118
130
  # @return [#call]
@@ -31,15 +31,6 @@ module Anthropic
31
31
  # @return [String, nil]
32
32
  attr_reader :workspace_id
33
33
 
34
- # @return [Anthropic::Resources::Messages]
35
- attr_reader :messages
36
-
37
- # @return [Anthropic::Resources::Models]
38
- attr_reader :models
39
-
40
- # @return [Anthropic::Resources::Beta]
41
- attr_reader :beta
42
-
43
34
  # Creates a new client for the Anthropic API on the Google Cloud gateway.
44
35
  #
45
36
  # Authentication uses Google credentials by precedence (unless
@@ -95,7 +86,7 @@ module Anthropic
95
86
  # is applied per attempt, after user middleware.
96
87
  #
97
88
  # @raise [ArgumentError]
98
- def initialize( # rubocop:disable Lint/MissingSuper
89
+ def initialize(
99
90
  project: ENV["ANTHROPIC_GOOGLE_CLOUD_PROJECT"] || ENV["GOOGLE_CLOUD_PROJECT"],
100
91
  location: ENV["ANTHROPIC_GOOGLE_CLOUD_LOCATION"] || "global",
101
92
  workspace_id: ENV["ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID"],
@@ -144,33 +135,31 @@ module Anthropic
144
135
  end
145
136
  @workspace_id = workspace_id
146
137
 
147
- base_url = derive_base_url if base_url.nil?
148
-
149
- # Never inherit first-party Anthropic credentials from the
150
- # environment: clear the ivars `Anthropic::Client#auth_headers` reads,
151
- # and bind `BaseClient#initialize` directly so the parent's
152
- # credential-provider / `ANTHROPIC_BASE_URL` resolution is skipped
153
- # entirely.
154
- @api_key = nil
155
- @auth_token = nil
156
- @credentials = nil
157
- @token_cache = nil
138
+ base_url = nil if base_url.to_s.empty?
139
+ base_url ||= derive_base_url
158
140
 
159
- Anthropic::Internal::Transport::BaseClient.instance_method(:initialize).bind(self).call(
141
+ # No first-party credential is ever passed up, and
142
+ # {#resolve_default_credentials?} keeps the parent from discovering
143
+ # one; `base_url` is always resolved by this point, so the parent's
144
+ # `ANTHROPIC_BASE_URL` fallback never applies. The parent wires up
145
+ # every resource; {#completions} withholds the one the gateway does
146
+ # not serve.
147
+ super(
160
148
  base_url: base_url,
161
149
  timeout: timeout,
162
150
  max_retries: max_retries,
163
151
  initial_retry_delay: initial_retry_delay,
164
152
  max_retry_delay: max_retry_delay,
165
- headers: {"anthropic-version" => "2023-06-01"},
166
153
  middleware: middleware
167
154
  )
168
-
169
- @messages = Anthropic::Resources::Messages.new(client: self)
170
- @models = Anthropic::Resources::Models.new(client: self)
171
- @beta = Anthropic::Resources::Beta.new(client: self)
172
155
  end
173
156
 
157
+ # @api private
158
+ #
159
+ # @return [Boolean]
160
+ # @see Anthropic::Client#resolve_default_credentials?
161
+ private def resolve_default_credentials? = false
162
+
174
163
  # The deprecated text Completions endpoint is not supported on the
175
164
  # Google Cloud gateway.
176
165
  #
@@ -9,7 +9,7 @@ module Anthropic
9
9
  # Extract tool models from the request and convert them to JSON Schema
10
10
  # Returns a hash mapping tool name to Ruby model.
11
11
  #
12
- # @param data [Hash{Sybmol=>Object}]
12
+ # @param data [Hash{Symbol=>Object}]
13
13
  #
14
14
  # @param strict [Boolean, nil]
15
15
  #
@@ -38,26 +38,27 @@ module Anthropic
38
38
  # rubocop:disable Metrics/BlockLength
39
39
  mapped = tool_array.map do |tool|
40
40
  case tool
41
- # BaseTool whose class declares an explicit `tool_name` (e.g. MCP-built tools):
42
- in Anthropic::Helpers::Tools::BaseTool if tool.class.tool_name
41
+ # Runnable tool instance (an `Anthropic::BaseTool` subclass, hand-written or helper-built):
42
+ in Anthropic::Helpers::Tools::BaseTool
43
43
  name = tool_api_name(tool)
44
+ # Helper-built tools (e.g. MCP) declare an explicit `tool_name` and only send the
45
+ # description they were given; hand-written tools fall back to their name.
44
46
  description = tool.class.doc_string
47
+ description ||= name unless tool.class.tool_name
45
48
  tools.store(name, tool)
46
49
  input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
47
- extras = tool.class.tool_extra_props || {}
48
- result = {name:, input_schema:, **extras}
49
- result[:description] = description if description
50
- result[:strict] = strict if strict
51
- result
52
- # Direct tool class:
50
+ # On a clash the derived keys win, so nothing in `tool_options` can shadow them.
51
+ definition =
52
+ {name:, description:, input_schema:}
53
+ .merge(tool.class.tool_options) { |_key, derived, _option| derived }
54
+ .compact
55
+ definition.tap { _1.update(strict:) if strict }
56
+ # Input schema class used directly as a tool:
53
57
  in Anthropic::Helpers::InputSchema::JsonSchemaConverter
54
- name =
55
- tool.is_a?(Anthropic::Helpers::Tools::BaseTool) ? tool_api_name(tool) : model_name(tool.name)
58
+ name = model_name(tool.name)
56
59
 
57
60
  description =
58
61
  case tool
59
- in Anthropic::Helpers::Tools::BaseTool
60
- tool.class.doc_string || name
61
62
  in Class if tool <= Anthropic::Helpers::InputSchema::BaseModel
62
63
  tool.doc_string || name
63
64
  else
@@ -82,6 +83,11 @@ module Anthropic
82
83
  end
83
84
  # rubocop:enable Metrics/BlockLength
84
85
  tool_array.replace(mapped)
86
+ else
87
+ end
88
+
89
+ # Matched separately from `tools:` so a request can carry both tools and a structured output format.
90
+ case data
85
91
  # GA: output_config with BaseModel class as format
86
92
  in {output_config: {format: Anthropic::Helpers::InputSchema::JsonSchemaConverter => model} => output_config}
87
93
  name = model_name(model.name)
@@ -128,13 +134,13 @@ module Anthropic
128
134
 
129
135
  # @api private
130
136
  #
131
- # @param raw [Hash{Sybmol=>Object}]
137
+ # @param raw [Hash{Symbol=>Object}]
132
138
  #
133
139
  # @param tools [Hash{String=>Class}]
134
140
  #
135
141
  # @param models [Hash{String=>Class}]
136
142
  #
137
- # @return [Hash{Sybmol=>Object}]
143
+ # @return [Hash{Symbol=>Object}]
138
144
  def parse_input_schemas!(raw, tools:, models:)
139
145
  raw[:content]&.each do |content|
140
146
  case content