anthropic 1.63.0 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/README.md +1 -1
- data/lib/anthropic/client.rb +8 -0
- data/lib/anthropic/helpers/bedrock/client.rb +8 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +12 -0
- data/lib/anthropic/helpers/vertex/client.rb +8 -0
- data/lib/anthropic/internal/page_cursor.rb +2 -2
- data/lib/anthropic/models/beta/agent_create_params.rb +1 -1
- data/lib/anthropic/models/beta/agent_update_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_browser_close_tab_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_double_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_file_upload_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_find_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_form_input_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_get_page_text_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_hold_key_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_hover_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_javascript_exec_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_key_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_left_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_left_click_drag_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_left_mouse_down_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_left_mouse_up_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_list_tabs_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_middle_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_mouse_move_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_navigate_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_new_tab_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_read_console_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_read_network_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_read_page_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_right_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_screenshot_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_scroll_to_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_state_block_param.rb +58 -0
- data/lib/anthropic/models/beta/beta_browser_state_change.rb +84 -0
- data/lib/anthropic/models/beta/beta_browser_state_change_download_completed.rb +62 -0
- data/lib/anthropic/models/beta/beta_browser_state_change_download_failed.rb +50 -0
- data/lib/anthropic/models/beta/beta_browser_state_change_download_started.rb +42 -0
- data/lib/anthropic/models/beta/beta_browser_state_change_tab_opened.rb +34 -0
- data/lib/anthropic/models/beta/beta_browser_state_tab_entry.rb +55 -0
- data/lib/anthropic/models/beta/beta_browser_switch_tab_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_toolset_20260801.rb +73 -0
- data/lib/anthropic/models/beta/beta_browser_toolset_configs.rb +266 -0
- data/lib/anthropic/models/beta/beta_browser_triple_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_type_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_wait_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_browser_zoom_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_cursor_position_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_double_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_hold_key_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_key_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_left_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_left_click_drag_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_left_mouse_down_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_left_mouse_up_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_middle_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_mouse_move_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_right_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_screenshot_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_scroll_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_toolset_20260801.rb +76 -0
- data/lib/anthropic/models/beta/beta_computer_toolset_configs.rb +154 -0
- data/lib/anthropic/models/beta/beta_computer_triple_click_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_type_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_wait_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_computer_zoom_config.rb +36 -0
- data/lib/anthropic/models/beta/beta_content_block.rb +2 -0
- data/lib/anthropic/models/beta/beta_content_block_param.rb +5 -1
- data/lib/anthropic/models/beta/beta_content_block_source_content.rb +5 -0
- data/lib/anthropic/models/beta/{deleted_file.rb → beta_deleted_file.rb} +8 -6
- data/lib/anthropic/models/beta/{file_metadata.rb → beta_file_metadata.rb} +4 -2
- data/lib/anthropic/models/beta/beta_image_block_param.rb +15 -1
- data/lib/anthropic/models/beta/beta_image_transformations_param.rb +51 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +65 -71
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +69 -78
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_user_location.rb +54 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rb +103 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rb +131 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rb +104 -0
- data/lib/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rb +130 -0
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rb +100 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +2 -0
- data/lib/anthropic/models/beta/beta_skill.rb +2 -2
- data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +35 -6
- data/lib/anthropic/models/beta/beta_tool_union.rb +17 -1
- data/lib/anthropic/models/beta/beta_tool_use_block.rb +9 -1
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +9 -1
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +19 -3
- data/lib/anthropic/models/beta/message_create_params.rb +2 -2
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +2 -2
- data/lib/anthropic/models/browser_close_tab_config.rb +32 -0
- data/lib/anthropic/models/browser_double_click_config.rb +32 -0
- data/lib/anthropic/models/browser_file_upload_config.rb +32 -0
- data/lib/anthropic/models/browser_find_config.rb +32 -0
- data/lib/anthropic/models/browser_form_input_config.rb +32 -0
- data/lib/anthropic/models/browser_get_page_text_config.rb +32 -0
- data/lib/anthropic/models/browser_hold_key_config.rb +32 -0
- data/lib/anthropic/models/browser_hover_config.rb +32 -0
- data/lib/anthropic/models/browser_javascript_exec_config.rb +32 -0
- data/lib/anthropic/models/browser_key_config.rb +32 -0
- data/lib/anthropic/models/browser_left_click_config.rb +32 -0
- data/lib/anthropic/models/browser_left_click_drag_config.rb +32 -0
- data/lib/anthropic/models/browser_left_mouse_down_config.rb +32 -0
- data/lib/anthropic/models/browser_left_mouse_up_config.rb +32 -0
- data/lib/anthropic/models/browser_list_tabs_config.rb +32 -0
- data/lib/anthropic/models/browser_middle_click_config.rb +32 -0
- data/lib/anthropic/models/browser_mouse_move_config.rb +32 -0
- data/lib/anthropic/models/browser_navigate_config.rb +32 -0
- data/lib/anthropic/models/browser_new_tab_config.rb +32 -0
- data/lib/anthropic/models/browser_read_console_config.rb +32 -0
- data/lib/anthropic/models/browser_read_network_config.rb +32 -0
- data/lib/anthropic/models/browser_read_page_config.rb +32 -0
- data/lib/anthropic/models/browser_right_click_config.rb +32 -0
- data/lib/anthropic/models/browser_screenshot_config.rb +32 -0
- data/lib/anthropic/models/browser_scroll_config.rb +32 -0
- data/lib/anthropic/models/browser_scroll_to_config.rb +32 -0
- data/lib/anthropic/models/browser_state_block_param.rb +54 -0
- data/lib/anthropic/models/browser_state_change.rb +80 -0
- data/lib/anthropic/models/browser_state_change_download_completed.rb +57 -0
- data/lib/anthropic/models/browser_state_change_download_failed.rb +45 -0
- data/lib/anthropic/models/browser_state_change_download_started.rb +37 -0
- data/lib/anthropic/models/browser_state_change_tab_opened.rb +30 -0
- data/lib/anthropic/models/browser_state_tab_entry.rb +51 -0
- data/lib/anthropic/models/browser_switch_tab_config.rb +32 -0
- data/lib/anthropic/models/browser_toolset_20260801.rb +69 -0
- data/lib/anthropic/models/browser_toolset_configs.rb +262 -0
- data/lib/anthropic/models/browser_triple_click_config.rb +32 -0
- data/lib/anthropic/models/browser_type_config.rb +32 -0
- data/lib/anthropic/models/browser_wait_config.rb +32 -0
- data/lib/anthropic/models/browser_zoom_config.rb +32 -0
- data/lib/anthropic/models/computer_cursor_position_config.rb +32 -0
- data/lib/anthropic/models/computer_double_click_config.rb +32 -0
- data/lib/anthropic/models/computer_hold_key_config.rb +32 -0
- data/lib/anthropic/models/computer_key_config.rb +32 -0
- data/lib/anthropic/models/computer_left_click_config.rb +32 -0
- data/lib/anthropic/models/computer_left_click_drag_config.rb +32 -0
- data/lib/anthropic/models/computer_left_mouse_down_config.rb +32 -0
- data/lib/anthropic/models/computer_left_mouse_up_config.rb +32 -0
- data/lib/anthropic/models/computer_middle_click_config.rb +32 -0
- data/lib/anthropic/models/computer_mouse_move_config.rb +32 -0
- data/lib/anthropic/models/computer_right_click_config.rb +32 -0
- data/lib/anthropic/models/computer_screenshot_config.rb +32 -0
- data/lib/anthropic/models/computer_scroll_config.rb +32 -0
- data/lib/anthropic/models/computer_toolset_20260801.rb +72 -0
- data/lib/anthropic/models/computer_toolset_configs.rb +150 -0
- data/lib/anthropic/models/computer_triple_click_config.rb +32 -0
- data/lib/anthropic/models/computer_type_config.rb +32 -0
- data/lib/anthropic/models/computer_wait_config.rb +32 -0
- data/lib/anthropic/models/computer_zoom_config.rb +32 -0
- data/lib/anthropic/models/container.rb +9 -1
- data/lib/anthropic/models/container_params.rb +26 -0
- data/lib/anthropic/models/container_skill.rb +47 -0
- data/lib/anthropic/models/content_block.rb +2 -0
- data/lib/anthropic/models/content_block_param.rb +6 -2
- data/lib/anthropic/models/content_block_source_content.rb +6 -1
- data/lib/anthropic/models/deleted_file.rb +44 -0
- data/lib/anthropic/models/deleted_skill.rb +32 -0
- data/lib/anthropic/models/document_block_param.rb +10 -4
- data/lib/anthropic/models/file_delete_params.rb +22 -0
- data/lib/anthropic/models/file_document_source.rb +21 -0
- data/lib/anthropic/models/file_download_params.rb +22 -0
- data/lib/anthropic/models/file_image_source.rb +21 -0
- data/lib/anthropic/models/file_list_params.rb +48 -0
- data/lib/anthropic/models/file_metadata.rb +82 -0
- data/lib/anthropic/models/file_retrieve_metadata_params.rb +22 -0
- data/lib/anthropic/models/file_upload_params.rb +34 -0
- data/lib/anthropic/models/image_block_param.rb +25 -5
- data/lib/anthropic/models/image_transformations_param.rb +47 -0
- data/lib/anthropic/models/message_count_tokens_params.rb +2 -2
- data/lib/anthropic/models/message_count_tokens_tool.rb +17 -1
- data/lib/anthropic/models/message_create_params.rb +5 -5
- data/lib/anthropic/models/message_create_params_container.rb +18 -0
- data/lib/anthropic/models/messages/batch_create_params.rb +5 -5
- data/lib/anthropic/models/raw_content_block_start_event.rb +2 -0
- data/lib/anthropic/models/skill.rb +82 -0
- data/lib/anthropic/models/skill_create_params.rb +38 -0
- data/lib/anthropic/models/skill_delete_params.rb +27 -0
- data/lib/anthropic/models/skill_list_params.rb +51 -0
- data/lib/anthropic/models/skill_params.rb +47 -0
- data/lib/anthropic/models/skill_retrieve_params.rb +27 -0
- data/lib/anthropic/models/skill_source.rb +48 -0
- data/lib/anthropic/models/skills/deleted_skill_version.rb +33 -0
- data/lib/anthropic/models/skills/skill_version.rb +74 -0
- data/lib/anthropic/models/skills/version_create_params.rb +40 -0
- data/lib/anthropic/models/skills/version_delete_params.rb +41 -0
- data/lib/anthropic/models/skills/version_list_params.rb +47 -0
- data/lib/anthropic/models/skills/version_retrieve_params.rb +41 -0
- data/lib/anthropic/models/tool_result_block_param.rb +35 -7
- data/lib/anthropic/models/tool_union.rb +17 -1
- data/lib/anthropic/models/tool_use_block.rb +9 -1
- data/lib/anthropic/models/tool_use_block_param.rb +9 -1
- data/lib/anthropic/models.rb +162 -0
- data/lib/anthropic/resources/beta/files.rb +8 -8
- data/lib/anthropic/resources/beta/messages.rb +35 -14
- data/lib/anthropic/resources/files.rb +134 -0
- data/lib/anthropic/resources/messages.rb +34 -25
- data/lib/anthropic/resources/skills/versions.rb +135 -0
- data/lib/anthropic/resources/skills.rb +123 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +168 -2
- data/rbi/anthropic/client.rbi +6 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +8 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +8 -0
- data/rbi/anthropic/helpers/vertex/client.rbi +8 -0
- data/rbi/anthropic/models/beta/agent_create_params.rbi +10 -1
- data/rbi/anthropic/models/beta/agent_update_params.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_browser_close_tab_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_double_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_file_upload_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_find_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_form_input_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_get_page_text_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_hold_key_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_hover_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_javascript_exec_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_key_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_left_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_left_click_drag_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_left_mouse_down_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_left_mouse_up_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_list_tabs_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_middle_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_mouse_move_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_navigate_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_new_tab_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_read_console_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_read_network_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_read_page_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_right_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_screenshot_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_scroll_to_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_state_block_param.rbi +120 -0
- data/rbi/anthropic/models/beta/beta_browser_state_change.rbi +69 -0
- data/rbi/anthropic/models/beta/beta_browser_state_change_download_completed.rbi +83 -0
- data/rbi/anthropic/models/beta/beta_browser_state_change_download_failed.rbi +70 -0
- data/rbi/anthropic/models/beta/beta_browser_state_change_download_started.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_browser_state_change_tab_opened.rbi +44 -0
- data/rbi/anthropic/models/beta/beta_browser_state_tab_entry.rbi +74 -0
- data/rbi/anthropic/models/beta/beta_browser_switch_tab_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_toolset_20260801.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_browser_toolset_configs.rbi +598 -0
- data/rbi/anthropic/models/beta/beta_browser_triple_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_type_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_wait_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_browser_zoom_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_cursor_position_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_double_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_hold_key_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_key_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_left_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_left_click_drag_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_left_mouse_down_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_left_mouse_up_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_middle_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_mouse_move_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_right_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_screenshot_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_scroll_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_toolset_20260801.rbi +172 -0
- data/rbi/anthropic/models/beta/beta_computer_toolset_configs.rbi +362 -0
- data/rbi/anthropic/models/beta/beta_computer_triple_click_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_type_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_wait_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_computer_zoom_config.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_content_block.rbi +3 -0
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_content_block_source_content.rbi +9 -2
- data/rbi/anthropic/models/beta/{deleted_file.rbi → beta_deleted_file.rbi} +20 -9
- data/rbi/anthropic/models/beta/{file_metadata.rbi → beta_file_metadata.rbi} +7 -2
- data/rbi/anthropic/models/beta/beta_image_block_param.rbi +27 -1
- data/rbi/anthropic/models/beta/beta_image_transformations_param.rbi +114 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +37 -138
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +49 -149
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbi +18 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbi +42 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_managed_agents_user_location.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbi +130 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbi +213 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbi +144 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbi +223 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +3 -0
- data/rbi/anthropic/models/beta/beta_skill.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +41 -4
- data/rbi/anthropic/models/beta/beta_tool_union.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +9 -1
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +10 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +8 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +8 -0
- data/rbi/anthropic/models/browser_close_tab_config.rbi +52 -0
- data/rbi/anthropic/models/browser_double_click_config.rbi +55 -0
- data/rbi/anthropic/models/browser_file_upload_config.rbi +55 -0
- data/rbi/anthropic/models/browser_find_config.rbi +52 -0
- data/rbi/anthropic/models/browser_form_input_config.rbi +52 -0
- data/rbi/anthropic/models/browser_get_page_text_config.rbi +55 -0
- data/rbi/anthropic/models/browser_hold_key_config.rbi +52 -0
- data/rbi/anthropic/models/browser_hover_config.rbi +52 -0
- data/rbi/anthropic/models/browser_javascript_exec_config.rbi +55 -0
- data/rbi/anthropic/models/browser_key_config.rbi +52 -0
- data/rbi/anthropic/models/browser_left_click_config.rbi +52 -0
- data/rbi/anthropic/models/browser_left_click_drag_config.rbi +55 -0
- data/rbi/anthropic/models/browser_left_mouse_down_config.rbi +55 -0
- data/rbi/anthropic/models/browser_left_mouse_up_config.rbi +55 -0
- data/rbi/anthropic/models/browser_list_tabs_config.rbi +52 -0
- data/rbi/anthropic/models/browser_middle_click_config.rbi +55 -0
- data/rbi/anthropic/models/browser_mouse_move_config.rbi +52 -0
- data/rbi/anthropic/models/browser_navigate_config.rbi +52 -0
- data/rbi/anthropic/models/browser_new_tab_config.rbi +52 -0
- data/rbi/anthropic/models/browser_read_console_config.rbi +55 -0
- data/rbi/anthropic/models/browser_read_network_config.rbi +55 -0
- data/rbi/anthropic/models/browser_read_page_config.rbi +52 -0
- data/rbi/anthropic/models/browser_right_click_config.rbi +55 -0
- data/rbi/anthropic/models/browser_screenshot_config.rbi +55 -0
- data/rbi/anthropic/models/browser_scroll_config.rbi +52 -0
- data/rbi/anthropic/models/browser_scroll_to_config.rbi +52 -0
- data/rbi/anthropic/models/browser_state_block_param.rbi +110 -0
- data/rbi/anthropic/models/browser_state_change.rbi +63 -0
- data/rbi/anthropic/models/browser_state_change_download_completed.rbi +78 -0
- data/rbi/anthropic/models/browser_state_change_download_failed.rbi +65 -0
- data/rbi/anthropic/models/browser_state_change_download_started.rbi +49 -0
- data/rbi/anthropic/models/browser_state_change_tab_opened.rbi +40 -0
- data/rbi/anthropic/models/browser_state_tab_entry.rbi +67 -0
- data/rbi/anthropic/models/browser_switch_tab_config.rbi +52 -0
- data/rbi/anthropic/models/browser_toolset_20260801.rbi +150 -0
- data/rbi/anthropic/models/browser_toolset_configs.rbi +479 -0
- data/rbi/anthropic/models/browser_triple_click_config.rbi +55 -0
- data/rbi/anthropic/models/browser_type_config.rbi +52 -0
- data/rbi/anthropic/models/browser_wait_config.rbi +52 -0
- data/rbi/anthropic/models/browser_zoom_config.rbi +52 -0
- data/rbi/anthropic/models/computer_cursor_position_config.rbi +55 -0
- data/rbi/anthropic/models/computer_double_click_config.rbi +55 -0
- data/rbi/anthropic/models/computer_hold_key_config.rbi +52 -0
- data/rbi/anthropic/models/computer_key_config.rbi +52 -0
- data/rbi/anthropic/models/computer_left_click_config.rbi +55 -0
- data/rbi/anthropic/models/computer_left_click_drag_config.rbi +55 -0
- data/rbi/anthropic/models/computer_left_mouse_down_config.rbi +55 -0
- data/rbi/anthropic/models/computer_left_mouse_up_config.rbi +55 -0
- data/rbi/anthropic/models/computer_middle_click_config.rbi +55 -0
- data/rbi/anthropic/models/computer_mouse_move_config.rbi +55 -0
- data/rbi/anthropic/models/computer_right_click_config.rbi +55 -0
- data/rbi/anthropic/models/computer_screenshot_config.rbi +55 -0
- data/rbi/anthropic/models/computer_scroll_config.rbi +52 -0
- data/rbi/anthropic/models/computer_toolset_20260801.rbi +160 -0
- data/rbi/anthropic/models/computer_toolset_configs.rbi +284 -0
- data/rbi/anthropic/models/computer_triple_click_config.rbi +55 -0
- data/rbi/anthropic/models/computer_type_config.rbi +52 -0
- data/rbi/anthropic/models/computer_wait_config.rbi +52 -0
- data/rbi/anthropic/models/computer_zoom_config.rbi +52 -0
- data/rbi/anthropic/models/container.rbi +23 -3
- data/rbi/anthropic/models/container_params.rbi +46 -0
- data/rbi/anthropic/models/container_skill.rbi +75 -0
- data/rbi/anthropic/models/content_block.rbi +3 -0
- data/rbi/anthropic/models/content_block_param.rbi +14 -2
- data/rbi/anthropic/models/content_block_source_content.rbi +11 -3
- data/rbi/anthropic/models/deleted_file.rbi +69 -0
- data/rbi/anthropic/models/deleted_skill.rbi +41 -0
- data/rbi/anthropic/models/document_block_param.rbi +18 -6
- data/rbi/anthropic/models/file_delete_params.rbi +40 -0
- data/rbi/anthropic/models/file_document_source.rbi +26 -0
- data/rbi/anthropic/models/file_download_params.rbi +40 -0
- data/rbi/anthropic/models/file_image_source.rbi +26 -0
- data/rbi/anthropic/models/file_list_params.rbi +76 -0
- data/rbi/anthropic/models/file_metadata.rbi +108 -0
- data/rbi/anthropic/models/file_retrieve_metadata_params.rbi +43 -0
- data/rbi/anthropic/models/file_upload_params.rbi +56 -0
- data/rbi/anthropic/models/image_block_param.rbi +46 -7
- data/rbi/anthropic/models/image_transformations_param.rbi +107 -0
- data/rbi/anthropic/models/message_count_tokens_params.rbi +8 -0
- data/rbi/anthropic/models/message_count_tokens_tool.rbi +2 -0
- data/rbi/anthropic/models/message_create_params.rbi +12 -3
- data/rbi/anthropic/models/message_create_params_container.rbi +20 -0
- data/rbi/anthropic/models/messages/batch_create_params.rbi +15 -3
- data/rbi/anthropic/models/raw_content_block_start_event.rbi +3 -0
- data/rbi/anthropic/models/skill.rbi +114 -0
- data/rbi/anthropic/models/skill_create_params.rbi +61 -0
- data/rbi/anthropic/models/skill_delete_params.rbi +44 -0
- data/rbi/anthropic/models/skill_list_params.rbi +82 -0
- data/rbi/anthropic/models/skill_params.rbi +76 -0
- data/rbi/anthropic/models/skill_retrieve_params.rbi +44 -0
- data/rbi/anthropic/models/skill_source.rbi +76 -0
- data/rbi/anthropic/models/skills/deleted_skill_version.rbi +44 -0
- data/rbi/anthropic/models/skills/skill_version.rbi +101 -0
- data/rbi/anthropic/models/skills/version_create_params.rbi +66 -0
- data/rbi/anthropic/models/skills/version_delete_params.rbi +68 -0
- data/rbi/anthropic/models/skills/version_list_params.rbi +72 -0
- data/rbi/anthropic/models/skills/version_retrieve_params.rbi +68 -0
- data/rbi/anthropic/models/tool_result_block_param.rbi +42 -6
- data/rbi/anthropic/models/tool_union.rbi +2 -0
- data/rbi/anthropic/models/tool_use_block.rbi +9 -1
- data/rbi/anthropic/models/tool_use_block_param.rbi +9 -1
- data/rbi/anthropic/models.rbi +165 -0
- data/rbi/anthropic/resources/beta/files.rbi +6 -4
- data/rbi/anthropic/resources/beta/messages.rbi +410 -0
- data/rbi/anthropic/resources/files.rbi +99 -0
- data/rbi/anthropic/resources/messages.rbi +114 -89
- data/rbi/anthropic/resources/skills/versions.rbi +108 -0
- data/rbi/anthropic/resources/skills.rbi +99 -0
- data/sig/anthropic/client.rbs +4 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +4 -0
- data/sig/anthropic/helpers/vertex/client.rbs +4 -0
- data/sig/anthropic/models/beta/agent_create_params.rbs +2 -2
- data/sig/anthropic/models/beta/agent_update_params.rbs +2 -2
- data/sig/anthropic/models/beta/beta_browser_close_tab_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_double_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_file_upload_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_find_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_form_input_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_get_page_text_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_hold_key_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_hover_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_javascript_exec_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_key_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_left_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_left_click_drag_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_left_mouse_down_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_left_mouse_up_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_list_tabs_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_middle_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_mouse_move_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_navigate_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_new_tab_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_read_console_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_read_network_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_read_page_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_right_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_screenshot_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_scroll_to_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_state_block_param.rbs +39 -0
- data/sig/anthropic/models/beta/beta_browser_state_change.rbs +52 -0
- data/sig/anthropic/models/beta/beta_browser_state_change_download_completed.rbs +44 -0
- data/sig/anthropic/models/beta/beta_browser_state_change_download_failed.rbs +39 -0
- data/sig/anthropic/models/beta/beta_browser_state_change_download_started.rbs +30 -0
- data/sig/anthropic/models/beta/beta_browser_state_change_tab_opened.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_state_tab_entry.rbs +36 -0
- data/sig/anthropic/models/beta/beta_browser_switch_tab_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_toolset_20260801.rbs +60 -0
- data/sig/anthropic/models/beta/beta_browser_toolset_configs.rbs +174 -0
- data/sig/anthropic/models/beta/beta_browser_triple_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_browser_type_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_wait_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_browser_zoom_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_computer_cursor_position_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_double_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_hold_key_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_key_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_computer_left_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_left_click_drag_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_left_mouse_down_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_left_mouse_up_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_middle_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_mouse_move_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_right_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_screenshot_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_scroll_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_toolset_20260801.rbs +60 -0
- data/sig/anthropic/models/beta/beta_computer_toolset_configs.rbs +104 -0
- data/sig/anthropic/models/beta/beta_computer_triple_click_config.rbs +20 -0
- data/sig/anthropic/models/beta/beta_computer_type_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_computer_wait_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_computer_zoom_config.rbs +19 -0
- data/sig/anthropic/models/beta/beta_content_block.rbs +3 -1
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +8 -3
- data/sig/anthropic/models/beta/beta_content_block_source_content.rbs +4 -2
- data/sig/anthropic/models/beta/beta_deleted_file.rbs +40 -0
- data/sig/anthropic/models/beta/{file_metadata.rbs → beta_file_metadata.rbs} +4 -2
- data/sig/anthropic/models/beta/beta_image_block_param.rbs +7 -2
- data/sig/anthropic/models/beta/beta_image_transformations_param.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +91 -68
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +91 -68
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_params.rbs +6 -6
- data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_bash_tool_config_params.rbs +74 -0
- data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_edit_tool_config_params.rbs +74 -0
- data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_glob_tool_config_params.rbs +74 -0
- data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_grep_tool_config_params.rbs +74 -0
- data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_read_tool_config_params.rbs +74 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent_update.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_user_location.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config.rbs +79 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_fetch_tool_config_params.rbs +93 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config.rbs +79 -0
- data/sig/anthropic/models/beta/beta_managed_agents_web_search_tool_config_params.rbs +93 -0
- data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_write_tool_config_params.rbs +74 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +3 -1
- data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +20 -4
- data/sig/anthropic/models/beta/beta_tool_union.rbs +2 -0
- data/sig/anthropic/models/beta/beta_tool_use_block.rbs +7 -2
- data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +7 -2
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +2 -0
- data/sig/anthropic/models/browser_close_tab_config.rbs +15 -0
- data/sig/anthropic/models/browser_double_click_config.rbs +15 -0
- data/sig/anthropic/models/browser_file_upload_config.rbs +15 -0
- data/sig/anthropic/models/browser_find_config.rbs +15 -0
- data/sig/anthropic/models/browser_form_input_config.rbs +15 -0
- data/sig/anthropic/models/browser_get_page_text_config.rbs +15 -0
- data/sig/anthropic/models/browser_hold_key_config.rbs +15 -0
- data/sig/anthropic/models/browser_hover_config.rbs +15 -0
- data/sig/anthropic/models/browser_javascript_exec_config.rbs +16 -0
- data/sig/anthropic/models/browser_key_config.rbs +15 -0
- data/sig/anthropic/models/browser_left_click_config.rbs +15 -0
- data/sig/anthropic/models/browser_left_click_drag_config.rbs +16 -0
- data/sig/anthropic/models/browser_left_mouse_down_config.rbs +16 -0
- data/sig/anthropic/models/browser_left_mouse_up_config.rbs +15 -0
- data/sig/anthropic/models/browser_list_tabs_config.rbs +15 -0
- data/sig/anthropic/models/browser_middle_click_config.rbs +15 -0
- data/sig/anthropic/models/browser_mouse_move_config.rbs +15 -0
- data/sig/anthropic/models/browser_navigate_config.rbs +15 -0
- data/sig/anthropic/models/browser_new_tab_config.rbs +15 -0
- data/sig/anthropic/models/browser_read_console_config.rbs +15 -0
- data/sig/anthropic/models/browser_read_network_config.rbs +15 -0
- data/sig/anthropic/models/browser_read_page_config.rbs +15 -0
- data/sig/anthropic/models/browser_right_click_config.rbs +15 -0
- data/sig/anthropic/models/browser_screenshot_config.rbs +15 -0
- data/sig/anthropic/models/browser_scroll_config.rbs +15 -0
- data/sig/anthropic/models/browser_scroll_to_config.rbs +15 -0
- data/sig/anthropic/models/browser_state_block_param.rbs +35 -0
- data/sig/anthropic/models/browser_state_change.rbs +48 -0
- data/sig/anthropic/models/browser_state_change_download_completed.rbs +40 -0
- data/sig/anthropic/models/browser_state_change_download_failed.rbs +35 -0
- data/sig/anthropic/models/browser_state_change_download_started.rbs +26 -0
- data/sig/anthropic/models/browser_state_change_tab_opened.rbs +15 -0
- data/sig/anthropic/models/browser_state_tab_entry.rbs +32 -0
- data/sig/anthropic/models/browser_switch_tab_config.rbs +15 -0
- data/sig/anthropic/models/browser_toolset_20260801.rbs +56 -0
- data/sig/anthropic/models/browser_toolset_configs.rbs +170 -0
- data/sig/anthropic/models/browser_triple_click_config.rbs +15 -0
- data/sig/anthropic/models/browser_type_config.rbs +15 -0
- data/sig/anthropic/models/browser_wait_config.rbs +15 -0
- data/sig/anthropic/models/browser_zoom_config.rbs +15 -0
- data/sig/anthropic/models/computer_cursor_position_config.rbs +16 -0
- data/sig/anthropic/models/computer_double_click_config.rbs +15 -0
- data/sig/anthropic/models/computer_hold_key_config.rbs +15 -0
- data/sig/anthropic/models/computer_key_config.rbs +15 -0
- data/sig/anthropic/models/computer_left_click_config.rbs +15 -0
- data/sig/anthropic/models/computer_left_click_drag_config.rbs +16 -0
- data/sig/anthropic/models/computer_left_mouse_down_config.rbs +16 -0
- data/sig/anthropic/models/computer_left_mouse_up_config.rbs +16 -0
- data/sig/anthropic/models/computer_middle_click_config.rbs +15 -0
- data/sig/anthropic/models/computer_mouse_move_config.rbs +15 -0
- data/sig/anthropic/models/computer_right_click_config.rbs +15 -0
- data/sig/anthropic/models/computer_screenshot_config.rbs +15 -0
- data/sig/anthropic/models/computer_scroll_config.rbs +15 -0
- data/sig/anthropic/models/computer_toolset_20260801.rbs +56 -0
- data/sig/anthropic/models/computer_toolset_configs.rbs +100 -0
- data/sig/anthropic/models/computer_triple_click_config.rbs +15 -0
- data/sig/anthropic/models/computer_type_config.rbs +15 -0
- data/sig/anthropic/models/computer_wait_config.rbs +15 -0
- data/sig/anthropic/models/computer_zoom_config.rbs +15 -0
- data/sig/anthropic/models/container.rbs +18 -3
- data/sig/anthropic/models/container_params.rbs +19 -0
- data/sig/anthropic/models/container_skill.rbs +41 -0
- data/sig/anthropic/models/content_block.rbs +3 -1
- data/sig/anthropic/models/content_block_param.rbs +8 -3
- data/sig/anthropic/models/content_block_source_content.rbs +4 -2
- data/sig/anthropic/models/deleted_file.rbs +36 -0
- data/sig/anthropic/models/deleted_skill.rbs +15 -0
- data/sig/anthropic/models/document_block_param.rbs +7 -1
- data/sig/anthropic/models/file_delete_params.rbs +23 -0
- data/sig/anthropic/models/file_document_source.rbs +15 -0
- data/sig/anthropic/models/file_download_params.rbs +23 -0
- data/sig/anthropic/models/file_image_source.rbs +15 -0
- data/sig/anthropic/models/file_list_params.rbs +34 -0
- data/sig/anthropic/models/file_metadata.rbs +57 -0
- data/sig/anthropic/models/file_retrieve_metadata_params.rbs +23 -0
- data/sig/anthropic/models/file_upload_params.rbs +30 -0
- data/sig/anthropic/models/image_block_param.rbs +17 -4
- data/sig/anthropic/models/image_transformations_param.rbs +35 -0
- data/sig/anthropic/models/message_count_tokens_tool.rbs +2 -0
- data/sig/anthropic/models/message_create_params.rbs +4 -4
- data/sig/anthropic/models/message_create_params_container.rbs +11 -0
- data/sig/anthropic/models/messages/batch_create_params.rbs +4 -4
- data/sig/anthropic/models/raw_content_block_start_event.rbs +3 -1
- data/sig/anthropic/models/skill.rbs +50 -0
- data/sig/anthropic/models/skill_create_params.rbs +28 -0
- data/sig/anthropic/models/skill_delete_params.rbs +23 -0
- data/sig/anthropic/models/skill_list_params.rbs +34 -0
- data/sig/anthropic/models/skill_params.rbs +43 -0
- data/sig/anthropic/models/skill_retrieve_params.rbs +23 -0
- data/sig/anthropic/models/skill_source.rbs +26 -0
- data/sig/anthropic/models/skills/deleted_skill_version.rbs +17 -0
- data/sig/anthropic/models/skills/skill_version.rbs +49 -0
- data/sig/anthropic/models/skills/version_create_params.rbs +30 -0
- data/sig/anthropic/models/skills/version_delete_params.rbs +30 -0
- data/sig/anthropic/models/skills/version_list_params.rbs +34 -0
- data/sig/anthropic/models/skills/version_retrieve_params.rbs +30 -0
- data/sig/anthropic/models/tool_result_block_param.rbs +20 -4
- data/sig/anthropic/models/tool_union.rbs +2 -0
- data/sig/anthropic/models/tool_use_block.rbs +7 -2
- data/sig/anthropic/models/tool_use_block_param.rbs +7 -2
- data/sig/anthropic/models.rbs +162 -0
- data/sig/anthropic/resources/beta/files.rbs +4 -4
- data/sig/anthropic/resources/beta/messages.rbs +30 -0
- data/sig/anthropic/resources/files.rbs +35 -0
- data/sig/anthropic/resources/messages.rbs +24 -2
- data/sig/anthropic/resources/skills/versions.rbs +34 -0
- data/sig/anthropic/resources/skills.rbs +32 -0
- metadata +505 -7
- data/sig/anthropic/models/beta/deleted_file.rbs +0 -38
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ComputerTripleClickConfig < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Anthropic::ComputerTripleClickConfig,
|
|
10
|
+
Anthropic::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
15
|
+
# member of the toolset.
|
|
16
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
+
attr_accessor :defer_loading
|
|
18
|
+
|
|
19
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
20
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
21
|
+
# the served schema.
|
|
22
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
23
|
+
attr_accessor :enabled
|
|
24
|
+
|
|
25
|
+
# `triple_click`'s config overrides.
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
defer_loading: T.nilable(T::Boolean),
|
|
29
|
+
enabled: T.nilable(T::Boolean)
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(
|
|
33
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
34
|
+
# member of the toolset.
|
|
35
|
+
defer_loading: nil,
|
|
36
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
37
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
38
|
+
# the served schema.
|
|
39
|
+
enabled: nil
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
override.returns(
|
|
45
|
+
{
|
|
46
|
+
defer_loading: T.nilable(T::Boolean),
|
|
47
|
+
enabled: T.nilable(T::Boolean)
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def to_hash
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ComputerTypeConfig < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::ComputerTypeConfig, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
12
|
+
# member of the toolset.
|
|
13
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
14
|
+
attr_accessor :defer_loading
|
|
15
|
+
|
|
16
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
17
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
18
|
+
# the served schema.
|
|
19
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
20
|
+
attr_accessor :enabled
|
|
21
|
+
|
|
22
|
+
# `type`'s config overrides.
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
defer_loading: T.nilable(T::Boolean),
|
|
26
|
+
enabled: T.nilable(T::Boolean)
|
|
27
|
+
).returns(T.attached_class)
|
|
28
|
+
end
|
|
29
|
+
def self.new(
|
|
30
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
31
|
+
# member of the toolset.
|
|
32
|
+
defer_loading: nil,
|
|
33
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
34
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
35
|
+
# the served schema.
|
|
36
|
+
enabled: nil
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
defer_loading: T.nilable(T::Boolean),
|
|
44
|
+
enabled: T.nilable(T::Boolean)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
def to_hash
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ComputerWaitConfig < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::ComputerWaitConfig, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
12
|
+
# member of the toolset.
|
|
13
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
14
|
+
attr_accessor :defer_loading
|
|
15
|
+
|
|
16
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
17
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
18
|
+
# the served schema.
|
|
19
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
20
|
+
attr_accessor :enabled
|
|
21
|
+
|
|
22
|
+
# `wait`'s config overrides.
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
defer_loading: T.nilable(T::Boolean),
|
|
26
|
+
enabled: T.nilable(T::Boolean)
|
|
27
|
+
).returns(T.attached_class)
|
|
28
|
+
end
|
|
29
|
+
def self.new(
|
|
30
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
31
|
+
# member of the toolset.
|
|
32
|
+
defer_loading: nil,
|
|
33
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
34
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
35
|
+
# the served schema.
|
|
36
|
+
enabled: nil
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
defer_loading: T.nilable(T::Boolean),
|
|
44
|
+
enabled: T.nilable(T::Boolean)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
def to_hash
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ComputerZoomConfig < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::ComputerZoomConfig, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
12
|
+
# member of the toolset.
|
|
13
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
14
|
+
attr_accessor :defer_loading
|
|
15
|
+
|
|
16
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
17
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
18
|
+
# the served schema.
|
|
19
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
20
|
+
attr_accessor :enabled
|
|
21
|
+
|
|
22
|
+
# `zoom`'s config overrides.
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
defer_loading: T.nilable(T::Boolean),
|
|
26
|
+
enabled: T.nilable(T::Boolean)
|
|
27
|
+
).returns(T.attached_class)
|
|
28
|
+
end
|
|
29
|
+
def self.new(
|
|
30
|
+
# Defer loading for this member. Must resolve to the same value on every enabled
|
|
31
|
+
# member of the toolset.
|
|
32
|
+
defer_loading: nil,
|
|
33
|
+
# Whether this member is offered to the model. Default is per member, per the
|
|
34
|
+
# toolset's documentation. A member whose enabled resolves false is withheld from
|
|
35
|
+
# the served schema.
|
|
36
|
+
enabled: nil
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
defer_loading: T.nilable(T::Boolean),
|
|
44
|
+
enabled: T.nilable(T::Boolean)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
def to_hash
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -16,18 +16,38 @@ module Anthropic
|
|
|
16
16
|
sig { returns(Time) }
|
|
17
17
|
attr_accessor :expires_at
|
|
18
18
|
|
|
19
|
+
# Skills loaded in the container
|
|
20
|
+
sig { returns(T.nilable(T::Array[Anthropic::ContainerSkill])) }
|
|
21
|
+
attr_accessor :skills
|
|
22
|
+
|
|
19
23
|
# Information about the container used in the request (for the code execution
|
|
20
24
|
# tool)
|
|
21
|
-
sig
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
id: String,
|
|
28
|
+
expires_at: Time,
|
|
29
|
+
skills: T.nilable(T::Array[Anthropic::ContainerSkill::OrHash])
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
22
32
|
def self.new(
|
|
23
33
|
# Identifier for the container used in this request
|
|
24
34
|
id:,
|
|
25
35
|
# The time at which the container will expire.
|
|
26
|
-
expires_at
|
|
36
|
+
expires_at:,
|
|
37
|
+
# Skills loaded in the container
|
|
38
|
+
skills:
|
|
27
39
|
)
|
|
28
40
|
end
|
|
29
41
|
|
|
30
|
-
sig
|
|
42
|
+
sig do
|
|
43
|
+
override.returns(
|
|
44
|
+
{
|
|
45
|
+
id: String,
|
|
46
|
+
expires_at: Time,
|
|
47
|
+
skills: T.nilable(T::Array[Anthropic::ContainerSkill])
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
31
51
|
def to_hash
|
|
32
52
|
end
|
|
33
53
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ContainerParams < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::ContainerParams, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Container id
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# List of skills to load in the container
|
|
16
|
+
sig { returns(T.nilable(T::Array[Anthropic::SkillParams])) }
|
|
17
|
+
attr_accessor :skills
|
|
18
|
+
|
|
19
|
+
# Container parameters with skills to be loaded.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
id: T.nilable(String),
|
|
23
|
+
skills: T.nilable(T::Array[Anthropic::SkillParams::OrHash])
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(
|
|
27
|
+
# Container id
|
|
28
|
+
id: nil,
|
|
29
|
+
# List of skills to load in the container
|
|
30
|
+
skills: nil
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
override.returns(
|
|
36
|
+
{
|
|
37
|
+
id: T.nilable(String),
|
|
38
|
+
skills: T.nilable(T::Array[Anthropic::SkillParams])
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
def to_hash
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class ContainerSkill < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::ContainerSkill, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Skill ID
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :skill_id
|
|
14
|
+
|
|
15
|
+
# Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
16
|
+
sig { returns(Anthropic::ContainerSkill::Type::TaggedSymbol) }
|
|
17
|
+
attr_accessor :type
|
|
18
|
+
|
|
19
|
+
# The resolved version: a skill version ID for custom skills.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :version
|
|
22
|
+
|
|
23
|
+
# A skill that was loaded in a container (response model).
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
skill_id: String,
|
|
27
|
+
type: Anthropic::ContainerSkill::Type::OrSymbol,
|
|
28
|
+
version: String
|
|
29
|
+
).returns(T.attached_class)
|
|
30
|
+
end
|
|
31
|
+
def self.new(
|
|
32
|
+
# Skill ID
|
|
33
|
+
skill_id:,
|
|
34
|
+
# Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
35
|
+
type:,
|
|
36
|
+
# The resolved version: a skill version ID for custom skills.
|
|
37
|
+
version:
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
skill_id: String,
|
|
45
|
+
type: Anthropic::ContainerSkill::Type::TaggedSymbol,
|
|
46
|
+
version: String
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
def to_hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
54
|
+
module Type
|
|
55
|
+
extend Anthropic::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
TaggedSymbol =
|
|
58
|
+
T.type_alias { T.all(Symbol, Anthropic::ContainerSkill::Type) }
|
|
59
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
60
|
+
|
|
61
|
+
ANTHROPIC =
|
|
62
|
+
T.let(:anthropic, Anthropic::ContainerSkill::Type::TaggedSymbol)
|
|
63
|
+
CUSTOM = T.let(:custom, Anthropic::ContainerSkill::Type::TaggedSymbol)
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
override.returns(
|
|
67
|
+
T::Array[Anthropic::ContainerSkill::Type::TaggedSymbol]
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
def self.values
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -58,6 +58,7 @@ module Anthropic
|
|
|
58
58
|
),
|
|
59
59
|
input: T::Hash[Symbol, T.anything],
|
|
60
60
|
name: T.any(String, Anthropic::ServerToolUseBlock::Name::OrSymbol),
|
|
61
|
+
toolset_name: T.nilable(String),
|
|
61
62
|
content:
|
|
62
63
|
T.any(
|
|
63
64
|
T.any(
|
|
@@ -130,6 +131,8 @@ module Anthropic
|
|
|
130
131
|
caller_: nil,
|
|
131
132
|
input: nil,
|
|
132
133
|
name: nil,
|
|
134
|
+
# For a toolset member tool_use, the toolset family.
|
|
135
|
+
toolset_name: nil,
|
|
133
136
|
# Code execution result with encrypted stdout for PFC + web_search results.
|
|
134
137
|
content: nil,
|
|
135
138
|
tool_use_id: nil,
|
|
@@ -59,16 +59,20 @@ module Anthropic
|
|
|
59
59
|
T.any(
|
|
60
60
|
T.any(
|
|
61
61
|
Anthropic::Base64ImageSource::OrHash,
|
|
62
|
-
Anthropic::URLImageSource::OrHash
|
|
62
|
+
Anthropic::URLImageSource::OrHash,
|
|
63
|
+
Anthropic::FileImageSource::OrHash
|
|
63
64
|
),
|
|
64
65
|
T.any(
|
|
65
66
|
Anthropic::Base64PDFSource::OrHash,
|
|
66
67
|
Anthropic::PlainTextSource::OrHash,
|
|
67
68
|
Anthropic::ContentBlockSource::OrHash,
|
|
68
|
-
Anthropic::URLPDFSource::OrHash
|
|
69
|
+
Anthropic::URLPDFSource::OrHash,
|
|
70
|
+
Anthropic::FileDocumentSource::OrHash
|
|
69
71
|
),
|
|
70
72
|
String
|
|
71
73
|
),
|
|
74
|
+
transformations:
|
|
75
|
+
T.nilable(Anthropic::ImageTransformationsParam::OrHash),
|
|
72
76
|
context: T.nilable(String),
|
|
73
77
|
title: T.any(T.nilable(String), String),
|
|
74
78
|
content:
|
|
@@ -116,6 +120,7 @@ module Anthropic
|
|
|
116
120
|
Anthropic::ServerToolCaller::OrHash,
|
|
117
121
|
Anthropic::ServerToolCaller20260120::OrHash
|
|
118
122
|
),
|
|
123
|
+
toolset_name: T.nilable(String),
|
|
119
124
|
tool_use_id: String,
|
|
120
125
|
is_error: T::Boolean,
|
|
121
126
|
file_id: String
|
|
@@ -128,6 +133,11 @@ module Anthropic
|
|
|
128
133
|
cache_control: nil,
|
|
129
134
|
citations: nil,
|
|
130
135
|
source: nil,
|
|
136
|
+
# Configures the transformations the server applies to this image before the model
|
|
137
|
+
# observes it. Each key names a condition the server transforms images for; its
|
|
138
|
+
# value selects the transformation applied. Omitted keys keep their default
|
|
139
|
+
# behavior, and an empty object is equivalent to omitting the field.
|
|
140
|
+
transformations: nil,
|
|
131
141
|
context: nil,
|
|
132
142
|
title: nil,
|
|
133
143
|
# Code execution result with encrypted stdout for PFC + web_search results.
|
|
@@ -148,6 +158,8 @@ module Anthropic
|
|
|
148
158
|
name: nil,
|
|
149
159
|
# Tool invocation directly from the model.
|
|
150
160
|
caller_: nil,
|
|
161
|
+
# For a toolset member tool_use, the toolset family this member belongs to.
|
|
162
|
+
toolset_name: nil,
|
|
151
163
|
tool_use_id: nil,
|
|
152
164
|
is_error: nil,
|
|
153
165
|
file_id: nil
|
|
@@ -40,8 +40,11 @@ module Anthropic
|
|
|
40
40
|
source:
|
|
41
41
|
T.any(
|
|
42
42
|
Anthropic::Base64ImageSource::OrHash,
|
|
43
|
-
Anthropic::URLImageSource::OrHash
|
|
44
|
-
|
|
43
|
+
Anthropic::URLImageSource::OrHash,
|
|
44
|
+
Anthropic::FileImageSource::OrHash
|
|
45
|
+
),
|
|
46
|
+
transformations:
|
|
47
|
+
T.nilable(Anthropic::ImageTransformationsParam::OrHash)
|
|
45
48
|
).returns(Anthropic::ContentBlockSourceContent::Variants)
|
|
46
49
|
end
|
|
47
50
|
def self.new(
|
|
@@ -50,7 +53,12 @@ module Anthropic
|
|
|
50
53
|
# Create a cache control breakpoint at this content block.
|
|
51
54
|
cache_control: nil,
|
|
52
55
|
citations: nil,
|
|
53
|
-
source: nil
|
|
56
|
+
source: nil,
|
|
57
|
+
# Configures the transformations the server applies to this image before the model
|
|
58
|
+
# observes it. Each key names a condition the server transforms images for; its
|
|
59
|
+
# value selects the transformation applied. Omitted keys keep their default
|
|
60
|
+
# behavior, and an empty object is equivalent to omitting the field.
|
|
61
|
+
transformations: nil
|
|
54
62
|
)
|
|
55
63
|
end
|
|
56
64
|
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class DeletedFile < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::DeletedFile, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# ID of the deleted file.
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# Deleted object type.
|
|
16
|
+
#
|
|
17
|
+
# For file deletion, this is always `"file_deleted"`.
|
|
18
|
+
sig { returns(T.nilable(Anthropic::DeletedFile::Type::TaggedSymbol)) }
|
|
19
|
+
attr_reader :type
|
|
20
|
+
|
|
21
|
+
sig { params(type: Anthropic::DeletedFile::Type::OrSymbol).void }
|
|
22
|
+
attr_writer :type
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
id: String,
|
|
27
|
+
type: Anthropic::DeletedFile::Type::OrSymbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# ID of the deleted file.
|
|
32
|
+
id:,
|
|
33
|
+
# Deleted object type.
|
|
34
|
+
#
|
|
35
|
+
# For file deletion, this is always `"file_deleted"`.
|
|
36
|
+
type: nil
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{ id: String, type: Anthropic::DeletedFile::Type::TaggedSymbol }
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def to_hash
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Deleted object type.
|
|
49
|
+
#
|
|
50
|
+
# For file deletion, this is always `"file_deleted"`.
|
|
51
|
+
module Type
|
|
52
|
+
extend Anthropic::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
TaggedSymbol =
|
|
55
|
+
T.type_alias { T.all(Symbol, Anthropic::DeletedFile::Type) }
|
|
56
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
57
|
+
|
|
58
|
+
FILE_DELETED =
|
|
59
|
+
T.let(:file_deleted, Anthropic::DeletedFile::Type::TaggedSymbol)
|
|
60
|
+
|
|
61
|
+
sig do
|
|
62
|
+
override.returns(T::Array[Anthropic::DeletedFile::Type::TaggedSymbol])
|
|
63
|
+
end
|
|
64
|
+
def self.values
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class DeletedSkill < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Anthropic::DeletedSkill, Anthropic::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Unique identifier for the skill.
|
|
12
|
+
#
|
|
13
|
+
# The format and length of IDs may change over time.
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :id
|
|
16
|
+
|
|
17
|
+
# Deleted object type.
|
|
18
|
+
#
|
|
19
|
+
# For Skills, this is always `"skill_deleted"`.
|
|
20
|
+
sig { returns(Symbol) }
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
sig { params(id: String, type: Symbol).returns(T.attached_class) }
|
|
24
|
+
def self.new(
|
|
25
|
+
# Unique identifier for the skill.
|
|
26
|
+
#
|
|
27
|
+
# The format and length of IDs may change over time.
|
|
28
|
+
id:,
|
|
29
|
+
# Deleted object type.
|
|
30
|
+
#
|
|
31
|
+
# For Skills, this is always `"skill_deleted"`.
|
|
32
|
+
type: :skill_deleted
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { override.returns({ id: String, type: Symbol }) }
|
|
37
|
+
def to_hash
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -14,7 +14,8 @@ module Anthropic
|
|
|
14
14
|
Anthropic::Base64PDFSource,
|
|
15
15
|
Anthropic::PlainTextSource,
|
|
16
16
|
Anthropic::ContentBlockSource,
|
|
17
|
-
Anthropic::URLPDFSource
|
|
17
|
+
Anthropic::URLPDFSource,
|
|
18
|
+
Anthropic::FileDocumentSource
|
|
18
19
|
)
|
|
19
20
|
)
|
|
20
21
|
end
|
|
@@ -57,7 +58,8 @@ module Anthropic
|
|
|
57
58
|
Anthropic::Base64PDFSource::OrHash,
|
|
58
59
|
Anthropic::PlainTextSource::OrHash,
|
|
59
60
|
Anthropic::ContentBlockSource::OrHash,
|
|
60
|
-
Anthropic::URLPDFSource::OrHash
|
|
61
|
+
Anthropic::URLPDFSource::OrHash,
|
|
62
|
+
Anthropic::FileDocumentSource::OrHash
|
|
61
63
|
),
|
|
62
64
|
cache_control: T.nilable(Anthropic::CacheControlEphemeral::OrHash),
|
|
63
65
|
citations: T.nilable(Anthropic::CitationsConfigParam::OrHash),
|
|
@@ -85,7 +87,8 @@ module Anthropic
|
|
|
85
87
|
Anthropic::Base64PDFSource,
|
|
86
88
|
Anthropic::PlainTextSource,
|
|
87
89
|
Anthropic::ContentBlockSource,
|
|
88
|
-
Anthropic::URLPDFSource
|
|
90
|
+
Anthropic::URLPDFSource,
|
|
91
|
+
Anthropic::FileDocumentSource
|
|
89
92
|
),
|
|
90
93
|
type: Symbol,
|
|
91
94
|
cache_control: T.nilable(Anthropic::CacheControlEphemeral),
|
|
@@ -107,7 +110,8 @@ module Anthropic
|
|
|
107
110
|
Anthropic::Base64PDFSource,
|
|
108
111
|
Anthropic::PlainTextSource,
|
|
109
112
|
Anthropic::ContentBlockSource,
|
|
110
|
-
Anthropic::URLPDFSource
|
|
113
|
+
Anthropic::URLPDFSource,
|
|
114
|
+
Anthropic::FileDocumentSource
|
|
111
115
|
)
|
|
112
116
|
end
|
|
113
117
|
|
|
@@ -127,10 +131,18 @@ module Anthropic
|
|
|
127
131
|
data: String,
|
|
128
132
|
media_type: Symbol,
|
|
129
133
|
content: Anthropic::ContentBlockSource::Content::Variants,
|
|
130
|
-
url: String
|
|
134
|
+
url: String,
|
|
135
|
+
file_id: String
|
|
131
136
|
).returns(Anthropic::DocumentBlockParam::Source::Variants)
|
|
132
137
|
end
|
|
133
|
-
def self.new(
|
|
138
|
+
def self.new(
|
|
139
|
+
type:,
|
|
140
|
+
data: nil,
|
|
141
|
+
media_type: nil,
|
|
142
|
+
content: nil,
|
|
143
|
+
url: nil,
|
|
144
|
+
file_id: nil
|
|
145
|
+
)
|
|
134
146
|
end
|
|
135
147
|
end
|
|
136
148
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class FileDeleteParams < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Anthropic::FileDeleteParams, Anthropic::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# ID of the File.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :file_id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
file_id: String,
|
|
21
|
+
request_options: Anthropic::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(
|
|
25
|
+
# ID of the File.
|
|
26
|
+
file_id:,
|
|
27
|
+
request_options: {}
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ file_id: String, request_options: Anthropic::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|