anthropic 1.75.0 → 1.77.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +62 -0
- data/README.md +1 -1
- data/lib/anthropic/helpers/aws/client.rb +3 -2
- data/lib/anthropic/helpers/bedrock/client.rb +3 -2
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +3 -2
- data/lib/anthropic/helpers/google_cloud/client.rb +3 -2
- data/lib/anthropic/helpers/vertex/client.rb +3 -2
- data/lib/anthropic/internal/util.rb +8 -1
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/agent_create_params.rb +4 -5
- data/lib/anthropic/models/beta/agent_update_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_browser_click_target.rb +67 -0
- data/lib/anthropic/models/beta/beta_browser_close_tab_input.rb +22 -0
- data/lib/anthropic/models/beta/beta_browser_close_tab_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_coordinate_target.rb +38 -0
- data/lib/anthropic/models/beta/beta_browser_double_click_input.rb +42 -0
- data/lib/anthropic/models/beta/beta_browser_double_click_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_file_upload_input.rb +53 -0
- data/lib/anthropic/models/beta/beta_browser_file_upload_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_find_input.rb +31 -0
- data/lib/anthropic/models/beta/beta_browser_find_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_form_input_input.rb +44 -0
- data/lib/anthropic/models/beta/beta_browser_form_input_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_form_input_value.rb +22 -0
- data/lib/anthropic/models/beta/beta_browser_get_page_text_input.rb +23 -0
- data/lib/anthropic/models/beta/beta_browser_get_page_text_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_hold_key_input.rb +39 -0
- data/lib/anthropic/models/beta/beta_browser_hold_key_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_hover_input.rb +30 -0
- data/lib/anthropic/models/beta/beta_browser_hover_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_javascript_exec_input.rb +32 -0
- data/lib/anthropic/models/beta/beta_browser_javascript_exec_tool_use_block.rb +63 -0
- data/lib/anthropic/models/beta/beta_browser_key_input.rb +41 -0
- data/lib/anthropic/models/beta/beta_browser_key_tool_use_block.rb +63 -0
- data/lib/anthropic/models/beta/beta_browser_left_click_drag_input.rb +43 -0
- data/lib/anthropic/models/beta/beta_browser_left_click_drag_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_left_click_input.rb +42 -0
- data/lib/anthropic/models/beta/beta_browser_left_click_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_left_mouse_down_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_browser_left_mouse_down_tool_use_block.rb +62 -0
- data/lib/anthropic/models/beta/beta_browser_left_mouse_up_input.rb +34 -0
- data/lib/anthropic/models/beta/beta_browser_left_mouse_up_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_list_tabs_input.rb +14 -0
- data/lib/anthropic/models/beta/beta_browser_list_tabs_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_middle_click_input.rb +42 -0
- data/lib/anthropic/models/beta/beta_browser_middle_click_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_mouse_move_input.rb +34 -0
- data/lib/anthropic/models/beta/beta_browser_mouse_move_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_navigate_input.rb +34 -0
- data/lib/anthropic/models/beta/beta_browser_navigate_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_new_tab_input.rb +14 -0
- data/lib/anthropic/models/beta/beta_browser_new_tab_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_read_console_input.rb +24 -0
- data/lib/anthropic/models/beta/beta_browser_read_console_tool_use_block.rb +62 -0
- data/lib/anthropic/models/beta/beta_browser_read_network_input.rb +24 -0
- data/lib/anthropic/models/beta/beta_browser_read_network_tool_use_block.rb +62 -0
- data/lib/anthropic/models/beta/beta_browser_read_page_filter.rb +19 -0
- data/lib/anthropic/models/beta/beta_browser_read_page_input.rb +53 -0
- data/lib/anthropic/models/beta/beta_browser_read_page_tool_use_block.rb +63 -0
- data/lib/anthropic/models/beta/beta_browser_ref_target.rb +35 -0
- data/lib/anthropic/models/beta/beta_browser_right_click_input.rb +42 -0
- data/lib/anthropic/models/beta/beta_browser_right_click_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_screenshot_input.rb +22 -0
- data/lib/anthropic/models/beta/beta_browser_screenshot_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_direction.rb +21 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_input.rb +49 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_to_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_to_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_switch_tab_input.rb +23 -0
- data/lib/anthropic/models/beta/beta_browser_switch_tab_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_tool_use_block.rb +210 -0
- data/lib/anthropic/models/beta/beta_browser_triple_click_input.rb +43 -0
- data/lib/anthropic/models/beta/beta_browser_triple_click_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_browser_type_input.rb +30 -0
- data/lib/anthropic/models/beta/beta_browser_type_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_wait_input.rb +30 -0
- data/lib/anthropic/models/beta/beta_browser_wait_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_browser_zoom_input.rb +32 -0
- data/lib/anthropic/models/beta/beta_browser_zoom_tool_use_block.rb +62 -0
- data/lib/anthropic/models/beta/beta_computer_cursor_position_input.rb +14 -0
- data/lib/anthropic/models/beta/beta_computer_cursor_position_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_double_click_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_computer_double_click_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_hold_key_input.rb +31 -0
- data/lib/anthropic/models/beta/beta_computer_hold_key_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_key_input.rb +34 -0
- data/lib/anthropic/models/beta/beta_computer_key_tool_use_block.rb +64 -0
- data/lib/anthropic/models/beta/beta_computer_left_click_drag_input.rb +42 -0
- data/lib/anthropic/models/beta/beta_computer_left_click_drag_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_left_click_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_computer_left_click_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_left_mouse_down_input.rb +14 -0
- data/lib/anthropic/models/beta/beta_computer_left_mouse_down_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_left_mouse_up_input.rb +14 -0
- data/lib/anthropic/models/beta/beta_computer_left_mouse_up_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_computer_middle_click_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_computer_middle_click_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_mouse_move_input.rb +23 -0
- data/lib/anthropic/models/beta/beta_computer_mouse_move_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_right_click_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_computer_right_click_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_screenshot_input.rb +14 -0
- data/lib/anthropic/models/beta/beta_computer_screenshot_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_computer_scroll_direction.rb +21 -0
- data/lib/anthropic/models/beta/beta_computer_scroll_input.rb +51 -0
- data/lib/anthropic/models/beta/beta_computer_scroll_tool_use_block.rb +62 -0
- data/lib/anthropic/models/beta/beta_computer_tool_use_block.rb +140 -0
- data/lib/anthropic/models/beta/beta_computer_triple_click_input.rb +35 -0
- data/lib/anthropic/models/beta/beta_computer_triple_click_tool_use_block.rb +61 -0
- data/lib/anthropic/models/beta/beta_computer_type_input.rb +22 -0
- data/lib/anthropic/models/beta/beta_computer_type_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_computer_wait_input.rb +22 -0
- data/lib/anthropic/models/beta/beta_computer_wait_tool_use_block.rb +60 -0
- data/lib/anthropic/models/beta/beta_computer_zoom_input.rb +24 -0
- data/lib/anthropic/models/beta/beta_computer_zoom_tool_use_block.rb +62 -0
- data/lib/anthropic/models/beta/beta_managed_agents_advisor_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +5 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +2 -0
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +13 -0
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +1 -2
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +13 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +9 -1
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_all.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_except.rb +37 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_none.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_only.rb +36 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_shorthand.rb +21 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter.rb +73 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter_params.rb +26 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_reference.rb +35 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input.rb +55 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input_params.rb +26 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources.rb +51 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources_params.rb +57 -0
- data/lib/anthropic/models/beta/beta_model_capabilities.rb +17 -3
- data/lib/anthropic/models/beta/beta_model_info.rb +71 -1
- data/lib/anthropic/models/beta/beta_model_line.rb +24 -0
- data/lib/anthropic/models/beta/beta_server_tools_capability.rb +43 -0
- data/lib/anthropic/models/beta/beta_thinking_types.rb +22 -6
- data/lib/anthropic/models/beta/beta_tool_use_caller.rb +63 -0
- data/lib/anthropic/models/beta/beta_toolset_tool_use_block.rb +22 -0
- data/lib/anthropic/models/beta/model_list_params.rb +24 -1
- data/lib/anthropic/models/beta/organization/beta_rbac_role.rb +16 -3
- data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +11 -1
- data/lib/anthropic/models/beta/organization/federation/beta_federation_rule.rb +4 -3
- data/lib/anthropic/models/beta/organization/spend_limit_list_params.rb +75 -0
- data/lib/anthropic/models/beta/organization/spend_limit_set_params.rb +9 -1
- data/lib/anthropic/models/beta/organization/workspace_list_params.rb +9 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +1 -1
- data/lib/anthropic/models/browser_click_target.rb +63 -0
- data/lib/anthropic/models/browser_close_tab_input.rb +18 -0
- data/lib/anthropic/models/browser_close_tab_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_coordinate_target.rb +34 -0
- data/lib/anthropic/models/browser_double_click_input.rb +38 -0
- data/lib/anthropic/models/browser_double_click_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_file_upload_input.rb +49 -0
- data/lib/anthropic/models/browser_file_upload_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_find_input.rb +27 -0
- data/lib/anthropic/models/browser_find_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_form_input_input.rb +40 -0
- data/lib/anthropic/models/browser_form_input_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_form_input_value.rb +18 -0
- data/lib/anthropic/models/browser_get_page_text_input.rb +19 -0
- data/lib/anthropic/models/browser_get_page_text_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_hold_key_input.rb +35 -0
- data/lib/anthropic/models/browser_hold_key_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_hover_input.rb +26 -0
- data/lib/anthropic/models/browser_hover_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_javascript_exec_input.rb +28 -0
- data/lib/anthropic/models/browser_javascript_exec_tool_use_block.rb +58 -0
- data/lib/anthropic/models/browser_key_input.rb +37 -0
- data/lib/anthropic/models/browser_key_tool_use_block.rb +59 -0
- data/lib/anthropic/models/browser_left_click_drag_input.rb +39 -0
- data/lib/anthropic/models/browser_left_click_drag_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_left_click_input.rb +38 -0
- data/lib/anthropic/models/browser_left_click_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_left_mouse_down_input.rb +31 -0
- data/lib/anthropic/models/browser_left_mouse_down_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_left_mouse_up_input.rb +30 -0
- data/lib/anthropic/models/browser_left_mouse_up_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_list_tabs_input.rb +10 -0
- data/lib/anthropic/models/browser_list_tabs_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_middle_click_input.rb +38 -0
- data/lib/anthropic/models/browser_middle_click_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_mouse_move_input.rb +30 -0
- data/lib/anthropic/models/browser_mouse_move_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_navigate_input.rb +30 -0
- data/lib/anthropic/models/browser_navigate_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_new_tab_input.rb +10 -0
- data/lib/anthropic/models/browser_new_tab_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_read_console_input.rb +20 -0
- data/lib/anthropic/models/browser_read_console_tool_use_block.rb +58 -0
- data/lib/anthropic/models/browser_read_network_input.rb +20 -0
- data/lib/anthropic/models/browser_read_network_tool_use_block.rb +58 -0
- data/lib/anthropic/models/browser_read_page_filter.rb +15 -0
- data/lib/anthropic/models/browser_read_page_input.rb +49 -0
- data/lib/anthropic/models/browser_read_page_tool_use_block.rb +59 -0
- data/lib/anthropic/models/browser_ref_target.rb +31 -0
- data/lib/anthropic/models/browser_right_click_input.rb +38 -0
- data/lib/anthropic/models/browser_right_click_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_screenshot_input.rb +18 -0
- data/lib/anthropic/models/browser_screenshot_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_scroll_direction.rb +17 -0
- data/lib/anthropic/models/browser_scroll_input.rb +45 -0
- data/lib/anthropic/models/browser_scroll_to_input.rb +31 -0
- data/lib/anthropic/models/browser_scroll_to_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_scroll_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_switch_tab_input.rb +19 -0
- data/lib/anthropic/models/browser_switch_tab_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_tool_use_block.rb +206 -0
- data/lib/anthropic/models/browser_triple_click_input.rb +39 -0
- data/lib/anthropic/models/browser_triple_click_tool_use_block.rb +57 -0
- data/lib/anthropic/models/browser_type_input.rb +26 -0
- data/lib/anthropic/models/browser_type_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_wait_input.rb +26 -0
- data/lib/anthropic/models/browser_wait_tool_use_block.rb +56 -0
- data/lib/anthropic/models/browser_zoom_input.rb +28 -0
- data/lib/anthropic/models/browser_zoom_tool_use_block.rb +58 -0
- data/lib/anthropic/models/computer_cursor_position_input.rb +10 -0
- data/lib/anthropic/models/computer_cursor_position_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_double_click_input.rb +31 -0
- data/lib/anthropic/models/computer_double_click_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_hold_key_input.rb +27 -0
- data/lib/anthropic/models/computer_hold_key_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_key_input.rb +30 -0
- data/lib/anthropic/models/computer_key_tool_use_block.rb +60 -0
- data/lib/anthropic/models/computer_left_click_drag_input.rb +38 -0
- data/lib/anthropic/models/computer_left_click_drag_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_left_click_input.rb +31 -0
- data/lib/anthropic/models/computer_left_click_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_left_mouse_down_input.rb +10 -0
- data/lib/anthropic/models/computer_left_mouse_down_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_left_mouse_up_input.rb +10 -0
- data/lib/anthropic/models/computer_left_mouse_up_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_middle_click_input.rb +31 -0
- data/lib/anthropic/models/computer_middle_click_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_mouse_move_input.rb +19 -0
- data/lib/anthropic/models/computer_mouse_move_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_right_click_input.rb +31 -0
- data/lib/anthropic/models/computer_right_click_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_screenshot_input.rb +10 -0
- data/lib/anthropic/models/computer_screenshot_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_scroll_direction.rb +17 -0
- data/lib/anthropic/models/computer_scroll_input.rb +47 -0
- data/lib/anthropic/models/computer_scroll_tool_use_block.rb +58 -0
- data/lib/anthropic/models/computer_tool_use_block.rb +136 -0
- data/lib/anthropic/models/computer_triple_click_input.rb +31 -0
- data/lib/anthropic/models/computer_triple_click_tool_use_block.rb +57 -0
- data/lib/anthropic/models/computer_type_input.rb +18 -0
- data/lib/anthropic/models/computer_type_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_wait_input.rb +18 -0
- data/lib/anthropic/models/computer_wait_tool_use_block.rb +56 -0
- data/lib/anthropic/models/computer_zoom_input.rb +20 -0
- data/lib/anthropic/models/computer_zoom_tool_use_block.rb +58 -0
- data/lib/anthropic/models/model.rb +13 -0
- data/lib/anthropic/models/model_capabilities.rb +20 -3
- data/lib/anthropic/models/model_info.rb +71 -1
- data/lib/anthropic/models/model_line.rb +20 -0
- data/lib/anthropic/models/model_list_params.rb +24 -1
- data/lib/anthropic/models/organization/federation/federation_rule.rb +4 -3
- data/lib/anthropic/models/organization/workspace_list_params.rb +9 -1
- data/lib/anthropic/models/server_tools_capability.rb +39 -0
- data/lib/anthropic/models/thinking_types.rb +22 -6
- data/lib/anthropic/models/tool_use_caller.rb +59 -0
- data/lib/anthropic/models/toolset_tool_use_block.rb +18 -0
- data/lib/anthropic/models.rb +218 -0
- data/lib/anthropic/resources/beta/agents.rb +2 -2
- data/lib/anthropic/resources/beta/messages.rb +6 -4
- data/lib/anthropic/resources/beta/models.rb +4 -2
- data/lib/anthropic/resources/beta/organization/analytics/summaries.rb +6 -7
- data/lib/anthropic/resources/beta/organization/rate_limits.rb +2 -2
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +49 -5
- data/lib/anthropic/resources/beta/organization/workspaces.rb +3 -1
- data/lib/anthropic/resources/completions.rb +6 -0
- data/lib/anthropic/resources/messages.rb +1 -3
- data/lib/anthropic/resources/models.rb +4 -2
- data/lib/anthropic/resources/organization/rate_limits.rb +2 -2
- data/lib/anthropic/resources/organization/workspaces.rb +3 -1
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +231 -0
- data/rbi/anthropic/helpers/aws/client.rbi +4 -2
- data/rbi/anthropic/helpers/bedrock/client.rbi +4 -2
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +4 -2
- data/rbi/anthropic/helpers/google_cloud/client.rbi +4 -2
- data/rbi/anthropic/helpers/vertex/client.rbi +4 -2
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/beta/agent_create_params.rbi +4 -6
- data/rbi/anthropic/models/beta/agent_update_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_browser_click_target.rbi +83 -0
- data/rbi/anthropic/models/beta/beta_browser_close_tab_input.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_browser_close_tab_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_coordinate_target.rbi +50 -0
- data/rbi/anthropic/models/beta/beta_browser_double_click_input.rbi +67 -0
- data/rbi/anthropic/models/beta/beta_browser_double_click_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_browser_file_upload_input.rbi +81 -0
- data/rbi/anthropic/models/beta/beta_browser_file_upload_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_browser_find_input.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_browser_find_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_form_input_input.rbi +71 -0
- data/rbi/anthropic/models/beta/beta_browser_form_input_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_form_input_value.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_browser_get_page_text_input.rbi +36 -0
- data/rbi/anthropic/models/beta/beta_browser_get_page_text_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_browser_hold_key_input.rbi +58 -0
- data/rbi/anthropic/models/beta/beta_browser_hold_key_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_hover_input.rbi +57 -0
- data/rbi/anthropic/models/beta/beta_browser_hover_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_javascript_exec_input.rbi +47 -0
- data/rbi/anthropic/models/beta/beta_browser_javascript_exec_tool_use_block.rbi +107 -0
- data/rbi/anthropic/models/beta/beta_browser_key_input.rbi +64 -0
- data/rbi/anthropic/models/beta/beta_browser_key_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_browser_left_click_drag_input.rbi +79 -0
- data/rbi/anthropic/models/beta/beta_browser_left_click_drag_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_browser_left_click_input.rbi +67 -0
- data/rbi/anthropic/models/beta/beta_browser_left_click_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_left_mouse_down_input.rbi +63 -0
- data/rbi/anthropic/models/beta/beta_browser_left_mouse_down_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_browser_left_mouse_up_input.rbi +62 -0
- data/rbi/anthropic/models/beta/beta_browser_left_mouse_up_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_browser_list_tabs_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_browser_list_tabs_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_middle_click_input.rbi +67 -0
- data/rbi/anthropic/models/beta/beta_browser_middle_click_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_browser_mouse_move_input.rbi +62 -0
- data/rbi/anthropic/models/beta/beta_browser_mouse_move_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_navigate_input.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_browser_navigate_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_new_tab_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_browser_new_tab_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_read_console_input.rbi +37 -0
- data/rbi/anthropic/models/beta/beta_browser_read_console_tool_use_block.rbi +107 -0
- data/rbi/anthropic/models/beta/beta_browser_read_network_input.rbi +37 -0
- data/rbi/anthropic/models/beta/beta_browser_read_network_tool_use_block.rbi +107 -0
- data/rbi/anthropic/models/beta/beta_browser_read_page_filter.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_browser_read_page_input.rbi +82 -0
- data/rbi/anthropic/models/beta/beta_browser_read_page_tool_use_block.rbi +106 -0
- data/rbi/anthropic/models/beta/beta_browser_ref_target.rbi +43 -0
- data/rbi/anthropic/models/beta/beta_browser_right_click_input.rbi +67 -0
- data/rbi/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_screenshot_input.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_browser_screenshot_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_direction.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_input.rbi +80 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_to_input.rbi +62 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_to_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_switch_tab_input.rbi +36 -0
- data/rbi/anthropic/models/beta/beta_browser_switch_tab_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_browser_tool_use_block.rbi +298 -0
- data/rbi/anthropic/models/beta/beta_browser_triple_click_input.rbi +68 -0
- data/rbi/anthropic/models/beta/beta_browser_triple_click_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_browser_type_input.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_browser_type_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_wait_input.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_browser_wait_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_browser_zoom_input.rbi +51 -0
- data/rbi/anthropic/models/beta/beta_browser_zoom_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_computer_cursor_position_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_computer_cursor_position_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_computer_double_click_input.rbi +56 -0
- data/rbi/anthropic/models/beta/beta_computer_double_click_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_computer_hold_key_input.rbi +44 -0
- data/rbi/anthropic/models/beta/beta_computer_hold_key_tool_use_block.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_computer_key_input.rbi +49 -0
- data/rbi/anthropic/models/beta/beta_computer_key_tool_use_block.rbi +108 -0
- data/rbi/anthropic/models/beta/beta_computer_left_click_drag_input.rbi +63 -0
- data/rbi/anthropic/models/beta/beta_computer_left_click_drag_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_computer_left_click_input.rbi +56 -0
- data/rbi/anthropic/models/beta/beta_computer_left_click_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_computer_left_mouse_down_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_computer_left_mouse_down_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_computer_left_mouse_up_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_computer_left_mouse_up_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_computer_middle_click_input.rbi +56 -0
- data/rbi/anthropic/models/beta/beta_computer_middle_click_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_computer_mouse_move_input.rbi +36 -0
- data/rbi/anthropic/models/beta/beta_computer_mouse_move_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_computer_right_click_input.rbi +56 -0
- data/rbi/anthropic/models/beta/beta_computer_right_click_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_computer_screenshot_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_computer_screenshot_tool_use_block.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_computer_scroll_direction.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_computer_scroll_input.rbi +75 -0
- data/rbi/anthropic/models/beta/beta_computer_scroll_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_computer_tool_use_block.rbi +203 -0
- data/rbi/anthropic/models/beta/beta_computer_triple_click_input.rbi +56 -0
- data/rbi/anthropic/models/beta/beta_computer_triple_click_tool_use_block.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_computer_type_input.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_computer_type_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_computer_wait_input.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_computer_wait_tool_use_block.rbi +100 -0
- data/rbi/anthropic/models/beta/beta_computer_zoom_input.rbi +37 -0
- data/rbi/anthropic/models/beta/beta_computer_zoom_tool_use_block.rbi +104 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_advisor_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +1 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +31 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_all.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_except.rbi +69 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_none.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_only.rbi +68 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_shorthand.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter.rbi +102 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter_params.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_reference.rbi +44 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input.rbi +80 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input_params.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources.rbi +118 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources_params.rbi +160 -0
- data/rbi/anthropic/models/beta/beta_model_capabilities.rbi +29 -2
- data/rbi/anthropic/models/beta/beta_model_info.rbi +108 -0
- data/rbi/anthropic/models/beta/beta_model_line.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_server_tools_capability.rbi +79 -0
- data/rbi/anthropic/models/beta/beta_thinking_types.rbi +27 -5
- data/rbi/anthropic/models/beta/beta_tool_use_caller.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_toolset_tool_use_block.rbi +30 -0
- data/rbi/anthropic/models/beta/model_list_params.rbi +66 -0
- data/rbi/anthropic/models/beta/organization/beta_rbac_role.rbi +16 -2
- data/rbi/anthropic/models/beta/organization/beta_spend_limit.rbi +12 -0
- data/rbi/anthropic/models/beta/organization/federation/beta_federation_rule.rbi +6 -4
- data/rbi/anthropic/models/beta/organization/spend_limit_list_params.rbi +172 -0
- data/rbi/anthropic/models/beta/organization/spend_limit_set_params.rbi +23 -0
- data/rbi/anthropic/models/beta/organization/workspace_list_params.rbi +11 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +1 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_created_event.rbi +2 -2
- data/rbi/anthropic/models/browser_click_target.rbi +63 -0
- data/rbi/anthropic/models/browser_close_tab_input.rbi +28 -0
- data/rbi/anthropic/models/browser_close_tab_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_coordinate_target.rbi +44 -0
- data/rbi/anthropic/models/browser_double_click_input.rbi +63 -0
- data/rbi/anthropic/models/browser_double_click_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_file_upload_input.rbi +72 -0
- data/rbi/anthropic/models/browser_file_upload_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_find_input.rbi +39 -0
- data/rbi/anthropic/models/browser_find_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_form_input_input.rbi +62 -0
- data/rbi/anthropic/models/browser_form_input_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_form_input_value.rbi +17 -0
- data/rbi/anthropic/models/browser_get_page_text_input.rbi +32 -0
- data/rbi/anthropic/models/browser_get_page_text_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_hold_key_input.rbi +51 -0
- data/rbi/anthropic/models/browser_hold_key_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_hover_input.rbi +50 -0
- data/rbi/anthropic/models/browser_hover_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_javascript_exec_input.rbi +43 -0
- data/rbi/anthropic/models/browser_javascript_exec_tool_use_block.rbi +86 -0
- data/rbi/anthropic/models/browser_key_input.rbi +57 -0
- data/rbi/anthropic/models/browser_key_tool_use_block.rbi +85 -0
- data/rbi/anthropic/models/browser_left_click_drag_input.rbi +67 -0
- data/rbi/anthropic/models/browser_left_click_drag_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_left_click_input.rbi +60 -0
- data/rbi/anthropic/models/browser_left_click_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_left_mouse_down_input.rbi +55 -0
- data/rbi/anthropic/models/browser_left_mouse_down_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_left_mouse_up_input.rbi +54 -0
- data/rbi/anthropic/models/browser_left_mouse_up_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_list_tabs_input.rbi +21 -0
- data/rbi/anthropic/models/browser_list_tabs_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_middle_click_input.rbi +63 -0
- data/rbi/anthropic/models/browser_middle_click_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_mouse_move_input.rbi +51 -0
- data/rbi/anthropic/models/browser_mouse_move_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_navigate_input.rbi +37 -0
- data/rbi/anthropic/models/browser_navigate_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_new_tab_input.rbi +21 -0
- data/rbi/anthropic/models/browser_new_tab_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_read_console_input.rbi +33 -0
- data/rbi/anthropic/models/browser_read_console_tool_use_block.rbi +86 -0
- data/rbi/anthropic/models/browser_read_network_input.rbi +33 -0
- data/rbi/anthropic/models/browser_read_network_tool_use_block.rbi +86 -0
- data/rbi/anthropic/models/browser_read_page_filter.rbi +25 -0
- data/rbi/anthropic/models/browser_read_page_input.rbi +67 -0
- data/rbi/anthropic/models/browser_read_page_tool_use_block.rbi +88 -0
- data/rbi/anthropic/models/browser_ref_target.rbi +36 -0
- data/rbi/anthropic/models/browser_right_click_input.rbi +60 -0
- data/rbi/anthropic/models/browser_right_click_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_screenshot_input.rbi +28 -0
- data/rbi/anthropic/models/browser_screenshot_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_scroll_direction.rbi +26 -0
- data/rbi/anthropic/models/browser_scroll_input.rbi +65 -0
- data/rbi/anthropic/models/browser_scroll_to_input.rbi +50 -0
- data/rbi/anthropic/models/browser_scroll_to_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_scroll_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_switch_tab_input.rbi +29 -0
- data/rbi/anthropic/models/browser_switch_tab_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_tool_use_block.rbi +226 -0
- data/rbi/anthropic/models/browser_triple_click_input.rbi +64 -0
- data/rbi/anthropic/models/browser_triple_click_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/browser_type_input.rbi +38 -0
- data/rbi/anthropic/models/browser_type_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_wait_input.rbi +38 -0
- data/rbi/anthropic/models/browser_wait_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/browser_zoom_input.rbi +44 -0
- data/rbi/anthropic/models/browser_zoom_tool_use_block.rbi +86 -0
- data/rbi/anthropic/models/computer_cursor_position_input.rbi +24 -0
- data/rbi/anthropic/models/computer_cursor_position_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_double_click_input.rbi +49 -0
- data/rbi/anthropic/models/computer_double_click_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_hold_key_input.rbi +35 -0
- data/rbi/anthropic/models/computer_hold_key_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_key_input.rbi +42 -0
- data/rbi/anthropic/models/computer_key_tool_use_block.rbi +90 -0
- data/rbi/anthropic/models/computer_left_click_drag_input.rbi +59 -0
- data/rbi/anthropic/models/computer_left_click_drag_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_left_click_input.rbi +46 -0
- data/rbi/anthropic/models/computer_left_click_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_left_mouse_down_input.rbi +24 -0
- data/rbi/anthropic/models/computer_left_mouse_down_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_left_mouse_up_input.rbi +24 -0
- data/rbi/anthropic/models/computer_left_mouse_up_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_middle_click_input.rbi +49 -0
- data/rbi/anthropic/models/computer_middle_click_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_mouse_move_input.rbi +29 -0
- data/rbi/anthropic/models/computer_mouse_move_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_right_click_input.rbi +49 -0
- data/rbi/anthropic/models/computer_right_click_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_screenshot_input.rbi +24 -0
- data/rbi/anthropic/models/computer_screenshot_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_scroll_direction.rbi +26 -0
- data/rbi/anthropic/models/computer_scroll_input.rbi +64 -0
- data/rbi/anthropic/models/computer_scroll_tool_use_block.rbi +86 -0
- data/rbi/anthropic/models/computer_tool_use_block.rbi +171 -0
- data/rbi/anthropic/models/computer_triple_click_input.rbi +49 -0
- data/rbi/anthropic/models/computer_triple_click_tool_use_block.rbi +84 -0
- data/rbi/anthropic/models/computer_type_input.rbi +28 -0
- data/rbi/anthropic/models/computer_type_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_wait_input.rbi +28 -0
- data/rbi/anthropic/models/computer_wait_tool_use_block.rbi +82 -0
- data/rbi/anthropic/models/computer_zoom_input.rbi +30 -0
- data/rbi/anthropic/models/computer_zoom_tool_use_block.rbi +86 -0
- data/rbi/anthropic/models/model.rbi +4 -0
- data/rbi/anthropic/models/model_capabilities.rbi +27 -2
- data/rbi/anthropic/models/model_info.rbi +94 -0
- data/rbi/anthropic/models/model_line.rbi +24 -0
- data/rbi/anthropic/models/model_list_params.rbi +52 -0
- data/rbi/anthropic/models/organization/federation/federation_rule.rbi +6 -4
- data/rbi/anthropic/models/organization/workspace_list_params.rbi +11 -0
- data/rbi/anthropic/models/server_tools_capability.rbi +64 -0
- data/rbi/anthropic/models/thinking_types.rbi +25 -5
- data/rbi/anthropic/models/tool_use_caller.rbi +63 -0
- data/rbi/anthropic/models/toolset_tool_use_block.rbi +24 -0
- data/rbi/anthropic/models.rbi +242 -0
- data/rbi/anthropic/resources/beta/agents.rbi +3 -4
- data/rbi/anthropic/resources/beta/messages.rbi +5 -0
- data/rbi/anthropic/resources/beta/models.rbi +7 -0
- data/rbi/anthropic/resources/beta/organization/analytics/summaries.rbi +6 -7
- data/rbi/anthropic/resources/beta/organization/rate_limits.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +56 -9
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +3 -0
- data/rbi/anthropic/resources/messages.rbi +16 -0
- data/rbi/anthropic/resources/models.rbi +6 -0
- data/rbi/anthropic/resources/organization/rate_limits.rbi +2 -2
- data/rbi/anthropic/resources/organization/workspaces.rbi +3 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +1 -1
- data/sig/anthropic/helpers/google_cloud/client.rbs +1 -1
- data/sig/anthropic/helpers/vertex/client.rbs +1 -1
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_browser_click_target.rbs +46 -0
- data/sig/anthropic/models/beta/beta_browser_close_tab_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_browser_close_tab_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_coordinate_target.rbs +22 -0
- data/sig/anthropic/models/beta/beta_browser_double_click_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_double_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_file_upload_input.rbs +39 -0
- data/sig/anthropic/models/beta/beta_browser_file_upload_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_find_input.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_find_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_form_input_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_form_input_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_form_input_value.rbs +15 -0
- data/sig/anthropic/models/beta/beta_browser_get_page_text_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_browser_get_page_text_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_hold_key_input.rbs +26 -0
- data/sig/anthropic/models/beta/beta_browser_hold_key_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_hover_input.rbs +29 -0
- data/sig/anthropic/models/beta/beta_browser_hover_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_javascript_exec_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_javascript_exec_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_key_input.rbs +26 -0
- data/sig/anthropic/models/beta/beta_browser_key_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_left_click_drag_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_left_click_drag_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_left_click_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_left_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_left_mouse_down_input.rbs +29 -0
- data/sig/anthropic/models/beta/beta_browser_left_mouse_down_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_left_mouse_up_input.rbs +29 -0
- data/sig/anthropic/models/beta/beta_browser_left_mouse_up_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_list_tabs_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_browser_list_tabs_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_middle_click_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_middle_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_mouse_move_input.rbs +29 -0
- data/sig/anthropic/models/beta/beta_browser_mouse_move_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_navigate_input.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_navigate_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_new_tab_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_browser_new_tab_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_read_console_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_browser_read_console_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_read_network_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_browser_read_network_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_read_page_filter.rbs +18 -0
- data/sig/anthropic/models/beta/beta_browser_read_page_input.rbs +39 -0
- data/sig/anthropic/models/beta/beta_browser_read_page_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_ref_target.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_right_click_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_right_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_screenshot_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_browser_screenshot_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_direction.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_input.rbs +39 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_to_input.rbs +26 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_to_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_switch_tab_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_browser_switch_tab_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_tool_use_block.rbs +406 -0
- data/sig/anthropic/models/beta/beta_browser_triple_click_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_browser_triple_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_type_input.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_type_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_wait_input.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_wait_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_browser_zoom_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_zoom_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_cursor_position_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_computer_cursor_position_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_double_click_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_double_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_hold_key_input.rbs +19 -0
- data/sig/anthropic/models/beta/beta_computer_hold_key_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_key_input.rbs +19 -0
- data/sig/anthropic/models/beta/beta_computer_key_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_left_click_drag_input.rbs +34 -0
- data/sig/anthropic/models/beta/beta_computer_left_click_drag_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_left_click_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_left_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_left_mouse_down_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_computer_left_mouse_down_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_left_mouse_up_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_computer_left_mouse_up_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_middle_click_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_middle_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_mouse_move_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_computer_mouse_move_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_right_click_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_right_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_screenshot_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_computer_screenshot_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_scroll_direction.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_scroll_input.rbs +39 -0
- data/sig/anthropic/models/beta/beta_computer_scroll_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_tool_use_block.rbs +238 -0
- data/sig/anthropic/models/beta/beta_computer_triple_click_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_triple_click_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_type_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_computer_type_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_wait_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_computer_wait_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_computer_zoom_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_computer_zoom_tool_use_block.rbs +53 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +2 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +2 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +7 -2
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_all.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_except.rbs +29 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_none.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_only.rbs +29 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_shorthand.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter.rbs +53 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_filter_params.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_tool_reference.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input.rbs +40 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_source_user_input_params.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources.rbs +34 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_url_sources_params.rbs +34 -0
- data/sig/anthropic/models/beta/beta_model_capabilities.rbs +5 -0
- data/sig/anthropic/models/beta/beta_model_info.rbs +32 -0
- data/sig/anthropic/models/beta/beta_model_line.rbs +21 -0
- data/sig/anthropic/models/beta/beta_server_tools_capability.rbs +34 -0
- data/sig/anthropic/models/beta/beta_thinking_types.rbs +5 -0
- data/sig/anthropic/models/beta/beta_tool_use_caller.rbs +46 -0
- data/sig/anthropic/models/beta/beta_toolset_tool_use_block.rbs +18 -0
- data/sig/anthropic/models/beta/model_list_params.rbs +21 -0
- data/sig/anthropic/models/beta/organization/beta_rbac_role.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_spend_limit.rbs +5 -0
- data/sig/anthropic/models/beta/organization/spend_limit_list_params.rbs +72 -0
- data/sig/anthropic/models/beta/organization/spend_limit_set_params.rbs +10 -1
- data/sig/anthropic/models/beta/organization/workspace_list_params.rbs +7 -0
- data/sig/anthropic/models/browser_click_target.rbs +37 -0
- data/sig/anthropic/models/browser_close_tab_input.rbs +13 -0
- data/sig/anthropic/models/browser_close_tab_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_coordinate_target.rbs +18 -0
- data/sig/anthropic/models/browser_double_click_input.rbs +30 -0
- data/sig/anthropic/models/browser_double_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_file_upload_input.rbs +35 -0
- data/sig/anthropic/models/browser_file_upload_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_find_input.rbs +15 -0
- data/sig/anthropic/models/browser_find_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_form_input_input.rbs +30 -0
- data/sig/anthropic/models/browser_form_input_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_form_input_value.rbs +11 -0
- data/sig/anthropic/models/browser_get_page_text_input.rbs +13 -0
- data/sig/anthropic/models/browser_get_page_text_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_hold_key_input.rbs +18 -0
- data/sig/anthropic/models/browser_hold_key_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_hover_input.rbs +22 -0
- data/sig/anthropic/models/browser_hover_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_javascript_exec_input.rbs +15 -0
- data/sig/anthropic/models/browser_javascript_exec_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_key_input.rbs +21 -0
- data/sig/anthropic/models/browser_key_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_left_click_drag_input.rbs +30 -0
- data/sig/anthropic/models/browser_left_click_drag_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_left_click_input.rbs +30 -0
- data/sig/anthropic/models/browser_left_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_left_mouse_down_input.rbs +22 -0
- data/sig/anthropic/models/browser_left_mouse_down_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_left_mouse_up_input.rbs +22 -0
- data/sig/anthropic/models/browser_left_mouse_up_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_list_tabs_input.rbs +11 -0
- data/sig/anthropic/models/browser_list_tabs_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_middle_click_input.rbs +30 -0
- data/sig/anthropic/models/browser_middle_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_mouse_move_input.rbs +22 -0
- data/sig/anthropic/models/browser_mouse_move_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_navigate_input.rbs +15 -0
- data/sig/anthropic/models/browser_navigate_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_new_tab_input.rbs +11 -0
- data/sig/anthropic/models/browser_new_tab_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_read_console_input.rbs +13 -0
- data/sig/anthropic/models/browser_read_console_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_read_network_input.rbs +13 -0
- data/sig/anthropic/models/browser_read_network_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_read_page_filter.rbs +14 -0
- data/sig/anthropic/models/browser_read_page_input.rbs +35 -0
- data/sig/anthropic/models/browser_read_page_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_ref_target.rbs +15 -0
- data/sig/anthropic/models/browser_right_click_input.rbs +30 -0
- data/sig/anthropic/models/browser_right_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_screenshot_input.rbs +13 -0
- data/sig/anthropic/models/browser_screenshot_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_scroll_direction.rbs +16 -0
- data/sig/anthropic/models/browser_scroll_input.rbs +35 -0
- data/sig/anthropic/models/browser_scroll_to_input.rbs +19 -0
- data/sig/anthropic/models/browser_scroll_to_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_scroll_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_switch_tab_input.rbs +13 -0
- data/sig/anthropic/models/browser_switch_tab_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_tool_use_block.rbs +401 -0
- data/sig/anthropic/models/browser_triple_click_input.rbs +30 -0
- data/sig/anthropic/models/browser_triple_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_type_input.rbs +15 -0
- data/sig/anthropic/models/browser_type_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_wait_input.rbs +15 -0
- data/sig/anthropic/models/browser_wait_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/browser_zoom_input.rbs +15 -0
- data/sig/anthropic/models/browser_zoom_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_cursor_position_input.rbs +11 -0
- data/sig/anthropic/models/computer_cursor_position_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_double_click_input.rbs +16 -0
- data/sig/anthropic/models/computer_double_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_hold_key_input.rbs +15 -0
- data/sig/anthropic/models/computer_hold_key_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_key_input.rbs +15 -0
- data/sig/anthropic/models/computer_key_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_left_click_drag_input.rbs +30 -0
- data/sig/anthropic/models/computer_left_click_drag_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_left_click_input.rbs +16 -0
- data/sig/anthropic/models/computer_left_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_left_mouse_down_input.rbs +11 -0
- data/sig/anthropic/models/computer_left_mouse_down_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_left_mouse_up_input.rbs +11 -0
- data/sig/anthropic/models/computer_left_mouse_up_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_middle_click_input.rbs +16 -0
- data/sig/anthropic/models/computer_middle_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_mouse_move_input.rbs +13 -0
- data/sig/anthropic/models/computer_mouse_move_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_right_click_input.rbs +16 -0
- data/sig/anthropic/models/computer_right_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_screenshot_input.rbs +11 -0
- data/sig/anthropic/models/computer_screenshot_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_scroll_direction.rbs +16 -0
- data/sig/anthropic/models/computer_scroll_input.rbs +35 -0
- data/sig/anthropic/models/computer_scroll_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_tool_use_block.rbs +233 -0
- data/sig/anthropic/models/computer_triple_click_input.rbs +16 -0
- data/sig/anthropic/models/computer_triple_click_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_type_input.rbs +13 -0
- data/sig/anthropic/models/computer_type_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_wait_input.rbs +13 -0
- data/sig/anthropic/models/computer_wait_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/computer_zoom_input.rbs +13 -0
- data/sig/anthropic/models/computer_zoom_tool_use_block.rbs +45 -0
- data/sig/anthropic/models/model.rbs +5 -1
- data/sig/anthropic/models/model_capabilities.rbs +5 -0
- data/sig/anthropic/models/model_info.rbs +32 -0
- data/sig/anthropic/models/model_line.rbs +17 -0
- data/sig/anthropic/models/model_list_params.rbs +21 -0
- data/sig/anthropic/models/organization/workspace_list_params.rbs +7 -0
- data/sig/anthropic/models/server_tools_capability.rbs +30 -0
- data/sig/anthropic/models/thinking_types.rbs +5 -0
- data/sig/anthropic/models/tool_use_caller.rbs +41 -0
- data/sig/anthropic/models/toolset_tool_use_block.rbs +14 -0
- data/sig/anthropic/models.rbs +218 -0
- data/sig/anthropic/resources/beta/models.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/spend_limits.rbs +9 -0
- data/sig/anthropic/resources/beta/organization/workspaces.rbs +1 -0
- data/sig/anthropic/resources/models.rbs +1 -0
- data/sig/anthropic/resources/organization/workspaces.rbs +1 -0
- metadata +695 -2
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserGetPageTextToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BrowserGetPageTextToolUseBlock,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
18
|
+
# behalf.
|
|
19
|
+
sig { returns(Anthropic::ToolUseCaller::Variants) }
|
|
20
|
+
attr_accessor :caller_
|
|
21
|
+
|
|
22
|
+
# Return the page's visible text content as plain text, prioritizing article
|
|
23
|
+
# content. Suited to articles, documentation, and other text-heavy pages.
|
|
24
|
+
sig { returns(Anthropic::BrowserGetPageTextInput) }
|
|
25
|
+
attr_reader :input
|
|
26
|
+
|
|
27
|
+
sig { params(input: Anthropic::BrowserGetPageTextInput::OrHash).void }
|
|
28
|
+
attr_writer :input
|
|
29
|
+
|
|
30
|
+
sig { returns(Symbol) }
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
sig { returns(Symbol) }
|
|
34
|
+
attr_accessor :toolset_name
|
|
35
|
+
|
|
36
|
+
sig { returns(Symbol) }
|
|
37
|
+
attr_accessor :type
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
id: String,
|
|
42
|
+
caller_:
|
|
43
|
+
T.any(
|
|
44
|
+
Anthropic::DirectCaller::OrHash,
|
|
45
|
+
Anthropic::ServerToolCaller::OrHash,
|
|
46
|
+
Anthropic::ServerToolCaller20260120::OrHash
|
|
47
|
+
),
|
|
48
|
+
input: Anthropic::BrowserGetPageTextInput::OrHash,
|
|
49
|
+
name: Symbol,
|
|
50
|
+
toolset_name: Symbol,
|
|
51
|
+
type: Symbol
|
|
52
|
+
).returns(T.attached_class)
|
|
53
|
+
end
|
|
54
|
+
def self.new(
|
|
55
|
+
id:,
|
|
56
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
57
|
+
# behalf.
|
|
58
|
+
caller_:,
|
|
59
|
+
# Return the page's visible text content as plain text, prioritizing article
|
|
60
|
+
# content. Suited to articles, documentation, and other text-heavy pages.
|
|
61
|
+
input:,
|
|
62
|
+
name: :get_page_text,
|
|
63
|
+
toolset_name: :browser,
|
|
64
|
+
type: :tool_use
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
id: String,
|
|
72
|
+
caller_: Anthropic::ToolUseCaller::Variants,
|
|
73
|
+
input: Anthropic::BrowserGetPageTextInput,
|
|
74
|
+
name: Symbol,
|
|
75
|
+
toolset_name: Symbol,
|
|
76
|
+
type: Symbol
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
def to_hash
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserHoldKeyInput < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::BrowserHoldKeyInput, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Seconds to hold the key down (maximum 30).
|
|
12
|
+
sig { returns(Float) }
|
|
13
|
+
attr_accessor :duration
|
|
14
|
+
|
|
15
|
+
# The key or chord to hold.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :text
|
|
18
|
+
|
|
19
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :tab_id
|
|
22
|
+
|
|
23
|
+
# Hold a key or key chord down for a duration, then release it. Uses the same key
|
|
24
|
+
# names and "+" chord syntax as the key action.
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
duration: Float,
|
|
28
|
+
text: String,
|
|
29
|
+
tab_id: T.nilable(String)
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(
|
|
33
|
+
# Seconds to hold the key down (maximum 30).
|
|
34
|
+
duration:,
|
|
35
|
+
# The key or chord to hold.
|
|
36
|
+
text:,
|
|
37
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
38
|
+
tab_id: nil
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
override.returns(
|
|
44
|
+
{ duration: Float, text: String, tab_id: T.nilable(String) }
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
def to_hash
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserHoldKeyToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BrowserHoldKeyToolUseBlock,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
18
|
+
# behalf.
|
|
19
|
+
sig { returns(Anthropic::ToolUseCaller::Variants) }
|
|
20
|
+
attr_accessor :caller_
|
|
21
|
+
|
|
22
|
+
# Hold a key or key chord down for a duration, then release it. Uses the same key
|
|
23
|
+
# names and "+" chord syntax as the key action.
|
|
24
|
+
sig { returns(Anthropic::BrowserHoldKeyInput) }
|
|
25
|
+
attr_reader :input
|
|
26
|
+
|
|
27
|
+
sig { params(input: Anthropic::BrowserHoldKeyInput::OrHash).void }
|
|
28
|
+
attr_writer :input
|
|
29
|
+
|
|
30
|
+
sig { returns(Symbol) }
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
sig { returns(Symbol) }
|
|
34
|
+
attr_accessor :toolset_name
|
|
35
|
+
|
|
36
|
+
sig { returns(Symbol) }
|
|
37
|
+
attr_accessor :type
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
id: String,
|
|
42
|
+
caller_:
|
|
43
|
+
T.any(
|
|
44
|
+
Anthropic::DirectCaller::OrHash,
|
|
45
|
+
Anthropic::ServerToolCaller::OrHash,
|
|
46
|
+
Anthropic::ServerToolCaller20260120::OrHash
|
|
47
|
+
),
|
|
48
|
+
input: Anthropic::BrowserHoldKeyInput::OrHash,
|
|
49
|
+
name: Symbol,
|
|
50
|
+
toolset_name: Symbol,
|
|
51
|
+
type: Symbol
|
|
52
|
+
).returns(T.attached_class)
|
|
53
|
+
end
|
|
54
|
+
def self.new(
|
|
55
|
+
id:,
|
|
56
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
57
|
+
# behalf.
|
|
58
|
+
caller_:,
|
|
59
|
+
# Hold a key or key chord down for a duration, then release it. Uses the same key
|
|
60
|
+
# names and "+" chord syntax as the key action.
|
|
61
|
+
input:,
|
|
62
|
+
name: :hold_key,
|
|
63
|
+
toolset_name: :browser,
|
|
64
|
+
type: :tool_use
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
id: String,
|
|
72
|
+
caller_: Anthropic::ToolUseCaller::Variants,
|
|
73
|
+
input: Anthropic::BrowserHoldKeyInput,
|
|
74
|
+
name: Symbol,
|
|
75
|
+
toolset_name: Symbol,
|
|
76
|
+
type: Symbol
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
def to_hash
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserHoverInput < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::BrowserHoverInput, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Where to act: either a viewport coordinate or an element reference.
|
|
12
|
+
sig { returns(Anthropic::BrowserClickTarget::Variants) }
|
|
13
|
+
attr_accessor :target
|
|
14
|
+
|
|
15
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_accessor :tab_id
|
|
18
|
+
|
|
19
|
+
# Move the cursor to a coordinate or element without clicking.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
target:
|
|
23
|
+
T.any(
|
|
24
|
+
Anthropic::BrowserCoordinateTarget::OrHash,
|
|
25
|
+
Anthropic::BrowserRefTarget::OrHash
|
|
26
|
+
),
|
|
27
|
+
tab_id: T.nilable(String)
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# Where to act: either a viewport coordinate or an element reference.
|
|
32
|
+
target:,
|
|
33
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
34
|
+
tab_id: nil
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{
|
|
41
|
+
target: Anthropic::BrowserClickTarget::Variants,
|
|
42
|
+
tab_id: T.nilable(String)
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def to_hash
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserHoverToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BrowserHoverToolUseBlock,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
18
|
+
# behalf.
|
|
19
|
+
sig { returns(Anthropic::ToolUseCaller::Variants) }
|
|
20
|
+
attr_accessor :caller_
|
|
21
|
+
|
|
22
|
+
# Move the cursor to a coordinate or element without clicking.
|
|
23
|
+
sig { returns(Anthropic::BrowserHoverInput) }
|
|
24
|
+
attr_reader :input
|
|
25
|
+
|
|
26
|
+
sig { params(input: Anthropic::BrowserHoverInput::OrHash).void }
|
|
27
|
+
attr_writer :input
|
|
28
|
+
|
|
29
|
+
sig { returns(Symbol) }
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
sig { returns(Symbol) }
|
|
33
|
+
attr_accessor :toolset_name
|
|
34
|
+
|
|
35
|
+
sig { returns(Symbol) }
|
|
36
|
+
attr_accessor :type
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
id: String,
|
|
41
|
+
caller_:
|
|
42
|
+
T.any(
|
|
43
|
+
Anthropic::DirectCaller::OrHash,
|
|
44
|
+
Anthropic::ServerToolCaller::OrHash,
|
|
45
|
+
Anthropic::ServerToolCaller20260120::OrHash
|
|
46
|
+
),
|
|
47
|
+
input: Anthropic::BrowserHoverInput::OrHash,
|
|
48
|
+
name: Symbol,
|
|
49
|
+
toolset_name: Symbol,
|
|
50
|
+
type: Symbol
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
id:,
|
|
55
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
56
|
+
# behalf.
|
|
57
|
+
caller_:,
|
|
58
|
+
# Move the cursor to a coordinate or element without clicking.
|
|
59
|
+
input:,
|
|
60
|
+
name: :hover,
|
|
61
|
+
toolset_name: :browser,
|
|
62
|
+
type: :tool_use
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
override.returns(
|
|
68
|
+
{
|
|
69
|
+
id: String,
|
|
70
|
+
caller_: Anthropic::ToolUseCaller::Variants,
|
|
71
|
+
input: Anthropic::BrowserHoverInput,
|
|
72
|
+
name: Symbol,
|
|
73
|
+
toolset_name: Symbol,
|
|
74
|
+
type: Symbol
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserJavascriptExecInput < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BrowserJavascriptExecInput,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# JavaScript to execute in the page context.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :text
|
|
17
|
+
|
|
18
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_accessor :tab_id
|
|
21
|
+
|
|
22
|
+
# Execute JavaScript in the page context and return the value of the last
|
|
23
|
+
# expression. The code runs with access to the DOM, `window`, and page variables.
|
|
24
|
+
# Write the expression you want evaluated — do NOT use `return`.
|
|
25
|
+
sig do
|
|
26
|
+
params(text: String, tab_id: T.nilable(String)).returns(
|
|
27
|
+
T.attached_class
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# JavaScript to execute in the page context.
|
|
32
|
+
text:,
|
|
33
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
34
|
+
tab_id: nil
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig { override.returns({ text: String, tab_id: T.nilable(String) }) }
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserJavascriptExecToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BrowserJavascriptExecToolUseBlock,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
18
|
+
# behalf.
|
|
19
|
+
sig { returns(Anthropic::ToolUseCaller::Variants) }
|
|
20
|
+
attr_accessor :caller_
|
|
21
|
+
|
|
22
|
+
# Execute JavaScript in the page context and return the value of the last
|
|
23
|
+
# expression. The code runs with access to the DOM, `window`, and page variables.
|
|
24
|
+
# Write the expression you want evaluated — do NOT use `return`.
|
|
25
|
+
sig { returns(Anthropic::BrowserJavascriptExecInput) }
|
|
26
|
+
attr_reader :input
|
|
27
|
+
|
|
28
|
+
sig { params(input: Anthropic::BrowserJavascriptExecInput::OrHash).void }
|
|
29
|
+
attr_writer :input
|
|
30
|
+
|
|
31
|
+
sig { returns(Symbol) }
|
|
32
|
+
attr_accessor :name
|
|
33
|
+
|
|
34
|
+
sig { returns(Symbol) }
|
|
35
|
+
attr_accessor :toolset_name
|
|
36
|
+
|
|
37
|
+
sig { returns(Symbol) }
|
|
38
|
+
attr_accessor :type
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
id: String,
|
|
43
|
+
caller_:
|
|
44
|
+
T.any(
|
|
45
|
+
Anthropic::DirectCaller::OrHash,
|
|
46
|
+
Anthropic::ServerToolCaller::OrHash,
|
|
47
|
+
Anthropic::ServerToolCaller20260120::OrHash
|
|
48
|
+
),
|
|
49
|
+
input: Anthropic::BrowserJavascriptExecInput::OrHash,
|
|
50
|
+
name: Symbol,
|
|
51
|
+
toolset_name: Symbol,
|
|
52
|
+
type: Symbol
|
|
53
|
+
).returns(T.attached_class)
|
|
54
|
+
end
|
|
55
|
+
def self.new(
|
|
56
|
+
id:,
|
|
57
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
58
|
+
# behalf.
|
|
59
|
+
caller_:,
|
|
60
|
+
# Execute JavaScript in the page context and return the value of the last
|
|
61
|
+
# expression. The code runs with access to the DOM, `window`, and page variables.
|
|
62
|
+
# Write the expression you want evaluated — do NOT use `return`.
|
|
63
|
+
input:,
|
|
64
|
+
name: :javascript_exec,
|
|
65
|
+
toolset_name: :browser,
|
|
66
|
+
type: :tool_use
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
sig do
|
|
71
|
+
override.returns(
|
|
72
|
+
{
|
|
73
|
+
id: String,
|
|
74
|
+
caller_: Anthropic::ToolUseCaller::Variants,
|
|
75
|
+
input: Anthropic::BrowserJavascriptExecInput,
|
|
76
|
+
name: Symbol,
|
|
77
|
+
toolset_name: Symbol,
|
|
78
|
+
type: Symbol
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
def to_hash
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserKeyInput < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::BrowserKeyInput, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The key, chord, or space-separated sequence to press.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :text
|
|
14
|
+
|
|
15
|
+
# Number of times to repeat. Default 1.
|
|
16
|
+
sig { returns(T.nilable(Integer)) }
|
|
17
|
+
attr_accessor :repeat
|
|
18
|
+
|
|
19
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :tab_id
|
|
22
|
+
|
|
23
|
+
# Press a key or key chord. Use "+" to combine modifiers with a key (e.g.
|
|
24
|
+
# "ctrl+a", "cmd+shift+p") and space to sequence presses (e.g. "Backspace
|
|
25
|
+
# Backspace Delete"). Common names like "Return", "Tab", "Escape", "BackSpace" are
|
|
26
|
+
# supported.
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
text: String,
|
|
30
|
+
repeat: T.nilable(Integer),
|
|
31
|
+
tab_id: T.nilable(String)
|
|
32
|
+
).returns(T.attached_class)
|
|
33
|
+
end
|
|
34
|
+
def self.new(
|
|
35
|
+
# The key, chord, or space-separated sequence to press.
|
|
36
|
+
text:,
|
|
37
|
+
# Number of times to repeat. Default 1.
|
|
38
|
+
repeat: nil,
|
|
39
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
40
|
+
tab_id: nil
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
override.returns(
|
|
46
|
+
{
|
|
47
|
+
text: String,
|
|
48
|
+
repeat: T.nilable(Integer),
|
|
49
|
+
tab_id: T.nilable(String)
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
def to_hash
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserKeyToolUseBlock < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::BrowserKeyToolUseBlock, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig { returns(String) }
|
|
12
|
+
attr_accessor :id
|
|
13
|
+
|
|
14
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
15
|
+
# behalf.
|
|
16
|
+
sig { returns(Anthropic::ToolUseCaller::Variants) }
|
|
17
|
+
attr_accessor :caller_
|
|
18
|
+
|
|
19
|
+
# Press a key or key chord. Use "+" to combine modifiers with a key (e.g.
|
|
20
|
+
# "ctrl+a", "cmd+shift+p") and space to sequence presses (e.g. "Backspace
|
|
21
|
+
# Backspace Delete"). Common names like "Return", "Tab", "Escape", "BackSpace" are
|
|
22
|
+
# supported.
|
|
23
|
+
sig { returns(Anthropic::BrowserKeyInput) }
|
|
24
|
+
attr_reader :input
|
|
25
|
+
|
|
26
|
+
sig { params(input: Anthropic::BrowserKeyInput::OrHash).void }
|
|
27
|
+
attr_writer :input
|
|
28
|
+
|
|
29
|
+
sig { returns(Symbol) }
|
|
30
|
+
attr_accessor :name
|
|
31
|
+
|
|
32
|
+
sig { returns(Symbol) }
|
|
33
|
+
attr_accessor :toolset_name
|
|
34
|
+
|
|
35
|
+
sig { returns(Symbol) }
|
|
36
|
+
attr_accessor :type
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
id: String,
|
|
41
|
+
caller_:
|
|
42
|
+
T.any(
|
|
43
|
+
Anthropic::DirectCaller::OrHash,
|
|
44
|
+
Anthropic::ServerToolCaller::OrHash,
|
|
45
|
+
Anthropic::ServerToolCaller20260120::OrHash
|
|
46
|
+
),
|
|
47
|
+
input: Anthropic::BrowserKeyInput::OrHash,
|
|
48
|
+
name: Symbol,
|
|
49
|
+
toolset_name: Symbol,
|
|
50
|
+
type: Symbol
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
id:,
|
|
55
|
+
# Which party invoked the tool call: the model directly, or a server tool on its
|
|
56
|
+
# behalf.
|
|
57
|
+
caller_:,
|
|
58
|
+
# Press a key or key chord. Use "+" to combine modifiers with a key (e.g.
|
|
59
|
+
# "ctrl+a", "cmd+shift+p") and space to sequence presses (e.g. "Backspace
|
|
60
|
+
# Backspace Delete"). Common names like "Return", "Tab", "Escape", "BackSpace" are
|
|
61
|
+
# supported.
|
|
62
|
+
input:,
|
|
63
|
+
name: :key,
|
|
64
|
+
toolset_name: :browser,
|
|
65
|
+
type: :tool_use
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig do
|
|
70
|
+
override.returns(
|
|
71
|
+
{
|
|
72
|
+
id: String,
|
|
73
|
+
caller_: Anthropic::ToolUseCaller::Variants,
|
|
74
|
+
input: Anthropic::BrowserKeyInput,
|
|
75
|
+
name: Symbol,
|
|
76
|
+
toolset_name: Symbol,
|
|
77
|
+
type: Symbol
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
def to_hash
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BrowserLeftClickDragInput < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::BrowserLeftClickDragInput,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# A point in the browser viewport, in viewport pixels (the same frame as a
|
|
15
|
+
# full-viewport screenshot).
|
|
16
|
+
sig { returns(Anthropic::BrowserCoordinateTarget) }
|
|
17
|
+
attr_reader :from
|
|
18
|
+
|
|
19
|
+
sig { params(from: Anthropic::BrowserCoordinateTarget::OrHash).void }
|
|
20
|
+
attr_writer :from
|
|
21
|
+
|
|
22
|
+
# A point in the browser viewport, in viewport pixels (the same frame as a
|
|
23
|
+
# full-viewport screenshot).
|
|
24
|
+
sig { returns(Anthropic::BrowserCoordinateTarget) }
|
|
25
|
+
attr_reader :target
|
|
26
|
+
|
|
27
|
+
sig { params(target: Anthropic::BrowserCoordinateTarget::OrHash).void }
|
|
28
|
+
attr_writer :target
|
|
29
|
+
|
|
30
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
31
|
+
sig { returns(T.nilable(String)) }
|
|
32
|
+
attr_accessor :tab_id
|
|
33
|
+
|
|
34
|
+
# Press at `from`, drag to `target`, release. Both must be coordinate targets.
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
from: Anthropic::BrowserCoordinateTarget::OrHash,
|
|
38
|
+
target: Anthropic::BrowserCoordinateTarget::OrHash,
|
|
39
|
+
tab_id: T.nilable(String)
|
|
40
|
+
).returns(T.attached_class)
|
|
41
|
+
end
|
|
42
|
+
def self.new(
|
|
43
|
+
# A point in the browser viewport, in viewport pixels (the same frame as a
|
|
44
|
+
# full-viewport screenshot).
|
|
45
|
+
from:,
|
|
46
|
+
# A point in the browser viewport, in viewport pixels (the same frame as a
|
|
47
|
+
# full-viewport screenshot).
|
|
48
|
+
target:,
|
|
49
|
+
# Tab to act on. Defaults to the active tab when omitted.
|
|
50
|
+
tab_id: nil
|
|
51
|
+
)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
override.returns(
|
|
56
|
+
{
|
|
57
|
+
from: Anthropic::BrowserCoordinateTarget,
|
|
58
|
+
target: Anthropic::BrowserCoordinateTarget,
|
|
59
|
+
tab_id: T.nilable(String)
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
def to_hash
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|