anthropic 1.76.0 → 1.77.1

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 (802) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/README.md +1 -1
  4. data/lib/anthropic/internal/util.rb +10 -1
  5. data/lib/anthropic/models/beta/agent_create_params.rb +4 -5
  6. data/lib/anthropic/models/beta/agent_update_params.rb +1 -1
  7. data/lib/anthropic/models/beta/beta_browser_click_target.rb +67 -0
  8. data/lib/anthropic/models/beta/beta_browser_close_tab_input.rb +22 -0
  9. data/lib/anthropic/models/beta/beta_browser_close_tab_tool_use_block.rb +60 -0
  10. data/lib/anthropic/models/beta/beta_browser_coordinate_target.rb +38 -0
  11. data/lib/anthropic/models/beta/beta_browser_double_click_input.rb +42 -0
  12. data/lib/anthropic/models/beta/beta_browser_double_click_tool_use_block.rb +60 -0
  13. data/lib/anthropic/models/beta/beta_browser_file_upload_input.rb +53 -0
  14. data/lib/anthropic/models/beta/beta_browser_file_upload_tool_use_block.rb +61 -0
  15. data/lib/anthropic/models/beta/beta_browser_find_input.rb +31 -0
  16. data/lib/anthropic/models/beta/beta_browser_find_tool_use_block.rb +61 -0
  17. data/lib/anthropic/models/beta/beta_browser_form_input_input.rb +44 -0
  18. data/lib/anthropic/models/beta/beta_browser_form_input_tool_use_block.rb +61 -0
  19. data/lib/anthropic/models/beta/beta_browser_form_input_value.rb +22 -0
  20. data/lib/anthropic/models/beta/beta_browser_get_page_text_input.rb +23 -0
  21. data/lib/anthropic/models/beta/beta_browser_get_page_text_tool_use_block.rb +61 -0
  22. data/lib/anthropic/models/beta/beta_browser_hold_key_input.rb +39 -0
  23. data/lib/anthropic/models/beta/beta_browser_hold_key_tool_use_block.rb +61 -0
  24. data/lib/anthropic/models/beta/beta_browser_hover_input.rb +30 -0
  25. data/lib/anthropic/models/beta/beta_browser_hover_tool_use_block.rb +60 -0
  26. data/lib/anthropic/models/beta/beta_browser_javascript_exec_input.rb +32 -0
  27. data/lib/anthropic/models/beta/beta_browser_javascript_exec_tool_use_block.rb +63 -0
  28. data/lib/anthropic/models/beta/beta_browser_key_input.rb +41 -0
  29. data/lib/anthropic/models/beta/beta_browser_key_tool_use_block.rb +63 -0
  30. data/lib/anthropic/models/beta/beta_browser_left_click_drag_input.rb +43 -0
  31. data/lib/anthropic/models/beta/beta_browser_left_click_drag_tool_use_block.rb +61 -0
  32. data/lib/anthropic/models/beta/beta_browser_left_click_input.rb +42 -0
  33. data/lib/anthropic/models/beta/beta_browser_left_click_tool_use_block.rb +60 -0
  34. data/lib/anthropic/models/beta/beta_browser_left_mouse_down_input.rb +35 -0
  35. data/lib/anthropic/models/beta/beta_browser_left_mouse_down_tool_use_block.rb +62 -0
  36. data/lib/anthropic/models/beta/beta_browser_left_mouse_up_input.rb +34 -0
  37. data/lib/anthropic/models/beta/beta_browser_left_mouse_up_tool_use_block.rb +60 -0
  38. data/lib/anthropic/models/beta/beta_browser_list_tabs_input.rb +14 -0
  39. data/lib/anthropic/models/beta/beta_browser_list_tabs_tool_use_block.rb +60 -0
  40. data/lib/anthropic/models/beta/beta_browser_middle_click_input.rb +42 -0
  41. data/lib/anthropic/models/beta/beta_browser_middle_click_tool_use_block.rb +60 -0
  42. data/lib/anthropic/models/beta/beta_browser_mouse_move_input.rb +34 -0
  43. data/lib/anthropic/models/beta/beta_browser_mouse_move_tool_use_block.rb +60 -0
  44. data/lib/anthropic/models/beta/beta_browser_navigate_input.rb +34 -0
  45. data/lib/anthropic/models/beta/beta_browser_navigate_tool_use_block.rb +61 -0
  46. data/lib/anthropic/models/beta/beta_browser_new_tab_input.rb +14 -0
  47. data/lib/anthropic/models/beta/beta_browser_new_tab_tool_use_block.rb +60 -0
  48. data/lib/anthropic/models/beta/beta_browser_read_console_input.rb +24 -0
  49. data/lib/anthropic/models/beta/beta_browser_read_console_tool_use_block.rb +62 -0
  50. data/lib/anthropic/models/beta/beta_browser_read_network_input.rb +24 -0
  51. data/lib/anthropic/models/beta/beta_browser_read_network_tool_use_block.rb +62 -0
  52. data/lib/anthropic/models/beta/beta_browser_read_page_filter.rb +19 -0
  53. data/lib/anthropic/models/beta/beta_browser_read_page_input.rb +53 -0
  54. data/lib/anthropic/models/beta/beta_browser_read_page_tool_use_block.rb +63 -0
  55. data/lib/anthropic/models/beta/beta_browser_ref_target.rb +35 -0
  56. data/lib/anthropic/models/beta/beta_browser_right_click_input.rb +42 -0
  57. data/lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb +60 -0
  58. data/lib/anthropic/models/beta/beta_browser_screenshot_input.rb +22 -0
  59. data/lib/anthropic/models/beta/beta_browser_screenshot_tool_use_block.rb +60 -0
  60. data/lib/anthropic/models/beta/beta_browser_scroll_direction.rb +21 -0
  61. data/lib/anthropic/models/beta/beta_browser_scroll_input.rb +49 -0
  62. data/lib/anthropic/models/beta/beta_browser_scroll_to_input.rb +35 -0
  63. data/lib/anthropic/models/beta/beta_browser_scroll_to_tool_use_block.rb +60 -0
  64. data/lib/anthropic/models/beta/beta_browser_scroll_tool_use_block.rb +60 -0
  65. data/lib/anthropic/models/beta/beta_browser_switch_tab_input.rb +23 -0
  66. data/lib/anthropic/models/beta/beta_browser_switch_tab_tool_use_block.rb +61 -0
  67. data/lib/anthropic/models/beta/beta_browser_tool_use_block.rb +210 -0
  68. data/lib/anthropic/models/beta/beta_browser_triple_click_input.rb +43 -0
  69. data/lib/anthropic/models/beta/beta_browser_triple_click_tool_use_block.rb +61 -0
  70. data/lib/anthropic/models/beta/beta_browser_type_input.rb +30 -0
  71. data/lib/anthropic/models/beta/beta_browser_type_tool_use_block.rb +60 -0
  72. data/lib/anthropic/models/beta/beta_browser_wait_input.rb +30 -0
  73. data/lib/anthropic/models/beta/beta_browser_wait_tool_use_block.rb +60 -0
  74. data/lib/anthropic/models/beta/beta_browser_zoom_input.rb +32 -0
  75. data/lib/anthropic/models/beta/beta_browser_zoom_tool_use_block.rb +62 -0
  76. data/lib/anthropic/models/beta/beta_computer_cursor_position_input.rb +14 -0
  77. data/lib/anthropic/models/beta/beta_computer_cursor_position_tool_use_block.rb +61 -0
  78. data/lib/anthropic/models/beta/beta_computer_double_click_input.rb +35 -0
  79. data/lib/anthropic/models/beta/beta_computer_double_click_tool_use_block.rb +61 -0
  80. data/lib/anthropic/models/beta/beta_computer_hold_key_input.rb +31 -0
  81. data/lib/anthropic/models/beta/beta_computer_hold_key_tool_use_block.rb +61 -0
  82. data/lib/anthropic/models/beta/beta_computer_key_input.rb +34 -0
  83. data/lib/anthropic/models/beta/beta_computer_key_tool_use_block.rb +64 -0
  84. data/lib/anthropic/models/beta/beta_computer_left_click_drag_input.rb +42 -0
  85. data/lib/anthropic/models/beta/beta_computer_left_click_drag_tool_use_block.rb +61 -0
  86. data/lib/anthropic/models/beta/beta_computer_left_click_input.rb +35 -0
  87. data/lib/anthropic/models/beta/beta_computer_left_click_tool_use_block.rb +61 -0
  88. data/lib/anthropic/models/beta/beta_computer_left_mouse_down_input.rb +14 -0
  89. data/lib/anthropic/models/beta/beta_computer_left_mouse_down_tool_use_block.rb +61 -0
  90. data/lib/anthropic/models/beta/beta_computer_left_mouse_up_input.rb +14 -0
  91. data/lib/anthropic/models/beta/beta_computer_left_mouse_up_tool_use_block.rb +60 -0
  92. data/lib/anthropic/models/beta/beta_computer_middle_click_input.rb +35 -0
  93. data/lib/anthropic/models/beta/beta_computer_middle_click_tool_use_block.rb +61 -0
  94. data/lib/anthropic/models/beta/beta_computer_mouse_move_input.rb +23 -0
  95. data/lib/anthropic/models/beta/beta_computer_mouse_move_tool_use_block.rb +61 -0
  96. data/lib/anthropic/models/beta/beta_computer_right_click_input.rb +35 -0
  97. data/lib/anthropic/models/beta/beta_computer_right_click_tool_use_block.rb +61 -0
  98. data/lib/anthropic/models/beta/beta_computer_screenshot_input.rb +14 -0
  99. data/lib/anthropic/models/beta/beta_computer_screenshot_tool_use_block.rb +60 -0
  100. data/lib/anthropic/models/beta/beta_computer_scroll_direction.rb +21 -0
  101. data/lib/anthropic/models/beta/beta_computer_scroll_input.rb +51 -0
  102. data/lib/anthropic/models/beta/beta_computer_scroll_tool_use_block.rb +62 -0
  103. data/lib/anthropic/models/beta/beta_computer_tool_use_block.rb +140 -0
  104. data/lib/anthropic/models/beta/beta_computer_triple_click_input.rb +35 -0
  105. data/lib/anthropic/models/beta/beta_computer_triple_click_tool_use_block.rb +61 -0
  106. data/lib/anthropic/models/beta/beta_computer_type_input.rb +22 -0
  107. data/lib/anthropic/models/beta/beta_computer_type_tool_use_block.rb +60 -0
  108. data/lib/anthropic/models/beta/beta_computer_wait_input.rb +22 -0
  109. data/lib/anthropic/models/beta/beta_computer_wait_tool_use_block.rb +60 -0
  110. data/lib/anthropic/models/beta/beta_computer_zoom_input.rb +24 -0
  111. data/lib/anthropic/models/beta/beta_computer_zoom_tool_use_block.rb +62 -0
  112. data/lib/anthropic/models/beta/beta_managed_agents_advisor_params.rb +1 -1
  113. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +5 -0
  114. data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +2 -0
  115. data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
  116. data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -2
  117. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +13 -1
  118. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +9 -1
  119. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_all.rb +21 -0
  120. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_except.rb +37 -0
  121. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_none.rb +21 -0
  122. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_only.rb +36 -0
  123. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_shorthand.rb +21 -0
  124. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter.rb +73 -0
  125. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter_params.rb +26 -0
  126. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_reference.rb +35 -0
  127. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input.rb +55 -0
  128. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input_params.rb +26 -0
  129. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources.rb +51 -0
  130. data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources_params.rb +57 -0
  131. data/lib/anthropic/models/beta/beta_model_capabilities.rb +17 -3
  132. data/lib/anthropic/models/beta/beta_model_info.rb +71 -1
  133. data/lib/anthropic/models/beta/beta_model_line.rb +24 -0
  134. data/lib/anthropic/models/beta/beta_server_tools_capability.rb +43 -0
  135. data/lib/anthropic/models/beta/beta_thinking_types.rb +22 -6
  136. data/lib/anthropic/models/beta/beta_tool_use_caller.rb +63 -0
  137. data/lib/anthropic/models/beta/beta_toolset_tool_use_block.rb +22 -0
  138. data/lib/anthropic/models/beta/model_list_params.rb +24 -1
  139. data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +16 -3
  140. data/lib/anthropic/models/beta/organization/federation/beta_federation_rule.rb +4 -3
  141. data/lib/anthropic/models/beta/organization/spend_limit_set_params.rb +9 -1
  142. data/lib/anthropic/models/beta/organization/workspace_list_params.rb +9 -1
  143. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +1 -1
  144. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +1 -1
  145. data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +2 -2
  146. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +1 -1
  147. data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +1 -1
  148. data/lib/anthropic/models/browser_click_target.rb +63 -0
  149. data/lib/anthropic/models/browser_close_tab_input.rb +18 -0
  150. data/lib/anthropic/models/browser_close_tab_tool_use_block.rb +56 -0
  151. data/lib/anthropic/models/browser_coordinate_target.rb +34 -0
  152. data/lib/anthropic/models/browser_double_click_input.rb +38 -0
  153. data/lib/anthropic/models/browser_double_click_tool_use_block.rb +56 -0
  154. data/lib/anthropic/models/browser_file_upload_input.rb +49 -0
  155. data/lib/anthropic/models/browser_file_upload_tool_use_block.rb +57 -0
  156. data/lib/anthropic/models/browser_find_input.rb +27 -0
  157. data/lib/anthropic/models/browser_find_tool_use_block.rb +57 -0
  158. data/lib/anthropic/models/browser_form_input_input.rb +40 -0
  159. data/lib/anthropic/models/browser_form_input_tool_use_block.rb +57 -0
  160. data/lib/anthropic/models/browser_form_input_value.rb +18 -0
  161. data/lib/anthropic/models/browser_get_page_text_input.rb +19 -0
  162. data/lib/anthropic/models/browser_get_page_text_tool_use_block.rb +57 -0
  163. data/lib/anthropic/models/browser_hold_key_input.rb +35 -0
  164. data/lib/anthropic/models/browser_hold_key_tool_use_block.rb +57 -0
  165. data/lib/anthropic/models/browser_hover_input.rb +26 -0
  166. data/lib/anthropic/models/browser_hover_tool_use_block.rb +56 -0
  167. data/lib/anthropic/models/browser_javascript_exec_input.rb +28 -0
  168. data/lib/anthropic/models/browser_javascript_exec_tool_use_block.rb +58 -0
  169. data/lib/anthropic/models/browser_key_input.rb +37 -0
  170. data/lib/anthropic/models/browser_key_tool_use_block.rb +59 -0
  171. data/lib/anthropic/models/browser_left_click_drag_input.rb +39 -0
  172. data/lib/anthropic/models/browser_left_click_drag_tool_use_block.rb +56 -0
  173. data/lib/anthropic/models/browser_left_click_input.rb +38 -0
  174. data/lib/anthropic/models/browser_left_click_tool_use_block.rb +56 -0
  175. data/lib/anthropic/models/browser_left_mouse_down_input.rb +31 -0
  176. data/lib/anthropic/models/browser_left_mouse_down_tool_use_block.rb +57 -0
  177. data/lib/anthropic/models/browser_left_mouse_up_input.rb +30 -0
  178. data/lib/anthropic/models/browser_left_mouse_up_tool_use_block.rb +56 -0
  179. data/lib/anthropic/models/browser_list_tabs_input.rb +10 -0
  180. data/lib/anthropic/models/browser_list_tabs_tool_use_block.rb +56 -0
  181. data/lib/anthropic/models/browser_middle_click_input.rb +38 -0
  182. data/lib/anthropic/models/browser_middle_click_tool_use_block.rb +56 -0
  183. data/lib/anthropic/models/browser_mouse_move_input.rb +30 -0
  184. data/lib/anthropic/models/browser_mouse_move_tool_use_block.rb +56 -0
  185. data/lib/anthropic/models/browser_navigate_input.rb +30 -0
  186. data/lib/anthropic/models/browser_navigate_tool_use_block.rb +57 -0
  187. data/lib/anthropic/models/browser_new_tab_input.rb +10 -0
  188. data/lib/anthropic/models/browser_new_tab_tool_use_block.rb +56 -0
  189. data/lib/anthropic/models/browser_read_console_input.rb +20 -0
  190. data/lib/anthropic/models/browser_read_console_tool_use_block.rb +58 -0
  191. data/lib/anthropic/models/browser_read_network_input.rb +20 -0
  192. data/lib/anthropic/models/browser_read_network_tool_use_block.rb +58 -0
  193. data/lib/anthropic/models/browser_read_page_filter.rb +15 -0
  194. data/lib/anthropic/models/browser_read_page_input.rb +49 -0
  195. data/lib/anthropic/models/browser_read_page_tool_use_block.rb +59 -0
  196. data/lib/anthropic/models/browser_ref_target.rb +31 -0
  197. data/lib/anthropic/models/browser_right_click_input.rb +38 -0
  198. data/lib/anthropic/models/browser_right_click_tool_use_block.rb +56 -0
  199. data/lib/anthropic/models/browser_screenshot_input.rb +18 -0
  200. data/lib/anthropic/models/browser_screenshot_tool_use_block.rb +56 -0
  201. data/lib/anthropic/models/browser_scroll_direction.rb +17 -0
  202. data/lib/anthropic/models/browser_scroll_input.rb +45 -0
  203. data/lib/anthropic/models/browser_scroll_to_input.rb +31 -0
  204. data/lib/anthropic/models/browser_scroll_to_tool_use_block.rb +56 -0
  205. data/lib/anthropic/models/browser_scroll_tool_use_block.rb +56 -0
  206. data/lib/anthropic/models/browser_switch_tab_input.rb +19 -0
  207. data/lib/anthropic/models/browser_switch_tab_tool_use_block.rb +57 -0
  208. data/lib/anthropic/models/browser_tool_use_block.rb +206 -0
  209. data/lib/anthropic/models/browser_triple_click_input.rb +39 -0
  210. data/lib/anthropic/models/browser_triple_click_tool_use_block.rb +57 -0
  211. data/lib/anthropic/models/browser_type_input.rb +26 -0
  212. data/lib/anthropic/models/browser_type_tool_use_block.rb +56 -0
  213. data/lib/anthropic/models/browser_wait_input.rb +26 -0
  214. data/lib/anthropic/models/browser_wait_tool_use_block.rb +56 -0
  215. data/lib/anthropic/models/browser_zoom_input.rb +28 -0
  216. data/lib/anthropic/models/browser_zoom_tool_use_block.rb +58 -0
  217. data/lib/anthropic/models/computer_cursor_position_input.rb +10 -0
  218. data/lib/anthropic/models/computer_cursor_position_tool_use_block.rb +56 -0
  219. data/lib/anthropic/models/computer_double_click_input.rb +31 -0
  220. data/lib/anthropic/models/computer_double_click_tool_use_block.rb +57 -0
  221. data/lib/anthropic/models/computer_hold_key_input.rb +27 -0
  222. data/lib/anthropic/models/computer_hold_key_tool_use_block.rb +57 -0
  223. data/lib/anthropic/models/computer_key_input.rb +30 -0
  224. data/lib/anthropic/models/computer_key_tool_use_block.rb +60 -0
  225. data/lib/anthropic/models/computer_left_click_drag_input.rb +38 -0
  226. data/lib/anthropic/models/computer_left_click_drag_tool_use_block.rb +56 -0
  227. data/lib/anthropic/models/computer_left_click_input.rb +31 -0
  228. data/lib/anthropic/models/computer_left_click_tool_use_block.rb +57 -0
  229. data/lib/anthropic/models/computer_left_mouse_down_input.rb +10 -0
  230. data/lib/anthropic/models/computer_left_mouse_down_tool_use_block.rb +56 -0
  231. data/lib/anthropic/models/computer_left_mouse_up_input.rb +10 -0
  232. data/lib/anthropic/models/computer_left_mouse_up_tool_use_block.rb +56 -0
  233. data/lib/anthropic/models/computer_middle_click_input.rb +31 -0
  234. data/lib/anthropic/models/computer_middle_click_tool_use_block.rb +57 -0
  235. data/lib/anthropic/models/computer_mouse_move_input.rb +19 -0
  236. data/lib/anthropic/models/computer_mouse_move_tool_use_block.rb +57 -0
  237. data/lib/anthropic/models/computer_right_click_input.rb +31 -0
  238. data/lib/anthropic/models/computer_right_click_tool_use_block.rb +57 -0
  239. data/lib/anthropic/models/computer_screenshot_input.rb +10 -0
  240. data/lib/anthropic/models/computer_screenshot_tool_use_block.rb +56 -0
  241. data/lib/anthropic/models/computer_scroll_direction.rb +17 -0
  242. data/lib/anthropic/models/computer_scroll_input.rb +47 -0
  243. data/lib/anthropic/models/computer_scroll_tool_use_block.rb +58 -0
  244. data/lib/anthropic/models/computer_tool_use_block.rb +136 -0
  245. data/lib/anthropic/models/computer_triple_click_input.rb +31 -0
  246. data/lib/anthropic/models/computer_triple_click_tool_use_block.rb +57 -0
  247. data/lib/anthropic/models/computer_type_input.rb +18 -0
  248. data/lib/anthropic/models/computer_type_tool_use_block.rb +56 -0
  249. data/lib/anthropic/models/computer_wait_input.rb +18 -0
  250. data/lib/anthropic/models/computer_wait_tool_use_block.rb +56 -0
  251. data/lib/anthropic/models/computer_zoom_input.rb +20 -0
  252. data/lib/anthropic/models/computer_zoom_tool_use_block.rb +58 -0
  253. data/lib/anthropic/models/model.rb +5 -0
  254. data/lib/anthropic/models/model_capabilities.rb +20 -3
  255. data/lib/anthropic/models/model_info.rb +71 -1
  256. data/lib/anthropic/models/model_line.rb +20 -0
  257. data/lib/anthropic/models/model_list_params.rb +24 -1
  258. data/lib/anthropic/models/organization/federation/federation_rule.rb +4 -3
  259. data/lib/anthropic/models/organization/workspace_list_params.rb +9 -1
  260. data/lib/anthropic/models/server_tools_capability.rb +39 -0
  261. data/lib/anthropic/models/thinking_types.rb +22 -6
  262. data/lib/anthropic/models/tool_use_caller.rb +59 -0
  263. data/lib/anthropic/models/toolset_tool_use_block.rb +18 -0
  264. data/lib/anthropic/models.rb +218 -0
  265. data/lib/anthropic/resources/beta/agents.rb +2 -2
  266. data/lib/anthropic/resources/beta/messages.rb +4 -0
  267. data/lib/anthropic/resources/beta/models.rb +4 -2
  268. data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +6 -7
  269. data/lib/anthropic/resources/beta/organization/rate_limits.rb +2 -2
  270. data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +2 -1
  271. data/lib/anthropic/resources/beta/organization/spend_limits.rb +13 -7
  272. data/lib/anthropic/resources/beta/organization/workspaces.rb +3 -1
  273. data/lib/anthropic/resources/completions.rb +6 -0
  274. data/lib/anthropic/resources/models.rb +4 -2
  275. data/lib/anthropic/resources/organization/rate_limits.rb +2 -2
  276. data/lib/anthropic/resources/organization/workspaces.rb +3 -1
  277. data/lib/anthropic/version.rb +1 -1
  278. data/lib/anthropic.rb +230 -0
  279. data/rbi/anthropic/models/beta/agent_create_params.rbi +4 -6
  280. data/rbi/anthropic/models/beta/agent_update_params.rbi +2 -2
  281. data/rbi/anthropic/models/beta/beta_browser_click_target.rbi +83 -0
  282. data/rbi/anthropic/models/beta/beta_browser_close_tab_input.rbi +35 -0
  283. data/rbi/anthropic/models/beta/beta_browser_close_tab_tool_use_block.rbi +100 -0
  284. data/rbi/anthropic/models/beta/beta_browser_coordinate_target.rbi +50 -0
  285. data/rbi/anthropic/models/beta/beta_browser_double_click_input.rbi +67 -0
  286. data/rbi/anthropic/models/beta/beta_browser_double_click_tool_use_block.rbi +103 -0
  287. data/rbi/anthropic/models/beta/beta_browser_file_upload_input.rbi +81 -0
  288. data/rbi/anthropic/models/beta/beta_browser_file_upload_tool_use_block.rbi +104 -0
  289. data/rbi/anthropic/models/beta/beta_browser_find_input.rbi +46 -0
  290. data/rbi/anthropic/models/beta/beta_browser_find_tool_use_block.rbi +102 -0
  291. data/rbi/anthropic/models/beta/beta_browser_form_input_input.rbi +71 -0
  292. data/rbi/anthropic/models/beta/beta_browser_form_input_tool_use_block.rbi +102 -0
  293. data/rbi/anthropic/models/beta/beta_browser_form_input_value.rbi +23 -0
  294. data/rbi/anthropic/models/beta/beta_browser_get_page_text_input.rbi +36 -0
  295. data/rbi/anthropic/models/beta/beta_browser_get_page_text_tool_use_block.rbi +105 -0
  296. data/rbi/anthropic/models/beta/beta_browser_hold_key_input.rbi +58 -0
  297. data/rbi/anthropic/models/beta/beta_browser_hold_key_tool_use_block.rbi +102 -0
  298. data/rbi/anthropic/models/beta/beta_browser_hover_input.rbi +57 -0
  299. data/rbi/anthropic/models/beta/beta_browser_hover_tool_use_block.rbi +100 -0
  300. data/rbi/anthropic/models/beta/beta_browser_javascript_exec_input.rbi +47 -0
  301. data/rbi/anthropic/models/beta/beta_browser_javascript_exec_tool_use_block.rbi +107 -0
  302. data/rbi/anthropic/models/beta/beta_browser_key_input.rbi +64 -0
  303. data/rbi/anthropic/models/beta/beta_browser_key_tool_use_block.rbi +104 -0
  304. data/rbi/anthropic/models/beta/beta_browser_left_click_drag_input.rbi +79 -0
  305. data/rbi/anthropic/models/beta/beta_browser_left_click_drag_tool_use_block.rbi +103 -0
  306. data/rbi/anthropic/models/beta/beta_browser_left_click_input.rbi +67 -0
  307. data/rbi/anthropic/models/beta/beta_browser_left_click_tool_use_block.rbi +100 -0
  308. data/rbi/anthropic/models/beta/beta_browser_left_mouse_down_input.rbi +63 -0
  309. data/rbi/anthropic/models/beta/beta_browser_left_mouse_down_tool_use_block.rbi +105 -0
  310. data/rbi/anthropic/models/beta/beta_browser_left_mouse_up_input.rbi +62 -0
  311. data/rbi/anthropic/models/beta/beta_browser_left_mouse_up_tool_use_block.rbi +103 -0
  312. data/rbi/anthropic/models/beta/beta_browser_list_tabs_input.rbi +28 -0
  313. data/rbi/anthropic/models/beta/beta_browser_list_tabs_tool_use_block.rbi +100 -0
  314. data/rbi/anthropic/models/beta/beta_browser_middle_click_input.rbi +67 -0
  315. data/rbi/anthropic/models/beta/beta_browser_middle_click_tool_use_block.rbi +103 -0
  316. data/rbi/anthropic/models/beta/beta_browser_mouse_move_input.rbi +62 -0
  317. data/rbi/anthropic/models/beta/beta_browser_mouse_move_tool_use_block.rbi +100 -0
  318. data/rbi/anthropic/models/beta/beta_browser_navigate_input.rbi +46 -0
  319. data/rbi/anthropic/models/beta/beta_browser_navigate_tool_use_block.rbi +102 -0
  320. data/rbi/anthropic/models/beta/beta_browser_new_tab_input.rbi +28 -0
  321. data/rbi/anthropic/models/beta/beta_browser_new_tab_tool_use_block.rbi +100 -0
  322. data/rbi/anthropic/models/beta/beta_browser_read_console_input.rbi +37 -0
  323. data/rbi/anthropic/models/beta/beta_browser_read_console_tool_use_block.rbi +107 -0
  324. data/rbi/anthropic/models/beta/beta_browser_read_network_input.rbi +37 -0
  325. data/rbi/anthropic/models/beta/beta_browser_read_network_tool_use_block.rbi +107 -0
  326. data/rbi/anthropic/models/beta/beta_browser_read_page_filter.rbi +35 -0
  327. data/rbi/anthropic/models/beta/beta_browser_read_page_input.rbi +82 -0
  328. data/rbi/anthropic/models/beta/beta_browser_read_page_tool_use_block.rbi +106 -0
  329. data/rbi/anthropic/models/beta/beta_browser_ref_target.rbi +43 -0
  330. data/rbi/anthropic/models/beta/beta_browser_right_click_input.rbi +67 -0
  331. data/rbi/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbi +102 -0
  332. data/rbi/anthropic/models/beta/beta_browser_screenshot_input.rbi +35 -0
  333. data/rbi/anthropic/models/beta/beta_browser_screenshot_tool_use_block.rbi +102 -0
  334. data/rbi/anthropic/models/beta/beta_browser_scroll_direction.rbi +45 -0
  335. data/rbi/anthropic/models/beta/beta_browser_scroll_input.rbi +80 -0
  336. data/rbi/anthropic/models/beta/beta_browser_scroll_to_input.rbi +62 -0
  337. data/rbi/anthropic/models/beta/beta_browser_scroll_to_tool_use_block.rbi +100 -0
  338. data/rbi/anthropic/models/beta/beta_browser_scroll_tool_use_block.rbi +100 -0
  339. data/rbi/anthropic/models/beta/beta_browser_switch_tab_input.rbi +36 -0
  340. data/rbi/anthropic/models/beta/beta_browser_switch_tab_tool_use_block.rbi +102 -0
  341. data/rbi/anthropic/models/beta/beta_browser_tool_use_block.rbi +298 -0
  342. data/rbi/anthropic/models/beta/beta_browser_triple_click_input.rbi +68 -0
  343. data/rbi/anthropic/models/beta/beta_browser_triple_click_tool_use_block.rbi +105 -0
  344. data/rbi/anthropic/models/beta/beta_browser_type_input.rbi +45 -0
  345. data/rbi/anthropic/models/beta/beta_browser_type_tool_use_block.rbi +100 -0
  346. data/rbi/anthropic/models/beta/beta_browser_wait_input.rbi +45 -0
  347. data/rbi/anthropic/models/beta/beta_browser_wait_tool_use_block.rbi +100 -0
  348. data/rbi/anthropic/models/beta/beta_browser_zoom_input.rbi +51 -0
  349. data/rbi/anthropic/models/beta/beta_browser_zoom_tool_use_block.rbi +104 -0
  350. data/rbi/anthropic/models/beta/beta_computer_cursor_position_input.rbi +28 -0
  351. data/rbi/anthropic/models/beta/beta_computer_cursor_position_tool_use_block.rbi +103 -0
  352. data/rbi/anthropic/models/beta/beta_computer_double_click_input.rbi +56 -0
  353. data/rbi/anthropic/models/beta/beta_computer_double_click_tool_use_block.rbi +105 -0
  354. data/rbi/anthropic/models/beta/beta_computer_hold_key_input.rbi +44 -0
  355. data/rbi/anthropic/models/beta/beta_computer_hold_key_tool_use_block.rbi +102 -0
  356. data/rbi/anthropic/models/beta/beta_computer_key_input.rbi +49 -0
  357. data/rbi/anthropic/models/beta/beta_computer_key_tool_use_block.rbi +108 -0
  358. data/rbi/anthropic/models/beta/beta_computer_left_click_drag_input.rbi +63 -0
  359. data/rbi/anthropic/models/beta/beta_computer_left_click_drag_tool_use_block.rbi +103 -0
  360. data/rbi/anthropic/models/beta/beta_computer_left_click_input.rbi +56 -0
  361. data/rbi/anthropic/models/beta/beta_computer_left_click_tool_use_block.rbi +104 -0
  362. data/rbi/anthropic/models/beta/beta_computer_left_mouse_down_input.rbi +28 -0
  363. data/rbi/anthropic/models/beta/beta_computer_left_mouse_down_tool_use_block.rbi +103 -0
  364. data/rbi/anthropic/models/beta/beta_computer_left_mouse_up_input.rbi +28 -0
  365. data/rbi/anthropic/models/beta/beta_computer_left_mouse_up_tool_use_block.rbi +103 -0
  366. data/rbi/anthropic/models/beta/beta_computer_middle_click_input.rbi +56 -0
  367. data/rbi/anthropic/models/beta/beta_computer_middle_click_tool_use_block.rbi +105 -0
  368. data/rbi/anthropic/models/beta/beta_computer_mouse_move_input.rbi +36 -0
  369. data/rbi/anthropic/models/beta/beta_computer_mouse_move_tool_use_block.rbi +104 -0
  370. data/rbi/anthropic/models/beta/beta_computer_right_click_input.rbi +56 -0
  371. data/rbi/anthropic/models/beta/beta_computer_right_click_tool_use_block.rbi +105 -0
  372. data/rbi/anthropic/models/beta/beta_computer_screenshot_input.rbi +28 -0
  373. data/rbi/anthropic/models/beta/beta_computer_screenshot_tool_use_block.rbi +103 -0
  374. data/rbi/anthropic/models/beta/beta_computer_scroll_direction.rbi +45 -0
  375. data/rbi/anthropic/models/beta/beta_computer_scroll_input.rbi +75 -0
  376. data/rbi/anthropic/models/beta/beta_computer_scroll_tool_use_block.rbi +104 -0
  377. data/rbi/anthropic/models/beta/beta_computer_tool_use_block.rbi +203 -0
  378. data/rbi/anthropic/models/beta/beta_computer_triple_click_input.rbi +56 -0
  379. data/rbi/anthropic/models/beta/beta_computer_triple_click_tool_use_block.rbi +105 -0
  380. data/rbi/anthropic/models/beta/beta_computer_type_input.rbi +35 -0
  381. data/rbi/anthropic/models/beta/beta_computer_type_tool_use_block.rbi +100 -0
  382. data/rbi/anthropic/models/beta/beta_computer_wait_input.rbi +35 -0
  383. data/rbi/anthropic/models/beta/beta_computer_wait_tool_use_block.rbi +100 -0
  384. data/rbi/anthropic/models/beta/beta_computer_zoom_input.rbi +37 -0
  385. data/rbi/anthropic/models/beta/beta_computer_zoom_tool_use_block.rbi +104 -0
  386. data/rbi/anthropic/models/beta/beta_managed_agents_advisor_params.rbi +2 -2
  387. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +7 -0
  388. data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +6 -0
  389. data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
  390. data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +1 -2
  391. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +28 -0
  392. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +31 -1
  393. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_all.rbi +32 -0
  394. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_except.rbi +69 -0
  395. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_none.rbi +32 -0
  396. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_only.rbi +68 -0
  397. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_shorthand.rbi +46 -0
  398. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter.rbi +102 -0
  399. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter_params.rbi +35 -0
  400. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_reference.rbi +44 -0
  401. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input.rbi +80 -0
  402. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input_params.rbi +35 -0
  403. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources.rbi +118 -0
  404. data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources_params.rbi +160 -0
  405. data/rbi/anthropic/models/beta/beta_model_capabilities.rbi +29 -2
  406. data/rbi/anthropic/models/beta/beta_model_info.rbi +108 -0
  407. data/rbi/anthropic/models/beta/beta_model_line.rbi +33 -0
  408. data/rbi/anthropic/models/beta/beta_server_tools_capability.rbi +79 -0
  409. data/rbi/anthropic/models/beta/beta_thinking_types.rbi +27 -5
  410. data/rbi/anthropic/models/beta/beta_tool_use_caller.rbi +77 -0
  411. data/rbi/anthropic/models/beta/beta_toolset_tool_use_block.rbi +30 -0
  412. data/rbi/anthropic/models/beta/model_list_params.rbi +66 -0
  413. data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +16 -2
  414. data/rbi/anthropic/models/beta/organization/federation/beta_federation_rule.rbi +6 -4
  415. data/rbi/anthropic/models/beta/organization/spend_limit_set_params.rbi +23 -0
  416. data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +11 -0
  417. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +1 -1
  418. data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +2 -2
  419. data/rbi/anthropic/models/browser_click_target.rbi +63 -0
  420. data/rbi/anthropic/models/browser_close_tab_input.rbi +28 -0
  421. data/rbi/anthropic/models/browser_close_tab_tool_use_block.rbi +82 -0
  422. data/rbi/anthropic/models/browser_coordinate_target.rbi +44 -0
  423. data/rbi/anthropic/models/browser_double_click_input.rbi +63 -0
  424. data/rbi/anthropic/models/browser_double_click_tool_use_block.rbi +82 -0
  425. data/rbi/anthropic/models/browser_file_upload_input.rbi +72 -0
  426. data/rbi/anthropic/models/browser_file_upload_tool_use_block.rbi +84 -0
  427. data/rbi/anthropic/models/browser_find_input.rbi +39 -0
  428. data/rbi/anthropic/models/browser_find_tool_use_block.rbi +84 -0
  429. data/rbi/anthropic/models/browser_form_input_input.rbi +62 -0
  430. data/rbi/anthropic/models/browser_form_input_tool_use_block.rbi +84 -0
  431. data/rbi/anthropic/models/browser_form_input_value.rbi +17 -0
  432. data/rbi/anthropic/models/browser_get_page_text_input.rbi +32 -0
  433. data/rbi/anthropic/models/browser_get_page_text_tool_use_block.rbi +84 -0
  434. data/rbi/anthropic/models/browser_hold_key_input.rbi +51 -0
  435. data/rbi/anthropic/models/browser_hold_key_tool_use_block.rbi +84 -0
  436. data/rbi/anthropic/models/browser_hover_input.rbi +50 -0
  437. data/rbi/anthropic/models/browser_hover_tool_use_block.rbi +82 -0
  438. data/rbi/anthropic/models/browser_javascript_exec_input.rbi +43 -0
  439. data/rbi/anthropic/models/browser_javascript_exec_tool_use_block.rbi +86 -0
  440. data/rbi/anthropic/models/browser_key_input.rbi +57 -0
  441. data/rbi/anthropic/models/browser_key_tool_use_block.rbi +85 -0
  442. data/rbi/anthropic/models/browser_left_click_drag_input.rbi +67 -0
  443. data/rbi/anthropic/models/browser_left_click_drag_tool_use_block.rbi +82 -0
  444. data/rbi/anthropic/models/browser_left_click_input.rbi +60 -0
  445. data/rbi/anthropic/models/browser_left_click_tool_use_block.rbi +82 -0
  446. data/rbi/anthropic/models/browser_left_mouse_down_input.rbi +55 -0
  447. data/rbi/anthropic/models/browser_left_mouse_down_tool_use_block.rbi +84 -0
  448. data/rbi/anthropic/models/browser_left_mouse_up_input.rbi +54 -0
  449. data/rbi/anthropic/models/browser_left_mouse_up_tool_use_block.rbi +82 -0
  450. data/rbi/anthropic/models/browser_list_tabs_input.rbi +21 -0
  451. data/rbi/anthropic/models/browser_list_tabs_tool_use_block.rbi +82 -0
  452. data/rbi/anthropic/models/browser_middle_click_input.rbi +63 -0
  453. data/rbi/anthropic/models/browser_middle_click_tool_use_block.rbi +82 -0
  454. data/rbi/anthropic/models/browser_mouse_move_input.rbi +51 -0
  455. data/rbi/anthropic/models/browser_mouse_move_tool_use_block.rbi +82 -0
  456. data/rbi/anthropic/models/browser_navigate_input.rbi +37 -0
  457. data/rbi/anthropic/models/browser_navigate_tool_use_block.rbi +84 -0
  458. data/rbi/anthropic/models/browser_new_tab_input.rbi +21 -0
  459. data/rbi/anthropic/models/browser_new_tab_tool_use_block.rbi +82 -0
  460. data/rbi/anthropic/models/browser_read_console_input.rbi +33 -0
  461. data/rbi/anthropic/models/browser_read_console_tool_use_block.rbi +86 -0
  462. data/rbi/anthropic/models/browser_read_network_input.rbi +33 -0
  463. data/rbi/anthropic/models/browser_read_network_tool_use_block.rbi +86 -0
  464. data/rbi/anthropic/models/browser_read_page_filter.rbi +25 -0
  465. data/rbi/anthropic/models/browser_read_page_input.rbi +67 -0
  466. data/rbi/anthropic/models/browser_read_page_tool_use_block.rbi +88 -0
  467. data/rbi/anthropic/models/browser_ref_target.rbi +36 -0
  468. data/rbi/anthropic/models/browser_right_click_input.rbi +60 -0
  469. data/rbi/anthropic/models/browser_right_click_tool_use_block.rbi +82 -0
  470. data/rbi/anthropic/models/browser_screenshot_input.rbi +28 -0
  471. data/rbi/anthropic/models/browser_screenshot_tool_use_block.rbi +82 -0
  472. data/rbi/anthropic/models/browser_scroll_direction.rbi +26 -0
  473. data/rbi/anthropic/models/browser_scroll_input.rbi +65 -0
  474. data/rbi/anthropic/models/browser_scroll_to_input.rbi +50 -0
  475. data/rbi/anthropic/models/browser_scroll_to_tool_use_block.rbi +82 -0
  476. data/rbi/anthropic/models/browser_scroll_tool_use_block.rbi +82 -0
  477. data/rbi/anthropic/models/browser_switch_tab_input.rbi +29 -0
  478. data/rbi/anthropic/models/browser_switch_tab_tool_use_block.rbi +84 -0
  479. data/rbi/anthropic/models/browser_tool_use_block.rbi +226 -0
  480. data/rbi/anthropic/models/browser_triple_click_input.rbi +64 -0
  481. data/rbi/anthropic/models/browser_triple_click_tool_use_block.rbi +84 -0
  482. data/rbi/anthropic/models/browser_type_input.rbi +38 -0
  483. data/rbi/anthropic/models/browser_type_tool_use_block.rbi +82 -0
  484. data/rbi/anthropic/models/browser_wait_input.rbi +38 -0
  485. data/rbi/anthropic/models/browser_wait_tool_use_block.rbi +82 -0
  486. data/rbi/anthropic/models/browser_zoom_input.rbi +44 -0
  487. data/rbi/anthropic/models/browser_zoom_tool_use_block.rbi +86 -0
  488. data/rbi/anthropic/models/computer_cursor_position_input.rbi +24 -0
  489. data/rbi/anthropic/models/computer_cursor_position_tool_use_block.rbi +82 -0
  490. data/rbi/anthropic/models/computer_double_click_input.rbi +49 -0
  491. data/rbi/anthropic/models/computer_double_click_tool_use_block.rbi +84 -0
  492. data/rbi/anthropic/models/computer_hold_key_input.rbi +35 -0
  493. data/rbi/anthropic/models/computer_hold_key_tool_use_block.rbi +84 -0
  494. data/rbi/anthropic/models/computer_key_input.rbi +42 -0
  495. data/rbi/anthropic/models/computer_key_tool_use_block.rbi +90 -0
  496. data/rbi/anthropic/models/computer_left_click_drag_input.rbi +59 -0
  497. data/rbi/anthropic/models/computer_left_click_drag_tool_use_block.rbi +82 -0
  498. data/rbi/anthropic/models/computer_left_click_input.rbi +46 -0
  499. data/rbi/anthropic/models/computer_left_click_tool_use_block.rbi +84 -0
  500. data/rbi/anthropic/models/computer_left_mouse_down_input.rbi +24 -0
  501. data/rbi/anthropic/models/computer_left_mouse_down_tool_use_block.rbi +82 -0
  502. data/rbi/anthropic/models/computer_left_mouse_up_input.rbi +24 -0
  503. data/rbi/anthropic/models/computer_left_mouse_up_tool_use_block.rbi +82 -0
  504. data/rbi/anthropic/models/computer_middle_click_input.rbi +49 -0
  505. data/rbi/anthropic/models/computer_middle_click_tool_use_block.rbi +84 -0
  506. data/rbi/anthropic/models/computer_mouse_move_input.rbi +29 -0
  507. data/rbi/anthropic/models/computer_mouse_move_tool_use_block.rbi +84 -0
  508. data/rbi/anthropic/models/computer_right_click_input.rbi +49 -0
  509. data/rbi/anthropic/models/computer_right_click_tool_use_block.rbi +84 -0
  510. data/rbi/anthropic/models/computer_screenshot_input.rbi +24 -0
  511. data/rbi/anthropic/models/computer_screenshot_tool_use_block.rbi +82 -0
  512. data/rbi/anthropic/models/computer_scroll_direction.rbi +26 -0
  513. data/rbi/anthropic/models/computer_scroll_input.rbi +64 -0
  514. data/rbi/anthropic/models/computer_scroll_tool_use_block.rbi +86 -0
  515. data/rbi/anthropic/models/computer_tool_use_block.rbi +171 -0
  516. data/rbi/anthropic/models/computer_triple_click_input.rbi +49 -0
  517. data/rbi/anthropic/models/computer_triple_click_tool_use_block.rbi +84 -0
  518. data/rbi/anthropic/models/computer_type_input.rbi +28 -0
  519. data/rbi/anthropic/models/computer_type_tool_use_block.rbi +82 -0
  520. data/rbi/anthropic/models/computer_wait_input.rbi +28 -0
  521. data/rbi/anthropic/models/computer_wait_tool_use_block.rbi +82 -0
  522. data/rbi/anthropic/models/computer_zoom_input.rbi +30 -0
  523. data/rbi/anthropic/models/computer_zoom_tool_use_block.rbi +86 -0
  524. data/rbi/anthropic/models/model.rbi +4 -0
  525. data/rbi/anthropic/models/model_capabilities.rbi +27 -2
  526. data/rbi/anthropic/models/model_info.rbi +94 -0
  527. data/rbi/anthropic/models/model_line.rbi +24 -0
  528. data/rbi/anthropic/models/model_list_params.rbi +52 -0
  529. data/rbi/anthropic/models/organization/federation/federation_rule.rbi +6 -4
  530. data/rbi/anthropic/models/organization/workspace_list_params.rbi +11 -0
  531. data/rbi/anthropic/models/server_tools_capability.rbi +64 -0
  532. data/rbi/anthropic/models/thinking_types.rbi +25 -5
  533. data/rbi/anthropic/models/tool_use_caller.rbi +63 -0
  534. data/rbi/anthropic/models/toolset_tool_use_block.rbi +24 -0
  535. data/rbi/anthropic/models.rbi +242 -0
  536. data/rbi/anthropic/resources/beta/agents.rbi +3 -4
  537. data/rbi/anthropic/resources/beta/messages.rbi +5 -0
  538. data/rbi/anthropic/resources/beta/models.rbi +7 -0
  539. data/rbi/anthropic/resources/beta/organization/analytics/summaries.rbi +6 -7
  540. data/rbi/anthropic/resources/beta/organization/rate_limits.rbi +2 -2
  541. data/rbi/anthropic/resources/beta/organization/spend_limits/effective.rbi +2 -1
  542. data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +17 -10
  543. data/rbi/anthropic/resources/beta/organization/workspaces.rbi +3 -0
  544. data/rbi/anthropic/resources/messages.rbi +16 -0
  545. data/rbi/anthropic/resources/models.rbi +6 -0
  546. data/rbi/anthropic/resources/organization/rate_limits.rbi +2 -2
  547. data/rbi/anthropic/resources/organization/workspaces.rbi +3 -0
  548. data/sig/anthropic/models/beta/beta_browser_click_target.rbs +46 -0
  549. data/sig/anthropic/models/beta/beta_browser_close_tab_input.rbs +17 -0
  550. data/sig/anthropic/models/beta/beta_browser_close_tab_tool_use_block.rbs +53 -0
  551. data/sig/anthropic/models/beta/beta_browser_coordinate_target.rbs +22 -0
  552. data/sig/anthropic/models/beta/beta_browser_double_click_input.rbs +34 -0
  553. data/sig/anthropic/models/beta/beta_browser_double_click_tool_use_block.rbs +53 -0
  554. data/sig/anthropic/models/beta/beta_browser_file_upload_input.rbs +39 -0
  555. data/sig/anthropic/models/beta/beta_browser_file_upload_tool_use_block.rbs +53 -0
  556. data/sig/anthropic/models/beta/beta_browser_find_input.rbs +19 -0
  557. data/sig/anthropic/models/beta/beta_browser_find_tool_use_block.rbs +53 -0
  558. data/sig/anthropic/models/beta/beta_browser_form_input_input.rbs +34 -0
  559. data/sig/anthropic/models/beta/beta_browser_form_input_tool_use_block.rbs +53 -0
  560. data/sig/anthropic/models/beta/beta_browser_form_input_value.rbs +15 -0
  561. data/sig/anthropic/models/beta/beta_browser_get_page_text_input.rbs +17 -0
  562. data/sig/anthropic/models/beta/beta_browser_get_page_text_tool_use_block.rbs +53 -0
  563. data/sig/anthropic/models/beta/beta_browser_hold_key_input.rbs +26 -0
  564. data/sig/anthropic/models/beta/beta_browser_hold_key_tool_use_block.rbs +53 -0
  565. data/sig/anthropic/models/beta/beta_browser_hover_input.rbs +29 -0
  566. data/sig/anthropic/models/beta/beta_browser_hover_tool_use_block.rbs +53 -0
  567. data/sig/anthropic/models/beta/beta_browser_javascript_exec_input.rbs +20 -0
  568. data/sig/anthropic/models/beta/beta_browser_javascript_exec_tool_use_block.rbs +53 -0
  569. data/sig/anthropic/models/beta/beta_browser_key_input.rbs +26 -0
  570. data/sig/anthropic/models/beta/beta_browser_key_tool_use_block.rbs +53 -0
  571. data/sig/anthropic/models/beta/beta_browser_left_click_drag_input.rbs +34 -0
  572. data/sig/anthropic/models/beta/beta_browser_left_click_drag_tool_use_block.rbs +53 -0
  573. data/sig/anthropic/models/beta/beta_browser_left_click_input.rbs +34 -0
  574. data/sig/anthropic/models/beta/beta_browser_left_click_tool_use_block.rbs +53 -0
  575. data/sig/anthropic/models/beta/beta_browser_left_mouse_down_input.rbs +29 -0
  576. data/sig/anthropic/models/beta/beta_browser_left_mouse_down_tool_use_block.rbs +53 -0
  577. data/sig/anthropic/models/beta/beta_browser_left_mouse_up_input.rbs +29 -0
  578. data/sig/anthropic/models/beta/beta_browser_left_mouse_up_tool_use_block.rbs +53 -0
  579. data/sig/anthropic/models/beta/beta_browser_list_tabs_input.rbs +15 -0
  580. data/sig/anthropic/models/beta/beta_browser_list_tabs_tool_use_block.rbs +53 -0
  581. data/sig/anthropic/models/beta/beta_browser_middle_click_input.rbs +34 -0
  582. data/sig/anthropic/models/beta/beta_browser_middle_click_tool_use_block.rbs +53 -0
  583. data/sig/anthropic/models/beta/beta_browser_mouse_move_input.rbs +29 -0
  584. data/sig/anthropic/models/beta/beta_browser_mouse_move_tool_use_block.rbs +53 -0
  585. data/sig/anthropic/models/beta/beta_browser_navigate_input.rbs +19 -0
  586. data/sig/anthropic/models/beta/beta_browser_navigate_tool_use_block.rbs +53 -0
  587. data/sig/anthropic/models/beta/beta_browser_new_tab_input.rbs +15 -0
  588. data/sig/anthropic/models/beta/beta_browser_new_tab_tool_use_block.rbs +53 -0
  589. data/sig/anthropic/models/beta/beta_browser_read_console_input.rbs +17 -0
  590. data/sig/anthropic/models/beta/beta_browser_read_console_tool_use_block.rbs +53 -0
  591. data/sig/anthropic/models/beta/beta_browser_read_network_input.rbs +17 -0
  592. data/sig/anthropic/models/beta/beta_browser_read_network_tool_use_block.rbs +53 -0
  593. data/sig/anthropic/models/beta/beta_browser_read_page_filter.rbs +18 -0
  594. data/sig/anthropic/models/beta/beta_browser_read_page_input.rbs +39 -0
  595. data/sig/anthropic/models/beta/beta_browser_read_page_tool_use_block.rbs +53 -0
  596. data/sig/anthropic/models/beta/beta_browser_ref_target.rbs +19 -0
  597. data/sig/anthropic/models/beta/beta_browser_right_click_input.rbs +34 -0
  598. data/sig/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbs +53 -0
  599. data/sig/anthropic/models/beta/beta_browser_screenshot_input.rbs +17 -0
  600. data/sig/anthropic/models/beta/beta_browser_screenshot_tool_use_block.rbs +53 -0
  601. data/sig/anthropic/models/beta/beta_browser_scroll_direction.rbs +20 -0
  602. data/sig/anthropic/models/beta/beta_browser_scroll_input.rbs +39 -0
  603. data/sig/anthropic/models/beta/beta_browser_scroll_to_input.rbs +26 -0
  604. data/sig/anthropic/models/beta/beta_browser_scroll_to_tool_use_block.rbs +53 -0
  605. data/sig/anthropic/models/beta/beta_browser_scroll_tool_use_block.rbs +53 -0
  606. data/sig/anthropic/models/beta/beta_browser_switch_tab_input.rbs +17 -0
  607. data/sig/anthropic/models/beta/beta_browser_switch_tab_tool_use_block.rbs +53 -0
  608. data/sig/anthropic/models/beta/beta_browser_tool_use_block.rbs +406 -0
  609. data/sig/anthropic/models/beta/beta_browser_triple_click_input.rbs +34 -0
  610. data/sig/anthropic/models/beta/beta_browser_triple_click_tool_use_block.rbs +53 -0
  611. data/sig/anthropic/models/beta/beta_browser_type_input.rbs +19 -0
  612. data/sig/anthropic/models/beta/beta_browser_type_tool_use_block.rbs +53 -0
  613. data/sig/anthropic/models/beta/beta_browser_wait_input.rbs +19 -0
  614. data/sig/anthropic/models/beta/beta_browser_wait_tool_use_block.rbs +53 -0
  615. data/sig/anthropic/models/beta/beta_browser_zoom_input.rbs +20 -0
  616. data/sig/anthropic/models/beta/beta_browser_zoom_tool_use_block.rbs +53 -0
  617. data/sig/anthropic/models/beta/beta_computer_cursor_position_input.rbs +15 -0
  618. data/sig/anthropic/models/beta/beta_computer_cursor_position_tool_use_block.rbs +53 -0
  619. data/sig/anthropic/models/beta/beta_computer_double_click_input.rbs +20 -0
  620. data/sig/anthropic/models/beta/beta_computer_double_click_tool_use_block.rbs +53 -0
  621. data/sig/anthropic/models/beta/beta_computer_hold_key_input.rbs +19 -0
  622. data/sig/anthropic/models/beta/beta_computer_hold_key_tool_use_block.rbs +53 -0
  623. data/sig/anthropic/models/beta/beta_computer_key_input.rbs +19 -0
  624. data/sig/anthropic/models/beta/beta_computer_key_tool_use_block.rbs +53 -0
  625. data/sig/anthropic/models/beta/beta_computer_left_click_drag_input.rbs +34 -0
  626. data/sig/anthropic/models/beta/beta_computer_left_click_drag_tool_use_block.rbs +53 -0
  627. data/sig/anthropic/models/beta/beta_computer_left_click_input.rbs +20 -0
  628. data/sig/anthropic/models/beta/beta_computer_left_click_tool_use_block.rbs +53 -0
  629. data/sig/anthropic/models/beta/beta_computer_left_mouse_down_input.rbs +15 -0
  630. data/sig/anthropic/models/beta/beta_computer_left_mouse_down_tool_use_block.rbs +53 -0
  631. data/sig/anthropic/models/beta/beta_computer_left_mouse_up_input.rbs +15 -0
  632. data/sig/anthropic/models/beta/beta_computer_left_mouse_up_tool_use_block.rbs +53 -0
  633. data/sig/anthropic/models/beta/beta_computer_middle_click_input.rbs +20 -0
  634. data/sig/anthropic/models/beta/beta_computer_middle_click_tool_use_block.rbs +53 -0
  635. data/sig/anthropic/models/beta/beta_computer_mouse_move_input.rbs +17 -0
  636. data/sig/anthropic/models/beta/beta_computer_mouse_move_tool_use_block.rbs +53 -0
  637. data/sig/anthropic/models/beta/beta_computer_right_click_input.rbs +20 -0
  638. data/sig/anthropic/models/beta/beta_computer_right_click_tool_use_block.rbs +53 -0
  639. data/sig/anthropic/models/beta/beta_computer_screenshot_input.rbs +15 -0
  640. data/sig/anthropic/models/beta/beta_computer_screenshot_tool_use_block.rbs +53 -0
  641. data/sig/anthropic/models/beta/beta_computer_scroll_direction.rbs +20 -0
  642. data/sig/anthropic/models/beta/beta_computer_scroll_input.rbs +39 -0
  643. data/sig/anthropic/models/beta/beta_computer_scroll_tool_use_block.rbs +53 -0
  644. data/sig/anthropic/models/beta/beta_computer_tool_use_block.rbs +238 -0
  645. data/sig/anthropic/models/beta/beta_computer_triple_click_input.rbs +20 -0
  646. data/sig/anthropic/models/beta/beta_computer_triple_click_tool_use_block.rbs +53 -0
  647. data/sig/anthropic/models/beta/beta_computer_type_input.rbs +17 -0
  648. data/sig/anthropic/models/beta/beta_computer_type_tool_use_block.rbs +53 -0
  649. data/sig/anthropic/models/beta/beta_computer_wait_input.rbs +17 -0
  650. data/sig/anthropic/models/beta/beta_computer_wait_tool_use_block.rbs +53 -0
  651. data/sig/anthropic/models/beta/beta_computer_zoom_input.rbs +17 -0
  652. data/sig/anthropic/models/beta/beta_computer_zoom_tool_use_block.rbs +53 -0
  653. data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +2 -0
  654. data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +2 -0
  655. data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
  656. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +5 -0
  657. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +7 -2
  658. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_all.rbs +17 -0
  659. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_except.rbs +29 -0
  660. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_none.rbs +17 -0
  661. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_only.rbs +29 -0
  662. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_shorthand.rbs +18 -0
  663. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter.rbs +53 -0
  664. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter_params.rbs +17 -0
  665. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_reference.rbs +20 -0
  666. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input.rbs +40 -0
  667. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input_params.rbs +17 -0
  668. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources.rbs +34 -0
  669. data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources_params.rbs +34 -0
  670. data/sig/anthropic/models/beta/beta_model_capabilities.rbs +5 -0
  671. data/sig/anthropic/models/beta/beta_model_info.rbs +32 -0
  672. data/sig/anthropic/models/beta/beta_model_line.rbs +21 -0
  673. data/sig/anthropic/models/beta/beta_server_tools_capability.rbs +34 -0
  674. data/sig/anthropic/models/beta/beta_thinking_types.rbs +5 -0
  675. data/sig/anthropic/models/beta/beta_tool_use_caller.rbs +46 -0
  676. data/sig/anthropic/models/beta/beta_toolset_tool_use_block.rbs +18 -0
  677. data/sig/anthropic/models/beta/model_list_params.rbs +21 -0
  678. data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
  679. data/sig/anthropic/models/beta/organization/spend_limit_set_params.rbs +10 -1
  680. data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +7 -0
  681. data/sig/anthropic/models/browser_click_target.rbs +37 -0
  682. data/sig/anthropic/models/browser_close_tab_input.rbs +13 -0
  683. data/sig/anthropic/models/browser_close_tab_tool_use_block.rbs +45 -0
  684. data/sig/anthropic/models/browser_coordinate_target.rbs +18 -0
  685. data/sig/anthropic/models/browser_double_click_input.rbs +30 -0
  686. data/sig/anthropic/models/browser_double_click_tool_use_block.rbs +45 -0
  687. data/sig/anthropic/models/browser_file_upload_input.rbs +35 -0
  688. data/sig/anthropic/models/browser_file_upload_tool_use_block.rbs +45 -0
  689. data/sig/anthropic/models/browser_find_input.rbs +15 -0
  690. data/sig/anthropic/models/browser_find_tool_use_block.rbs +45 -0
  691. data/sig/anthropic/models/browser_form_input_input.rbs +30 -0
  692. data/sig/anthropic/models/browser_form_input_tool_use_block.rbs +45 -0
  693. data/sig/anthropic/models/browser_form_input_value.rbs +11 -0
  694. data/sig/anthropic/models/browser_get_page_text_input.rbs +13 -0
  695. data/sig/anthropic/models/browser_get_page_text_tool_use_block.rbs +45 -0
  696. data/sig/anthropic/models/browser_hold_key_input.rbs +18 -0
  697. data/sig/anthropic/models/browser_hold_key_tool_use_block.rbs +45 -0
  698. data/sig/anthropic/models/browser_hover_input.rbs +22 -0
  699. data/sig/anthropic/models/browser_hover_tool_use_block.rbs +45 -0
  700. data/sig/anthropic/models/browser_javascript_exec_input.rbs +15 -0
  701. data/sig/anthropic/models/browser_javascript_exec_tool_use_block.rbs +45 -0
  702. data/sig/anthropic/models/browser_key_input.rbs +21 -0
  703. data/sig/anthropic/models/browser_key_tool_use_block.rbs +45 -0
  704. data/sig/anthropic/models/browser_left_click_drag_input.rbs +30 -0
  705. data/sig/anthropic/models/browser_left_click_drag_tool_use_block.rbs +45 -0
  706. data/sig/anthropic/models/browser_left_click_input.rbs +30 -0
  707. data/sig/anthropic/models/browser_left_click_tool_use_block.rbs +45 -0
  708. data/sig/anthropic/models/browser_left_mouse_down_input.rbs +22 -0
  709. data/sig/anthropic/models/browser_left_mouse_down_tool_use_block.rbs +45 -0
  710. data/sig/anthropic/models/browser_left_mouse_up_input.rbs +22 -0
  711. data/sig/anthropic/models/browser_left_mouse_up_tool_use_block.rbs +45 -0
  712. data/sig/anthropic/models/browser_list_tabs_input.rbs +11 -0
  713. data/sig/anthropic/models/browser_list_tabs_tool_use_block.rbs +45 -0
  714. data/sig/anthropic/models/browser_middle_click_input.rbs +30 -0
  715. data/sig/anthropic/models/browser_middle_click_tool_use_block.rbs +45 -0
  716. data/sig/anthropic/models/browser_mouse_move_input.rbs +22 -0
  717. data/sig/anthropic/models/browser_mouse_move_tool_use_block.rbs +45 -0
  718. data/sig/anthropic/models/browser_navigate_input.rbs +15 -0
  719. data/sig/anthropic/models/browser_navigate_tool_use_block.rbs +45 -0
  720. data/sig/anthropic/models/browser_new_tab_input.rbs +11 -0
  721. data/sig/anthropic/models/browser_new_tab_tool_use_block.rbs +45 -0
  722. data/sig/anthropic/models/browser_read_console_input.rbs +13 -0
  723. data/sig/anthropic/models/browser_read_console_tool_use_block.rbs +45 -0
  724. data/sig/anthropic/models/browser_read_network_input.rbs +13 -0
  725. data/sig/anthropic/models/browser_read_network_tool_use_block.rbs +45 -0
  726. data/sig/anthropic/models/browser_read_page_filter.rbs +14 -0
  727. data/sig/anthropic/models/browser_read_page_input.rbs +35 -0
  728. data/sig/anthropic/models/browser_read_page_tool_use_block.rbs +45 -0
  729. data/sig/anthropic/models/browser_ref_target.rbs +15 -0
  730. data/sig/anthropic/models/browser_right_click_input.rbs +30 -0
  731. data/sig/anthropic/models/browser_right_click_tool_use_block.rbs +45 -0
  732. data/sig/anthropic/models/browser_screenshot_input.rbs +13 -0
  733. data/sig/anthropic/models/browser_screenshot_tool_use_block.rbs +45 -0
  734. data/sig/anthropic/models/browser_scroll_direction.rbs +16 -0
  735. data/sig/anthropic/models/browser_scroll_input.rbs +35 -0
  736. data/sig/anthropic/models/browser_scroll_to_input.rbs +19 -0
  737. data/sig/anthropic/models/browser_scroll_to_tool_use_block.rbs +45 -0
  738. data/sig/anthropic/models/browser_scroll_tool_use_block.rbs +45 -0
  739. data/sig/anthropic/models/browser_switch_tab_input.rbs +13 -0
  740. data/sig/anthropic/models/browser_switch_tab_tool_use_block.rbs +45 -0
  741. data/sig/anthropic/models/browser_tool_use_block.rbs +401 -0
  742. data/sig/anthropic/models/browser_triple_click_input.rbs +30 -0
  743. data/sig/anthropic/models/browser_triple_click_tool_use_block.rbs +45 -0
  744. data/sig/anthropic/models/browser_type_input.rbs +15 -0
  745. data/sig/anthropic/models/browser_type_tool_use_block.rbs +45 -0
  746. data/sig/anthropic/models/browser_wait_input.rbs +15 -0
  747. data/sig/anthropic/models/browser_wait_tool_use_block.rbs +45 -0
  748. data/sig/anthropic/models/browser_zoom_input.rbs +15 -0
  749. data/sig/anthropic/models/browser_zoom_tool_use_block.rbs +45 -0
  750. data/sig/anthropic/models/computer_cursor_position_input.rbs +11 -0
  751. data/sig/anthropic/models/computer_cursor_position_tool_use_block.rbs +45 -0
  752. data/sig/anthropic/models/computer_double_click_input.rbs +16 -0
  753. data/sig/anthropic/models/computer_double_click_tool_use_block.rbs +45 -0
  754. data/sig/anthropic/models/computer_hold_key_input.rbs +15 -0
  755. data/sig/anthropic/models/computer_hold_key_tool_use_block.rbs +45 -0
  756. data/sig/anthropic/models/computer_key_input.rbs +15 -0
  757. data/sig/anthropic/models/computer_key_tool_use_block.rbs +45 -0
  758. data/sig/anthropic/models/computer_left_click_drag_input.rbs +30 -0
  759. data/sig/anthropic/models/computer_left_click_drag_tool_use_block.rbs +45 -0
  760. data/sig/anthropic/models/computer_left_click_input.rbs +16 -0
  761. data/sig/anthropic/models/computer_left_click_tool_use_block.rbs +45 -0
  762. data/sig/anthropic/models/computer_left_mouse_down_input.rbs +11 -0
  763. data/sig/anthropic/models/computer_left_mouse_down_tool_use_block.rbs +45 -0
  764. data/sig/anthropic/models/computer_left_mouse_up_input.rbs +11 -0
  765. data/sig/anthropic/models/computer_left_mouse_up_tool_use_block.rbs +45 -0
  766. data/sig/anthropic/models/computer_middle_click_input.rbs +16 -0
  767. data/sig/anthropic/models/computer_middle_click_tool_use_block.rbs +45 -0
  768. data/sig/anthropic/models/computer_mouse_move_input.rbs +13 -0
  769. data/sig/anthropic/models/computer_mouse_move_tool_use_block.rbs +45 -0
  770. data/sig/anthropic/models/computer_right_click_input.rbs +16 -0
  771. data/sig/anthropic/models/computer_right_click_tool_use_block.rbs +45 -0
  772. data/sig/anthropic/models/computer_screenshot_input.rbs +11 -0
  773. data/sig/anthropic/models/computer_screenshot_tool_use_block.rbs +45 -0
  774. data/sig/anthropic/models/computer_scroll_direction.rbs +16 -0
  775. data/sig/anthropic/models/computer_scroll_input.rbs +35 -0
  776. data/sig/anthropic/models/computer_scroll_tool_use_block.rbs +45 -0
  777. data/sig/anthropic/models/computer_tool_use_block.rbs +233 -0
  778. data/sig/anthropic/models/computer_triple_click_input.rbs +16 -0
  779. data/sig/anthropic/models/computer_triple_click_tool_use_block.rbs +45 -0
  780. data/sig/anthropic/models/computer_type_input.rbs +13 -0
  781. data/sig/anthropic/models/computer_type_tool_use_block.rbs +45 -0
  782. data/sig/anthropic/models/computer_wait_input.rbs +13 -0
  783. data/sig/anthropic/models/computer_wait_tool_use_block.rbs +45 -0
  784. data/sig/anthropic/models/computer_zoom_input.rbs +13 -0
  785. data/sig/anthropic/models/computer_zoom_tool_use_block.rbs +45 -0
  786. data/sig/anthropic/models/model.rbs +5 -1
  787. data/sig/anthropic/models/model_capabilities.rbs +5 -0
  788. data/sig/anthropic/models/model_info.rbs +32 -0
  789. data/sig/anthropic/models/model_line.rbs +17 -0
  790. data/sig/anthropic/models/model_list_params.rbs +21 -0
  791. data/sig/anthropic/models/organization/workspace_list_params.rbs +7 -0
  792. data/sig/anthropic/models/server_tools_capability.rbs +30 -0
  793. data/sig/anthropic/models/thinking_types.rbs +5 -0
  794. data/sig/anthropic/models/tool_use_caller.rbs +41 -0
  795. data/sig/anthropic/models/toolset_tool_use_block.rbs +14 -0
  796. data/sig/anthropic/models.rbs +218 -0
  797. data/sig/anthropic/resources/beta/models.rbs +1 -0
  798. data/sig/anthropic/resources/beta/organization/spend_limits.rbs +1 -0
  799. data/sig/anthropic/resources/beta/organization/workspaces.rbs +1 -0
  800. data/sig/anthropic/resources/models.rbs +1 -0
  801. data/sig/anthropic/resources/organization/workspaces.rbs +1 -0
  802. metadata +692 -2
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module BetaBrowserScrollDirection
7
+ extend Anthropic::Internal::Type::Enum
8
+
9
+ UP = :up
10
+ DOWN = :down
11
+ LEFT = :left
12
+ RIGHT = :right
13
+
14
+ # @!method self.values
15
+ # @return [Array<Symbol>]
16
+ end
17
+ end
18
+
19
+ BetaBrowserScrollDirection = Beta::BetaBrowserScrollDirection
20
+ end
21
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserScrollInput < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute scroll_direction
8
+ #
9
+ # @return [Symbol, Anthropic::Models::Beta::BetaBrowserScrollDirection]
10
+ required :scroll_direction, enum: -> { Anthropic::Beta::BetaBrowserScrollDirection }
11
+
12
+ # @!attribute target
13
+ # A point in the browser viewport, in viewport pixels (the same frame as a
14
+ # full-viewport screenshot).
15
+ #
16
+ # @return [Anthropic::Models::Beta::BetaBrowserCoordinateTarget]
17
+ required :target, -> { Anthropic::Beta::BetaBrowserCoordinateTarget }
18
+
19
+ # @!attribute scroll_amount
20
+ # Scroll-wheel notches (1–10). Default 3.
21
+ #
22
+ # @return [Integer, nil]
23
+ optional :scroll_amount, Integer, nil?: true
24
+
25
+ # @!attribute tab_id
26
+ # Tab to act on. Defaults to the active tab when omitted.
27
+ #
28
+ # @return [String, nil]
29
+ optional :tab_id, String, nil?: true
30
+
31
+ # @!method initialize(scroll_direction:, target:, scroll_amount: nil, tab_id: nil)
32
+ # Scroll at a viewport position. `target` must be a coordinate target.
33
+ #
34
+ # Some parameter documentations has been truncated, see
35
+ # {Anthropic::Models::Beta::BetaBrowserScrollInput} for more details.
36
+ #
37
+ # @param scroll_direction [Symbol, Anthropic::Models::Beta::BetaBrowserScrollDirection]
38
+ #
39
+ # @param target [Anthropic::Models::Beta::BetaBrowserCoordinateTarget] A point in the browser viewport, in viewport pixels (the same frame as a
40
+ #
41
+ # @param scroll_amount [Integer, nil] Scroll-wheel notches (1–10). Default 3.
42
+ #
43
+ # @param tab_id [String, nil] Tab to act on. Defaults to the active tab when omitted.
44
+ end
45
+ end
46
+
47
+ BetaBrowserScrollInput = Beta::BetaBrowserScrollInput
48
+ end
49
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserScrollToInput < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute target
8
+ # An element on the page, identified by a reference from a prior `read_page` or
9
+ # `find` result. References are scoped to the tab that produced them and become
10
+ # stale after navigation or a major re-render.
11
+ #
12
+ # @return [Anthropic::Models::Beta::BetaBrowserRefTarget]
13
+ required :target, -> { Anthropic::Beta::BetaBrowserRefTarget }
14
+
15
+ # @!attribute tab_id
16
+ # Tab to act on. Defaults to the active tab when omitted.
17
+ #
18
+ # @return [String, nil]
19
+ optional :tab_id, String, nil?: true
20
+
21
+ # @!method initialize(target:, tab_id: nil)
22
+ # Scroll an element into view.
23
+ #
24
+ # Some parameter documentations has been truncated, see
25
+ # {Anthropic::Models::Beta::BetaBrowserScrollToInput} for more details.
26
+ #
27
+ # @param target [Anthropic::Models::Beta::BetaBrowserRefTarget] An element on the page, identified by a reference from a prior `read_page` or
28
+ #
29
+ # @param tab_id [String, nil] Tab to act on. Defaults to the active tab when omitted.
30
+ end
31
+ end
32
+
33
+ BetaBrowserScrollToInput = Beta::BetaBrowserScrollToInput
34
+ end
35
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserScrollToToolUseBlock < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute input
13
+ # Scroll an element into view.
14
+ #
15
+ # @return [Anthropic::Models::Beta::BetaBrowserScrollToInput]
16
+ required :input, -> { Anthropic::Beta::BetaBrowserScrollToInput }
17
+
18
+ # @!attribute name
19
+ #
20
+ # @return [Symbol, :scroll_to]
21
+ required :name, const: :scroll_to
22
+
23
+ # @!attribute toolset_name
24
+ #
25
+ # @return [Symbol, :browser]
26
+ required :toolset_name, const: :browser
27
+
28
+ # @!attribute type
29
+ #
30
+ # @return [Symbol, :tool_use]
31
+ required :type, const: :tool_use
32
+
33
+ # @!attribute caller_
34
+ # Which party invoked the tool call: the model directly, or a server tool on its
35
+ # behalf.
36
+ #
37
+ # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
38
+ optional :caller_, union: -> { Anthropic::Beta::BetaToolUseCaller }, api_name: :caller
39
+
40
+ # @!method initialize(id:, input:, caller_: nil, name: :scroll_to, toolset_name: :browser, type: :tool_use)
41
+ # Some parameter documentations has been truncated, see
42
+ # {Anthropic::Models::Beta::BetaBrowserScrollToToolUseBlock} for more details.
43
+ #
44
+ # @param id [String]
45
+ #
46
+ # @param input [Anthropic::Models::Beta::BetaBrowserScrollToInput] Scroll an element into view.
47
+ #
48
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Which party invoked the tool call: the model directly, or a server tool on its b
49
+ #
50
+ # @param name [Symbol, :scroll_to]
51
+ #
52
+ # @param toolset_name [Symbol, :browser]
53
+ #
54
+ # @param type [Symbol, :tool_use]
55
+ end
56
+ end
57
+
58
+ BetaBrowserScrollToToolUseBlock = Beta::BetaBrowserScrollToToolUseBlock
59
+ end
60
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserScrollToolUseBlock < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute input
13
+ # Scroll at a viewport position. `target` must be a coordinate target.
14
+ #
15
+ # @return [Anthropic::Models::Beta::BetaBrowserScrollInput]
16
+ required :input, -> { Anthropic::Beta::BetaBrowserScrollInput }
17
+
18
+ # @!attribute name
19
+ #
20
+ # @return [Symbol, :scroll]
21
+ required :name, const: :scroll
22
+
23
+ # @!attribute toolset_name
24
+ #
25
+ # @return [Symbol, :browser]
26
+ required :toolset_name, const: :browser
27
+
28
+ # @!attribute type
29
+ #
30
+ # @return [Symbol, :tool_use]
31
+ required :type, const: :tool_use
32
+
33
+ # @!attribute caller_
34
+ # Which party invoked the tool call: the model directly, or a server tool on its
35
+ # behalf.
36
+ #
37
+ # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
38
+ optional :caller_, union: -> { Anthropic::Beta::BetaToolUseCaller }, api_name: :caller
39
+
40
+ # @!method initialize(id:, input:, caller_: nil, name: :scroll, toolset_name: :browser, type: :tool_use)
41
+ # Some parameter documentations has been truncated, see
42
+ # {Anthropic::Models::Beta::BetaBrowserScrollToolUseBlock} for more details.
43
+ #
44
+ # @param id [String]
45
+ #
46
+ # @param input [Anthropic::Models::Beta::BetaBrowserScrollInput] Scroll at a viewport position. `target` must be a coordinate target.
47
+ #
48
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Which party invoked the tool call: the model directly, or a server tool on its b
49
+ #
50
+ # @param name [Symbol, :scroll]
51
+ #
52
+ # @param toolset_name [Symbol, :browser]
53
+ #
54
+ # @param type [Symbol, :tool_use]
55
+ end
56
+ end
57
+
58
+ BetaBrowserScrollToolUseBlock = Beta::BetaBrowserScrollToolUseBlock
59
+ end
60
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserSwitchTabInput < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute tab_id
8
+ # The tab to switch to.
9
+ #
10
+ # @return [String]
11
+ required :tab_id, String
12
+
13
+ # @!method initialize(tab_id:)
14
+ # Make the tab with the given tab_id the active tab — the tab that actions without
15
+ # a tab_id apply to.
16
+ #
17
+ # @param tab_id [String] The tab to switch to.
18
+ end
19
+ end
20
+
21
+ BetaBrowserSwitchTabInput = Beta::BetaBrowserSwitchTabInput
22
+ end
23
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserSwitchTabToolUseBlock < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute input
13
+ # Make the tab with the given tab_id the active tab — the tab that actions without
14
+ # a tab_id apply to.
15
+ #
16
+ # @return [Anthropic::Models::Beta::BetaBrowserSwitchTabInput]
17
+ required :input, -> { Anthropic::Beta::BetaBrowserSwitchTabInput }
18
+
19
+ # @!attribute name
20
+ #
21
+ # @return [Symbol, :switch_tab]
22
+ required :name, const: :switch_tab
23
+
24
+ # @!attribute toolset_name
25
+ #
26
+ # @return [Symbol, :browser]
27
+ required :toolset_name, const: :browser
28
+
29
+ # @!attribute type
30
+ #
31
+ # @return [Symbol, :tool_use]
32
+ required :type, const: :tool_use
33
+
34
+ # @!attribute caller_
35
+ # Which party invoked the tool call: the model directly, or a server tool on its
36
+ # behalf.
37
+ #
38
+ # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
39
+ optional :caller_, union: -> { Anthropic::Beta::BetaToolUseCaller }, api_name: :caller
40
+
41
+ # @!method initialize(id:, input:, caller_: nil, name: :switch_tab, toolset_name: :browser, type: :tool_use)
42
+ # Some parameter documentations has been truncated, see
43
+ # {Anthropic::Models::Beta::BetaBrowserSwitchTabToolUseBlock} for more details.
44
+ #
45
+ # @param id [String]
46
+ #
47
+ # @param input [Anthropic::Models::Beta::BetaBrowserSwitchTabInput] Make the tab with the given tab_id the active tab — the tab that actions without
48
+ #
49
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Which party invoked the tool call: the model directly, or a server tool on its b
50
+ #
51
+ # @param name [Symbol, :switch_tab]
52
+ #
53
+ # @param toolset_name [Symbol, :browser]
54
+ #
55
+ # @param type [Symbol, :tool_use]
56
+ end
57
+ end
58
+
59
+ BetaBrowserSwitchTabToolUseBlock = Beta::BetaBrowserSwitchTabToolUseBlock
60
+ end
61
+ end
@@ -0,0 +1,210 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ module BetaBrowserToolUseBlock
7
+ extend Anthropic::Internal::Type::Union
8
+
9
+ discriminator :name
10
+
11
+ variant :navigate, -> { Anthropic::Beta::BetaBrowserNavigateToolUseBlock }
12
+
13
+ variant :list_tabs, -> { Anthropic::Beta::BetaBrowserListTabsToolUseBlock }
14
+
15
+ variant :new_tab, -> { Anthropic::Beta::BetaBrowserNewTabToolUseBlock }
16
+
17
+ variant :switch_tab, -> { Anthropic::Beta::BetaBrowserSwitchTabToolUseBlock }
18
+
19
+ variant :close_tab, -> { Anthropic::Beta::BetaBrowserCloseTabToolUseBlock }
20
+
21
+ variant :read_page, -> { Anthropic::Beta::BetaBrowserReadPageToolUseBlock }
22
+
23
+ variant :get_page_text, -> { Anthropic::Beta::BetaBrowserGetPageTextToolUseBlock }
24
+
25
+ variant :read_console, -> { Anthropic::Beta::BetaBrowserReadConsoleToolUseBlock }
26
+
27
+ variant :read_network, -> { Anthropic::Beta::BetaBrowserReadNetworkToolUseBlock }
28
+
29
+ variant :find, -> { Anthropic::Beta::BetaBrowserFindToolUseBlock }
30
+
31
+ variant :form_input, -> { Anthropic::Beta::BetaBrowserFormInputToolUseBlock }
32
+
33
+ variant :file_upload, -> { Anthropic::Beta::BetaBrowserFileUploadToolUseBlock }
34
+
35
+ variant :scroll_to, -> { Anthropic::Beta::BetaBrowserScrollToToolUseBlock }
36
+
37
+ variant :screenshot, -> { Anthropic::Beta::BetaBrowserScreenshotToolUseBlock }
38
+
39
+ variant :zoom, -> { Anthropic::Beta::BetaBrowserZoomToolUseBlock }
40
+
41
+ variant :left_click, -> { Anthropic::Beta::BetaBrowserLeftClickToolUseBlock }
42
+
43
+ variant :right_click, -> { Anthropic::Beta::BetaBrowserRightClickToolUseBlock }
44
+
45
+ variant :middle_click, -> { Anthropic::Beta::BetaBrowserMiddleClickToolUseBlock }
46
+
47
+ variant :double_click, -> { Anthropic::Beta::BetaBrowserDoubleClickToolUseBlock }
48
+
49
+ variant :triple_click, -> { Anthropic::Beta::BetaBrowserTripleClickToolUseBlock }
50
+
51
+ variant :hover, -> { Anthropic::Beta::BetaBrowserHoverToolUseBlock }
52
+
53
+ variant :left_click_drag, -> { Anthropic::Beta::BetaBrowserLeftClickDragToolUseBlock }
54
+
55
+ variant :left_mouse_down, -> { Anthropic::Beta::BetaBrowserLeftMouseDownToolUseBlock }
56
+
57
+ variant :left_mouse_up, -> { Anthropic::Beta::BetaBrowserLeftMouseUpToolUseBlock }
58
+
59
+ variant :mouse_move, -> { Anthropic::Beta::BetaBrowserMouseMoveToolUseBlock }
60
+
61
+ variant :scroll, -> { Anthropic::Beta::BetaBrowserScrollToolUseBlock }
62
+
63
+ variant :type, -> { Anthropic::Beta::BetaBrowserTypeToolUseBlock }
64
+
65
+ variant :key, -> { Anthropic::Beta::BetaBrowserKeyToolUseBlock }
66
+
67
+ variant :hold_key, -> { Anthropic::Beta::BetaBrowserHoldKeyToolUseBlock }
68
+
69
+ variant :wait, -> { Anthropic::Beta::BetaBrowserWaitToolUseBlock }
70
+
71
+ variant :javascript_exec, -> { Anthropic::Beta::BetaBrowserJavascriptExecToolUseBlock }
72
+
73
+ module Name
74
+ extend Anthropic::Internal::Type::Enum
75
+
76
+ NAVIGATE = :navigate
77
+ LIST_TABS = :list_tabs
78
+ NEW_TAB = :new_tab
79
+ SWITCH_TAB = :switch_tab
80
+ CLOSE_TAB = :close_tab
81
+ READ_PAGE = :read_page
82
+ GET_PAGE_TEXT = :get_page_text
83
+ READ_CONSOLE = :read_console
84
+ READ_NETWORK = :read_network
85
+ FIND = :find
86
+ FORM_INPUT = :form_input
87
+ FILE_UPLOAD = :file_upload
88
+ SCROLL_TO = :scroll_to
89
+ SCREENSHOT = :screenshot
90
+ ZOOM = :zoom
91
+ LEFT_CLICK = :left_click
92
+ RIGHT_CLICK = :right_click
93
+ MIDDLE_CLICK = :middle_click
94
+ DOUBLE_CLICK = :double_click
95
+ TRIPLE_CLICK = :triple_click
96
+ HOVER = :hover
97
+ LEFT_CLICK_DRAG = :left_click_drag
98
+ LEFT_MOUSE_DOWN = :left_mouse_down
99
+ LEFT_MOUSE_UP = :left_mouse_up
100
+ MOUSE_MOVE = :mouse_move
101
+ SCROLL = :scroll
102
+ TYPE = :type
103
+ KEY = :key
104
+ HOLD_KEY = :hold_key
105
+ WAIT = :wait
106
+ JAVASCRIPT_EXEC = :javascript_exec
107
+
108
+ # @!method self.values
109
+ # @return [Array<Symbol>]
110
+ end
111
+
112
+ # @!method self.variants
113
+ # @return [Array(Anthropic::Models::Beta::BetaBrowserNavigateToolUseBlock, Anthropic::Models::Beta::BetaBrowserListTabsToolUseBlock, Anthropic::Models::Beta::BetaBrowserNewTabToolUseBlock, Anthropic::Models::Beta::BetaBrowserSwitchTabToolUseBlock, Anthropic::Models::Beta::BetaBrowserCloseTabToolUseBlock, Anthropic::Models::Beta::BetaBrowserReadPageToolUseBlock, Anthropic::Models::Beta::BetaBrowserGetPageTextToolUseBlock, Anthropic::Models::Beta::BetaBrowserReadConsoleToolUseBlock, Anthropic::Models::Beta::BetaBrowserReadNetworkToolUseBlock, Anthropic::Models::Beta::BetaBrowserFindToolUseBlock, Anthropic::Models::Beta::BetaBrowserFormInputToolUseBlock, Anthropic::Models::Beta::BetaBrowserFileUploadToolUseBlock, Anthropic::Models::Beta::BetaBrowserScrollToToolUseBlock, Anthropic::Models::Beta::BetaBrowserScreenshotToolUseBlock, Anthropic::Models::Beta::BetaBrowserZoomToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserRightClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserMiddleClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserDoubleClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserTripleClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserHoverToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftClickDragToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftMouseDownToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftMouseUpToolUseBlock, Anthropic::Models::Beta::BetaBrowserMouseMoveToolUseBlock, Anthropic::Models::Beta::BetaBrowserScrollToolUseBlock, Anthropic::Models::Beta::BetaBrowserTypeToolUseBlock, Anthropic::Models::Beta::BetaBrowserKeyToolUseBlock, Anthropic::Models::Beta::BetaBrowserHoldKeyToolUseBlock, Anthropic::Models::Beta::BetaBrowserWaitToolUseBlock, Anthropic::Models::Beta::BetaBrowserJavascriptExecToolUseBlock)]
114
+
115
+ # Creates a new instance of the variant class whose `name` matches the given
116
+ # value, passing the remaining arguments to its constructor.
117
+ #
118
+ # Some parameter documentations has been truncated, see
119
+ # {Anthropic::Models::Beta::BetaBrowserToolUseBlock} for more details.
120
+ #
121
+ # @param name [Symbol, Anthropic::Models::Beta::BetaBrowserToolUseBlock::Name, String]
122
+ #
123
+ # @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
124
+ #
125
+ # @option args [String] :id
126
+ #
127
+ # @option args [Anthropic::Models::Beta::BetaBrowserNavigateInput, Anthropic::Models::Beta::BetaBrowserListTabsInput, Anthropic::Models::Beta::BetaBrowserNewTabInput, Anthropic::Models::Beta::BetaBrowserSwitchTabInput, Anthropic::Models::Beta::BetaBrowserCloseTabInput, Anthropic::Models::Beta::BetaBrowserReadPageInput, Anthropic::Models::Beta::BetaBrowserGetPageTextInput, Anthropic::Models::Beta::BetaBrowserReadConsoleInput, Anthropic::Models::Beta::BetaBrowserReadNetworkInput, Anthropic::Models::Beta::BetaBrowserFindInput, Anthropic::Models::Beta::BetaBrowserFormInputInput, Anthropic::Models::Beta::BetaBrowserFileUploadInput, Anthropic::Models::Beta::BetaBrowserScrollToInput, Anthropic::Models::Beta::BetaBrowserScreenshotInput, Anthropic::Models::Beta::BetaBrowserZoomInput, Anthropic::Models::Beta::BetaBrowserLeftClickInput, Anthropic::Models::Beta::BetaBrowserRightClickInput, Anthropic::Models::Beta::BetaBrowserMiddleClickInput, Anthropic::Models::Beta::BetaBrowserDoubleClickInput, Anthropic::Models::Beta::BetaBrowserTripleClickInput, Anthropic::Models::Beta::BetaBrowserHoverInput, Anthropic::Models::Beta::BetaBrowserLeftClickDragInput, Anthropic::Models::Beta::BetaBrowserLeftMouseDownInput, Anthropic::Models::Beta::BetaBrowserLeftMouseUpInput, Anthropic::Models::Beta::BetaBrowserMouseMoveInput, Anthropic::Models::Beta::BetaBrowserScrollInput, Anthropic::Models::Beta::BetaBrowserTypeInput, Anthropic::Models::Beta::BetaBrowserKeyInput, Anthropic::Models::Beta::BetaBrowserHoldKeyInput, Anthropic::Models::Beta::BetaBrowserWaitInput, Anthropic::Models::Beta::BetaBrowserJavascriptExecInput] :input Navigate to a URL, or go back/forward/reload in history. The protocol may be
128
+ #
129
+ # @option args [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] :caller_ Which party invoked the tool call: the model directly, or a server tool on its b
130
+ #
131
+ # @option args [Symbol, :browser] :toolset_name
132
+ #
133
+ # @option args [Symbol, :tool_use] :type
134
+ #
135
+ # @raise [ArgumentError]
136
+ # @return [Anthropic::Models::Beta::BetaBrowserNavigateToolUseBlock, Anthropic::Models::Beta::BetaBrowserListTabsToolUseBlock, Anthropic::Models::Beta::BetaBrowserNewTabToolUseBlock, Anthropic::Models::Beta::BetaBrowserSwitchTabToolUseBlock, Anthropic::Models::Beta::BetaBrowserCloseTabToolUseBlock, Anthropic::Models::Beta::BetaBrowserReadPageToolUseBlock, Anthropic::Models::Beta::BetaBrowserGetPageTextToolUseBlock, Anthropic::Models::Beta::BetaBrowserReadConsoleToolUseBlock, Anthropic::Models::Beta::BetaBrowserReadNetworkToolUseBlock, Anthropic::Models::Beta::BetaBrowserFindToolUseBlock, Anthropic::Models::Beta::BetaBrowserFormInputToolUseBlock, Anthropic::Models::Beta::BetaBrowserFileUploadToolUseBlock, Anthropic::Models::Beta::BetaBrowserScrollToToolUseBlock, Anthropic::Models::Beta::BetaBrowserScreenshotToolUseBlock, Anthropic::Models::Beta::BetaBrowserZoomToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserRightClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserMiddleClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserDoubleClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserTripleClickToolUseBlock, Anthropic::Models::Beta::BetaBrowserHoverToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftClickDragToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftMouseDownToolUseBlock, Anthropic::Models::Beta::BetaBrowserLeftMouseUpToolUseBlock, Anthropic::Models::Beta::BetaBrowserMouseMoveToolUseBlock, Anthropic::Models::Beta::BetaBrowserScrollToolUseBlock, Anthropic::Models::Beta::BetaBrowserTypeToolUseBlock, Anthropic::Models::Beta::BetaBrowserKeyToolUseBlock, Anthropic::Models::Beta::BetaBrowserHoldKeyToolUseBlock, Anthropic::Models::Beta::BetaBrowserWaitToolUseBlock, Anthropic::Models::Beta::BetaBrowserJavascriptExecToolUseBlock]
137
+ def self.new(name:, **args)
138
+ case name.to_sym
139
+ when :navigate
140
+ Anthropic::Beta::BetaBrowserNavigateToolUseBlock.new(**args)
141
+ when :list_tabs
142
+ Anthropic::Beta::BetaBrowserListTabsToolUseBlock.new(**args)
143
+ when :new_tab
144
+ Anthropic::Beta::BetaBrowserNewTabToolUseBlock.new(**args)
145
+ when :switch_tab
146
+ Anthropic::Beta::BetaBrowserSwitchTabToolUseBlock.new(**args)
147
+ when :close_tab
148
+ Anthropic::Beta::BetaBrowserCloseTabToolUseBlock.new(**args)
149
+ when :read_page
150
+ Anthropic::Beta::BetaBrowserReadPageToolUseBlock.new(**args)
151
+ when :get_page_text
152
+ Anthropic::Beta::BetaBrowserGetPageTextToolUseBlock.new(**args)
153
+ when :read_console
154
+ Anthropic::Beta::BetaBrowserReadConsoleToolUseBlock.new(**args)
155
+ when :read_network
156
+ Anthropic::Beta::BetaBrowserReadNetworkToolUseBlock.new(**args)
157
+ when :find
158
+ Anthropic::Beta::BetaBrowserFindToolUseBlock.new(**args)
159
+ when :form_input
160
+ Anthropic::Beta::BetaBrowserFormInputToolUseBlock.new(**args)
161
+ when :file_upload
162
+ Anthropic::Beta::BetaBrowserFileUploadToolUseBlock.new(**args)
163
+ when :scroll_to
164
+ Anthropic::Beta::BetaBrowserScrollToToolUseBlock.new(**args)
165
+ when :screenshot
166
+ Anthropic::Beta::BetaBrowserScreenshotToolUseBlock.new(**args)
167
+ when :zoom
168
+ Anthropic::Beta::BetaBrowserZoomToolUseBlock.new(**args)
169
+ when :left_click
170
+ Anthropic::Beta::BetaBrowserLeftClickToolUseBlock.new(**args)
171
+ when :right_click
172
+ Anthropic::Beta::BetaBrowserRightClickToolUseBlock.new(**args)
173
+ when :middle_click
174
+ Anthropic::Beta::BetaBrowserMiddleClickToolUseBlock.new(**args)
175
+ when :double_click
176
+ Anthropic::Beta::BetaBrowserDoubleClickToolUseBlock.new(**args)
177
+ when :triple_click
178
+ Anthropic::Beta::BetaBrowserTripleClickToolUseBlock.new(**args)
179
+ when :hover
180
+ Anthropic::Beta::BetaBrowserHoverToolUseBlock.new(**args)
181
+ when :left_click_drag
182
+ Anthropic::Beta::BetaBrowserLeftClickDragToolUseBlock.new(**args)
183
+ when :left_mouse_down
184
+ Anthropic::Beta::BetaBrowserLeftMouseDownToolUseBlock.new(**args)
185
+ when :left_mouse_up
186
+ Anthropic::Beta::BetaBrowserLeftMouseUpToolUseBlock.new(**args)
187
+ when :mouse_move
188
+ Anthropic::Beta::BetaBrowserMouseMoveToolUseBlock.new(**args)
189
+ when :scroll
190
+ Anthropic::Beta::BetaBrowserScrollToolUseBlock.new(**args)
191
+ when :type
192
+ Anthropic::Beta::BetaBrowserTypeToolUseBlock.new(**args)
193
+ when :key
194
+ Anthropic::Beta::BetaBrowserKeyToolUseBlock.new(**args)
195
+ when :hold_key
196
+ Anthropic::Beta::BetaBrowserHoldKeyToolUseBlock.new(**args)
197
+ when :wait
198
+ Anthropic::Beta::BetaBrowserWaitToolUseBlock.new(**args)
199
+ when :javascript_exec
200
+ Anthropic::Beta::BetaBrowserJavascriptExecToolUseBlock.new(**args)
201
+ else
202
+ raise ArgumentError, "unknown name: #{name}"
203
+ end
204
+ end
205
+ end
206
+ end
207
+
208
+ BetaBrowserToolUseBlock = Beta::BetaBrowserToolUseBlock
209
+ end
210
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserTripleClickInput < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute target
8
+ # Where to act: either a viewport coordinate or an element reference.
9
+ #
10
+ # @return [Anthropic::Models::Beta::BetaBrowserCoordinateTarget, Anthropic::Models::Beta::BetaBrowserRefTarget]
11
+ required :target, union: -> { Anthropic::Beta::BetaBrowserClickTarget }
12
+
13
+ # @!attribute modifiers
14
+ # Optional modifier key chord to hold for the duration of this action (e.g.
15
+ # "shift", "ctrl+shift", "cmd+alt").
16
+ #
17
+ # @return [String, nil]
18
+ optional :modifiers, String, nil?: true
19
+
20
+ # @!attribute tab_id
21
+ # Tab to act on. Defaults to the active tab when omitted.
22
+ #
23
+ # @return [String, nil]
24
+ optional :tab_id, String, nil?: true
25
+
26
+ # @!method initialize(target:, modifiers: nil, tab_id: nil)
27
+ # Triple left-click at a viewport coordinate or on an element by reference
28
+ # (typically selects a line or paragraph).
29
+ #
30
+ # Some parameter documentations has been truncated, see
31
+ # {Anthropic::Models::Beta::BetaBrowserTripleClickInput} for more details.
32
+ #
33
+ # @param target [Anthropic::Models::Beta::BetaBrowserCoordinateTarget, Anthropic::Models::Beta::BetaBrowserRefTarget] Where to act: either a viewport coordinate or an element reference.
34
+ #
35
+ # @param modifiers [String, nil] Optional modifier key chord to hold for the duration of this action (e.g. "shift
36
+ #
37
+ # @param tab_id [String, nil] Tab to act on. Defaults to the active tab when omitted.
38
+ end
39
+ end
40
+
41
+ BetaBrowserTripleClickInput = Beta::BetaBrowserTripleClickInput
42
+ end
43
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserTripleClickToolUseBlock < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute input
13
+ # Triple left-click at a viewport coordinate or on an element by reference
14
+ # (typically selects a line or paragraph).
15
+ #
16
+ # @return [Anthropic::Models::Beta::BetaBrowserTripleClickInput]
17
+ required :input, -> { Anthropic::Beta::BetaBrowserTripleClickInput }
18
+
19
+ # @!attribute name
20
+ #
21
+ # @return [Symbol, :triple_click]
22
+ required :name, const: :triple_click
23
+
24
+ # @!attribute toolset_name
25
+ #
26
+ # @return [Symbol, :browser]
27
+ required :toolset_name, const: :browser
28
+
29
+ # @!attribute type
30
+ #
31
+ # @return [Symbol, :tool_use]
32
+ required :type, const: :tool_use
33
+
34
+ # @!attribute caller_
35
+ # Which party invoked the tool call: the model directly, or a server tool on its
36
+ # behalf.
37
+ #
38
+ # @return [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120, nil]
39
+ optional :caller_, union: -> { Anthropic::Beta::BetaToolUseCaller }, api_name: :caller
40
+
41
+ # @!method initialize(id:, input:, caller_: nil, name: :triple_click, toolset_name: :browser, type: :tool_use)
42
+ # Some parameter documentations has been truncated, see
43
+ # {Anthropic::Models::Beta::BetaBrowserTripleClickToolUseBlock} for more details.
44
+ #
45
+ # @param id [String]
46
+ #
47
+ # @param input [Anthropic::Models::Beta::BetaBrowserTripleClickInput] Triple left-click at a viewport coordinate or on an element by reference
48
+ #
49
+ # @param caller_ [Anthropic::Models::Beta::BetaDirectCaller, Anthropic::Models::Beta::BetaServerToolCaller, Anthropic::Models::Beta::BetaServerToolCaller20260120] Which party invoked the tool call: the model directly, or a server tool on its b
50
+ #
51
+ # @param name [Symbol, :triple_click]
52
+ #
53
+ # @param toolset_name [Symbol, :browser]
54
+ #
55
+ # @param type [Symbol, :tool_use]
56
+ end
57
+ end
58
+
59
+ BetaBrowserTripleClickToolUseBlock = Beta::BetaBrowserTripleClickToolUseBlock
60
+ end
61
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Anthropic
4
+ module Models
5
+ module Beta
6
+ class BetaBrowserTypeInput < Anthropic::Internal::Type::BaseModel
7
+ # @!attribute text
8
+ # The text to type.
9
+ #
10
+ # @return [String]
11
+ required :text, String
12
+
13
+ # @!attribute tab_id
14
+ # Tab to act on. Defaults to the active tab when omitted.
15
+ #
16
+ # @return [String, nil]
17
+ optional :tab_id, String, nil?: true
18
+
19
+ # @!method initialize(text:, tab_id: nil)
20
+ # Type a literal string at the current focus.
21
+ #
22
+ # @param text [String] The text to type.
23
+ #
24
+ # @param tab_id [String, nil] Tab to act on. Defaults to the active tab when omitted.
25
+ end
26
+ end
27
+
28
+ BetaBrowserTypeInput = Beta::BetaBrowserTypeInput
29
+ end
30
+ end