anthropic 1.59.0 → 1.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +98 -1
- data/README.md +1 -1
- data/lib/anthropic/client.rb +37 -6
- data/lib/anthropic/errors.rb +6 -0
- data/lib/anthropic/helpers/aws/client.rb +9 -17
- data/lib/anthropic/helpers/aws_auth.rb +13 -2
- data/lib/anthropic/helpers/bedrock/client.rb +27 -17
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +12 -0
- data/lib/anthropic/helpers/google_cloud/client.rb +16 -27
- data/lib/anthropic/helpers/messages.rb +21 -15
- data/lib/anthropic/helpers/streaming/message_stream.rb +37 -8
- data/lib/anthropic/helpers/tools/base_tool.rb +69 -10
- data/lib/anthropic/helpers/tools/mcp.rb +2 -2
- data/lib/anthropic/helpers/tools/runner.rb +33 -19
- data/lib/anthropic/helpers/vertex/client.rb +32 -13
- data/lib/anthropic/internal/page_cursor.rb +2 -2
- data/lib/anthropic/internal/type/base_model.rb +5 -1
- data/lib/anthropic/internal/type/base_stream.rb +10 -0
- data/lib/anthropic/internal/type/union.rb +3 -1
- data/lib/anthropic/models/anthropic_beta.rb +6 -0
- data/lib/anthropic/models/beta/agent_create_params.rb +39 -2
- data/lib/anthropic/models/beta/agent_update_params.rb +39 -2
- data/lib/anthropic/models/beta/beta_advisor_message_iteration_usage.rb +2 -2
- 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_citations_delta.rb +59 -0
- data/lib/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rb +22 -0
- data/lib/anthropic/models/beta/beta_cloud_config.rb +29 -0
- data/lib/anthropic/models/beta/beta_cloud_config_params.rb +32 -3
- data/lib/anthropic/models/beta/beta_code_execution_tool_20260120.rb +3 -3
- data/lib/anthropic/models/beta/beta_code_execution_tool_20260521.rb +2 -2
- 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 +91 -0
- data/lib/anthropic/models/beta/beta_content_block_param.rb +116 -7
- data/lib/anthropic/models/beta/beta_content_block_source_content.rb +33 -0
- data/lib/anthropic/models/beta/beta_context_management_config.rb +39 -0
- data/lib/anthropic/models/beta/beta_context_management_response.rb +26 -0
- data/lib/anthropic/models/beta/{deleted_file.rb → beta_deleted_file.rb} +8 -6
- data/lib/anthropic/models/beta/beta_diagnostics.rb +36 -3
- data/lib/anthropic/models/beta/beta_diagnostics_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_document_block.rb +24 -0
- data/lib/anthropic/models/beta/beta_dream.rb +18 -7
- data/lib/anthropic/models/beta/beta_dream_input.rb +28 -2
- data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +3 -1
- data/lib/anthropic/models/beta/beta_dream_model_config.rb +5 -5
- data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +4 -4
- data/lib/anthropic/models/beta/beta_environment.rb +30 -6
- data/lib/anthropic/models/beta/beta_fallback_block.rb +3 -3
- data/lib/anthropic/models/beta/beta_fallback_block_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_fallback_credit_not_applied.rb +2 -2
- data/lib/anthropic/models/beta/beta_fallback_credit_token_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_fallback_credit_usage.rb +29 -2
- data/lib/anthropic/models/beta/beta_fallback_info.rb +2 -2
- data/lib/anthropic/models/beta/beta_fallback_info_param.rb +2 -2
- data/lib/anthropic/models/beta/beta_fallback_message_iteration_usage.rb +3 -3
- data/lib/anthropic/models/beta/beta_fallback_param.rb +32 -3
- data/lib/anthropic/models/beta/{file_metadata.rb → beta_file_metadata.rb} +4 -2
- data/lib/anthropic/models/beta/beta_image_block_param.rb +45 -1
- data/lib/anthropic/models/beta/beta_image_transformations_param.rb +51 -0
- data/lib/anthropic/models/beta/beta_iterations_usage.rb +39 -0
- data/lib/anthropic/models/beta/beta_limited_network.rb +2 -2
- data/lib/anthropic/models/beta/beta_limited_network_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_advisor.rb +40 -0
- data/lib/anthropic/models/beta/beta_managed_agents_advisor_params.rb +45 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent.rb +60 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config.rb +66 -52
- data/lib/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rb +70 -59
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_bash_input.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_edit_input.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_glob_input.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_grep_input.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_toolset20260401_read_input.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config.rb +20 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rb +22 -2
- data/lib/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rb +45 -7
- 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_budget_limit.rb +40 -0
- data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_cron_schedule_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +4 -4
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_delta_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment.rb +12 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +44 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +53 -3
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rb +24 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rb +38 -3
- 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_github_repository_resource_config.rb +24 -0
- data/lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rb +24 -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_mcp_tool_config.rb +20 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rb +20 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rb +20 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rb +20 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_toolset_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_config.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_model_config.rb +38 -3
- data/lib/anthropic/models/beta/beta_managed_agents_model_config_params.rb +13 -3
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent.rb +47 -5
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rb +47 -5
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rb +5 -5
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_params.rb +5 -5
- data/lib/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rb +4 -1
- data/lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb +2 -2
- 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_schedule.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_schedule_params.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_server_tool_usage.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session.rb +12 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent.rb +61 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +41 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +57 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_config.rb +41 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_stats.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +58 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +14 -5
- data/lib/anthropic/models/beta/beta_managed_agents_session_usage.rb +31 -1
- data/lib/anthropic/models/beta/beta_managed_agents_session_usage_event.rb +67 -0
- data/lib/anthropic/models/beta/beta_managed_agents_skill_params.rb +24 -0
- data/lib/anthropic/models/beta/beta_managed_agents_start_event.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_start_event_preview.rb +25 -0
- data/lib/anthropic/models/beta/beta_managed_agents_trigger_context.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_url_mcp_server_params.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_user_location.rb +54 -0
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +40 -4
- 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_memory_tool_20250818_command.rb +46 -0
- data/lib/anthropic/models/beta/beta_message_iteration_usage.rb +2 -2
- data/lib/anthropic/models/beta/beta_message_param.rb +3 -3
- data/lib/anthropic/models/beta/beta_output_behavior.rb +49 -0
- data/lib/anthropic/models/beta/beta_output_behavior_create_new.rb +33 -0
- data/lib/anthropic/models/beta/beta_output_behavior_update_existing.rb +39 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_delta.rb +47 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +92 -0
- data/lib/anthropic/models/beta/beta_raw_message_stream_event.rb +43 -0
- data/lib/anthropic/models/beta/beta_redacted_thinking_block.rb +15 -1
- data/lib/anthropic/models/beta/beta_redacted_thinking_block_param.rb +7 -1
- data/lib/anthropic/models/beta/beta_refusal_stop_details.rb +2 -2
- data/lib/anthropic/models/beta/beta_request_document_block.rb +36 -0
- data/lib/anthropic/models/beta/beta_request_tool_addition_block.rb +29 -3
- data/lib/anthropic/models/beta/beta_request_tool_removal_block.rb +29 -3
- data/lib/anthropic/models/beta/beta_server_tool_use_block.rb +24 -0
- data/lib/anthropic/models/beta/beta_server_tool_use_block_param.rb +24 -0
- data/lib/anthropic/models/beta/beta_signature_delta.rb +8 -1
- data/lib/anthropic/models/beta/beta_skill.rb +2 -2
- data/lib/anthropic/models/beta/beta_text_citation.rb +59 -0
- data/lib/anthropic/models/beta/beta_text_citation_param.rb +57 -0
- data/lib/anthropic/models/beta/beta_thinking_block.rb +18 -2
- data/lib/anthropic/models/beta/beta_thinking_block_param.rb +13 -2
- data/lib/anthropic/models/beta/beta_thinking_config_param.rb +29 -0
- data/lib/anthropic/models/beta/beta_thinking_delta.rb +4 -1
- data/lib/anthropic/models/beta/beta_token_task_budget.rb +2 -2
- data/lib/anthropic/models/beta/beta_tool_choice.rb +31 -0
- data/lib/anthropic/models/beta/beta_tool_choice_any.rb +2 -2
- data/lib/anthropic/models/beta/beta_tool_choice_auto.rb +2 -2
- data/lib/anthropic/models/beta/beta_tool_choice_tool.rb +2 -2
- data/lib/anthropic/models/beta/beta_tool_result_block_param.rb +76 -5
- data/lib/anthropic/models/beta/beta_tool_union.rb +17 -1
- data/lib/anthropic/models/beta/beta_tool_use_block.rb +33 -1
- data/lib/anthropic/models/beta/beta_tool_use_block_param.rb +33 -1
- data/lib/anthropic/models/beta/beta_tunnel.rb +2 -2
- data/lib/anthropic/models/beta/beta_tunnel_token.rb +2 -2
- data/lib/anthropic/models/beta/beta_user_profile.rb +56 -26
- data/lib/anthropic/models/beta/beta_web_fetch_tool_20260309.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block.rb +24 -0
- data/lib/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rb +24 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +24 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +24 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +117 -1
- data/lib/anthropic/models/beta/beta_webhook_session_budget_reached_event_data.rb +41 -0
- data/lib/anthropic/models/beta/deployment_create_params.rb +52 -1
- data/lib/anthropic/models/beta/deployment_update_params.rb +52 -1
- data/lib/anthropic/models/beta/dream_create_params.rb +14 -1
- data/lib/anthropic/models/beta/environment_create_params.rb +27 -0
- data/lib/anthropic/models/beta/environment_update_params.rb +30 -2
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work.rb +3 -3
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rb +4 -4
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_update_request.rb +2 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +40 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +3 -3
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +4 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +46 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +4 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +42 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +4 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +8 -8
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +4 -4
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rb +30 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +3 -3
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.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 +6 -6
- data/lib/anthropic/models/beta/messages/beta_message_batch_individual_response.rb +3 -3
- data/lib/anthropic/models/beta/messages/beta_message_batch_result.rb +28 -0
- data/lib/anthropic/models/beta/session_create_params.rb +80 -1
- data/lib/anthropic/models/beta/session_update_params.rb +10 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_custom_tool_use_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rb +36 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_use_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rb +41 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rb +41 -6
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rb +41 -6
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rb +36 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_use_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_base64_image_source.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_document_block.rb +32 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +54 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rb +24 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_image_block.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rb +31 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +60 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +44 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +164 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_requires_action.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +51 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rb +36 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +60 -10
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_stats.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb +36 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rb +31 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rb +76 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_model_usage.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_end_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_ongoing_event.rb +4 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_span_outcome_evaluation_start_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +174 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +174 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_text_rubric_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +22 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rb +38 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rb +38 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rb +27 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rb +28 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_interrupt_event_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rb +38 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rb +38 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_confirmation_event_params.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +40 -4
- data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +50 -0
- data/lib/anthropic/models/beta/sessions/resource_update_response.rb +50 -0
- data/lib/anthropic/models/beta/unwrap_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/user_profile_create_params.rb +32 -4
- data/lib/anthropic/models/beta/user_profile_update_params.rb +28 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +34 -0
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +26 -0
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +26 -0
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +24 -0
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +22 -0
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +22 -0
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +40 -0
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +36 -0
- data/lib/anthropic/models/beta_currency.rb +14 -0
- data/lib/anthropic/models/beta_error.rb +36 -0
- data/lib/anthropic/models/beta_monetary_amount.rb +33 -0
- 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/citations_delta.rb +59 -0
- data/lib/anthropic/models/code_execution_tool_20260120.rb +3 -3
- data/lib/anthropic/models/code_execution_tool_20260521.rb +2 -2
- 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 +69 -0
- data/lib/anthropic/models/content_block_param.rb +90 -7
- data/lib/anthropic/models/content_block_source_content.rb +33 -0
- data/lib/anthropic/models/deleted_file.rb +44 -0
- data/lib/anthropic/models/deleted_skill.rb +32 -0
- data/lib/anthropic/models/document_block.rb +24 -0
- data/lib/anthropic/models/document_block_param.rb +41 -3
- data/lib/anthropic/models/error_object.rb +36 -0
- 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 +50 -4
- 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/message_param.rb +3 -3
- data/lib/anthropic/models/messages/batch_create_params.rb +9 -9
- data/lib/anthropic/models/messages/message_batch_individual_response.rb +3 -3
- data/lib/anthropic/models/messages/message_batch_result.rb +28 -0
- data/lib/anthropic/models/model.rb +0 -16
- data/lib/anthropic/models/raw_content_block_delta.rb +39 -0
- data/lib/anthropic/models/raw_content_block_start_event.rb +69 -0
- data/lib/anthropic/models/raw_message_stream_event.rb +41 -0
- data/lib/anthropic/models/redacted_thinking_block.rb +15 -1
- data/lib/anthropic/models/redacted_thinking_block_param.rb +7 -1
- data/lib/anthropic/models/refusal_stop_details.rb +2 -2
- data/lib/anthropic/models/server_tool_use_block.rb +24 -0
- data/lib/anthropic/models/server_tool_use_block_param.rb +24 -0
- data/lib/anthropic/models/signature_delta.rb +8 -1
- 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/text_citation.rb +59 -0
- data/lib/anthropic/models/text_citation_param.rb +57 -0
- data/lib/anthropic/models/thinking_block.rb +18 -2
- data/lib/anthropic/models/thinking_block_param.rb +13 -2
- data/lib/anthropic/models/thinking_config_param.rb +29 -0
- data/lib/anthropic/models/thinking_delta.rb +8 -1
- data/lib/anthropic/models/tool_choice.rb +31 -0
- data/lib/anthropic/models/tool_choice_any.rb +2 -2
- data/lib/anthropic/models/tool_choice_auto.rb +2 -2
- data/lib/anthropic/models/tool_choice_tool.rb +2 -2
- data/lib/anthropic/models/tool_result_block_param.rb +75 -5
- data/lib/anthropic/models/tool_union.rb +17 -1
- data/lib/anthropic/models/tool_use_block.rb +33 -1
- data/lib/anthropic/models/tool_use_block_param.rb +33 -1
- data/lib/anthropic/models/web_fetch_tool_20260309.rb +2 -2
- data/lib/anthropic/models/web_fetch_tool_result_block.rb +24 -0
- data/lib/anthropic/models/web_fetch_tool_result_block_param.rb +24 -0
- data/lib/anthropic/models/web_search_tool_result_block.rb +24 -0
- data/lib/anthropic/models/web_search_tool_result_block_param.rb +24 -0
- data/lib/anthropic/models.rb +166 -2
- data/lib/anthropic/resources/beta/agents.rb +6 -6
- data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
- data/lib/anthropic/resources/beta/deployments.rb +12 -8
- data/lib/anthropic/resources/beta/dreams.rb +8 -3
- data/lib/anthropic/resources/beta/environments/work.rb +9 -9
- data/lib/anthropic/resources/beta/environments.rb +7 -7
- data/lib/anthropic/resources/beta/files.rb +10 -10
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +6 -6
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +4 -1
- data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
- data/lib/anthropic/resources/beta/messages/batches.rb +6 -6
- data/lib/anthropic/resources/beta/messages.rb +44 -23
- data/lib/anthropic/resources/beta/models.rb +3 -3
- data/lib/anthropic/resources/beta/sessions/events.rb +6 -6
- data/lib/anthropic/resources/beta/sessions/resources.rb +6 -6
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +4 -4
- data/lib/anthropic/resources/beta/sessions/threads.rb +2 -2
- data/lib/anthropic/resources/beta/sessions.rb +12 -8
- data/lib/anthropic/resources/beta/skills/versions.rb +10 -10
- data/lib/anthropic/resources/beta/skills.rb +8 -8
- data/lib/anthropic/resources/beta/tunnels/certificates.rb +6 -6
- data/lib/anthropic/resources/beta/tunnels.rb +3 -3
- data/lib/anthropic/resources/beta/user_profiles.rb +15 -11
- data/lib/anthropic/resources/beta/vaults/credentials.rb +6 -6
- data/lib/anthropic/resources/beta/vaults.rb +6 -6
- data/lib/anthropic/resources/completions.rb +6 -6
- data/lib/anthropic/resources/files.rb +134 -0
- data/lib/anthropic/resources/messages/batches.rb +6 -6
- data/lib/anthropic/resources/messages.rb +43 -34
- data/lib/anthropic/resources/models.rb +3 -3
- 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 +183 -4
- data/rbi/anthropic/client.rbi +11 -0
- data/rbi/anthropic/errors.rbi +8 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +12 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +8 -0
- data/rbi/anthropic/helpers/google_cloud/client.rbi +5 -9
- data/rbi/anthropic/helpers/tools/base_tool.rbi +17 -0
- data/rbi/anthropic/helpers/vertex/client.rbi +13 -0
- data/rbi/anthropic/internal/type/base_stream.rbi +8 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +10 -0
- data/rbi/anthropic/models/beta/agent_create_params.rbi +62 -3
- data/rbi/anthropic/models/beta/agent_update_params.rbi +62 -3
- 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_citations_delta.rbi +60 -0
- data/rbi/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_cloud_config.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_cloud_config_params.rbi +25 -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 +145 -0
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +173 -1
- data/rbi/anthropic/models/beta/beta_content_block_source_content.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_context_management_config.rbi +55 -0
- data/rbi/anthropic/models/beta/beta_context_management_response.rbi +23 -0
- data/rbi/anthropic/models/beta/{deleted_file.rbi → beta_deleted_file.rbi} +20 -9
- data/rbi/anthropic/models/beta/beta_diagnostics.rbi +18 -0
- data/rbi/anthropic/models/beta/beta_document_block.rbi +12 -0
- data/rbi/anthropic/models/beta/beta_dream.rbi +20 -3
- data/rbi/anthropic/models/beta/beta_dream_input.rbi +15 -1
- data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_dream_model_config.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_environment.rbi +27 -5
- data/rbi/anthropic/models/beta/beta_fallback_credit_usage.rbi +30 -0
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +37 -0
- data/rbi/anthropic/models/beta/{file_metadata.rbi → beta_file_metadata.rbi} +7 -2
- data/rbi/anthropic/models/beta/beta_image_block_param.rbi +48 -1
- data/rbi/anthropic/models/beta/beta_image_transformations_param.rbi +114 -0
- data/rbi/anthropic/models/beta/beta_iterations_usage.rbi +34 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_advisor.rbi +81 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_advisor_params.rbi +90 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent.rbi +60 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbi +37 -128
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbi +49 -139
- 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_toolset_default_config.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbi +64 -3
- 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_budget_limit.rbi +86 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment.rbi +24 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbi +43 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbi +43 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +14 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbi +20 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbi +43 -2
- 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_github_repository_resource_config.rbi +20 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbi +20 -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_mcp_tool_config.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model_config.rbi +23 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model_config_params.rbi +12 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent.rbi +56 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbi +62 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_coordinator_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_params.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbi +2 -1
- 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_server_tool_usage.rbi +56 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent.rbi +64 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +61 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +86 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_config.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +64 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_usage.rbi +59 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_session_usage_event.rbi +138 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_params.rbi +18 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_start_event_preview.rbi +15 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_trigger_context.rbi +14 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_user_location.rbi +77 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +50 -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_memory_tool_20250818_command.rbi +39 -0
- data/rbi/anthropic/models/beta/beta_output_behavior.rbi +42 -0
- data/rbi/anthropic/models/beta/beta_output_behavior_create_new.rbi +71 -0
- data/rbi/anthropic/models/beta/beta_output_behavior_update_existing.rbi +83 -0
- data/rbi/anthropic/models/beta/beta_raw_content_block_delta.rbi +50 -0
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +147 -0
- data/rbi/anthropic/models/beta/beta_raw_message_stream_event.rbi +72 -0
- data/rbi/anthropic/models/beta/beta_redacted_thinking_block.rbi +24 -1
- data/rbi/anthropic/models/beta/beta_redacted_thinking_block_param.rbi +8 -1
- data/rbi/anthropic/models/beta/beta_request_document_block.rbi +25 -0
- data/rbi/anthropic/models/beta/beta_request_tool_addition_block.rbi +14 -0
- data/rbi/anthropic/models/beta/beta_request_tool_removal_block.rbi +14 -0
- data/rbi/anthropic/models/beta/beta_server_tool_use_block.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_server_tool_use_block_param.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_signature_delta.rbi +10 -1
- data/rbi/anthropic/models/beta/beta_skill.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_text_citation.rbi +60 -0
- data/rbi/anthropic/models/beta/beta_text_citation_param.rbi +58 -0
- data/rbi/anthropic/models/beta/beta_thinking_block.rbi +27 -1
- data/rbi/anthropic/models/beta/beta_thinking_block_param.rbi +17 -1
- data/rbi/anthropic/models/beta/beta_thinking_config_param.rbi +37 -0
- data/rbi/anthropic/models/beta/beta_thinking_delta.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_tool_choice.rbi +21 -0
- data/rbi/anthropic/models/beta/beta_tool_result_block_param.rbi +101 -2
- data/rbi/anthropic/models/beta/beta_tool_union.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_tool_use_block.rbi +19 -1
- data/rbi/anthropic/models/beta/beta_tool_use_block_param.rbi +19 -1
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +125 -45
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +6 -3
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +27 -1
- data/rbi/anthropic/models/beta/beta_webhook_session_budget_reached_event_data.rbi +63 -0
- data/rbi/anthropic/models/beta/deployment_create_params.rbi +70 -0
- data/rbi/anthropic/models/beta/deployment_update_params.rbi +70 -0
- data/rbi/anthropic/models/beta/dream_create_params.rbi +40 -0
- data/rbi/anthropic/models/beta/environment_create_params.rbi +30 -0
- data/rbi/anthropic/models/beta/environment_update_params.rbi +34 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +31 -1
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +20 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +53 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +8 -4
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rbi +44 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +11 -0
- 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/beta/messages/beta_message_batch_result.rbi +14 -0
- data/rbi/anthropic/models/beta/session_create_params.rbi +104 -0
- data/rbi/anthropic/models/beta/session_update_params.rbi +21 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbi +50 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbi +45 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbi +43 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbi +43 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbi +50 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbi +30 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +79 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbi +20 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbi +27 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbi +76 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +89 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbi +79 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +34 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +205 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +60 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbi +22 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +88 -16
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbi +22 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rbi +59 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rbi +140 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +224 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +224 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +10 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbi +50 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbi +50 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbi +20 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbi +21 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbi +43 -2
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbi +47 -4
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +50 -0
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +60 -0
- data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +60 -0
- data/rbi/anthropic/models/beta/unwrap_webhook_event.rbi +2 -1
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +77 -4
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +67 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +40 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +20 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +19 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +17 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +10 -0
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +17 -0
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +49 -0
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +45 -0
- data/rbi/anthropic/models/beta_currency.rbi +18 -0
- data/rbi/anthropic/models/beta_error.rbi +10 -0
- data/rbi/anthropic/models/beta_monetary_amount.rbi +51 -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/citations_delta.rbi +60 -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 +112 -0
- data/rbi/anthropic/models/content_block_param.rbi +135 -2
- data/rbi/anthropic/models/content_block_source_content.rbi +44 -0
- data/rbi/anthropic/models/deleted_file.rbi +69 -0
- data/rbi/anthropic/models/deleted_skill.rbi +41 -0
- data/rbi/anthropic/models/document_block.rbi +12 -0
- data/rbi/anthropic/models/document_block_param.rbi +30 -4
- data/rbi/anthropic/models/error_object.rbi +10 -0
- 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 +57 -5
- 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/messages/message_batch_result.rbi +12 -0
- data/rbi/anthropic/models/model.rbi +0 -8
- data/rbi/anthropic/models/raw_content_block_delta.rbi +35 -0
- data/rbi/anthropic/models/raw_content_block_start_event.rbi +114 -0
- data/rbi/anthropic/models/raw_message_stream_event.rbi +62 -0
- data/rbi/anthropic/models/redacted_thinking_block.rbi +24 -1
- data/rbi/anthropic/models/redacted_thinking_block_param.rbi +8 -1
- data/rbi/anthropic/models/server_tool_use_block.rbi +10 -0
- data/rbi/anthropic/models/server_tool_use_block_param.rbi +10 -0
- data/rbi/anthropic/models/signature_delta.rbi +10 -1
- 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/text_citation.rbi +60 -0
- data/rbi/anthropic/models/text_citation_param.rbi +58 -0
- data/rbi/anthropic/models/thinking_block.rbi +27 -1
- data/rbi/anthropic/models/thinking_block_param.rbi +17 -1
- data/rbi/anthropic/models/thinking_config_param.rbi +33 -0
- data/rbi/anthropic/models/thinking_delta.rbi +10 -1
- data/rbi/anthropic/models/tool_choice.rbi +21 -0
- data/rbi/anthropic/models/tool_result_block_param.rbi +98 -2
- data/rbi/anthropic/models/tool_union.rbi +2 -0
- data/rbi/anthropic/models/tool_use_block.rbi +19 -1
- data/rbi/anthropic/models/tool_use_block_param.rbi +19 -1
- data/rbi/anthropic/models/web_fetch_tool_result_block.rbi +10 -0
- data/rbi/anthropic/models/web_fetch_tool_result_block_param.rbi +10 -0
- data/rbi/anthropic/models/web_search_tool_result_block.rbi +10 -0
- data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +10 -0
- data/rbi/anthropic/models.rbi +169 -3
- data/rbi/anthropic/resources/beta/agents.rbi +2 -2
- data/rbi/anthropic/resources/beta/deployments.rbi +10 -0
- data/rbi/anthropic/resources/beta/dreams.rbi +9 -0
- data/rbi/anthropic/resources/beta/environments.rbi +2 -1
- data/rbi/anthropic/resources/beta/files.rbi +6 -4
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +3 -0
- data/rbi/anthropic/resources/beta/messages.rbi +410 -0
- data/rbi/anthropic/resources/beta/sessions.rbi +9 -0
- data/rbi/anthropic/resources/beta/user_profiles.rbi +22 -3
- 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 +5 -0
- data/sig/anthropic/errors.rbs +4 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +6 -0
- data/sig/anthropic/helpers/google_cloud/client.rbs +2 -6
- data/sig/anthropic/helpers/vertex/client.rbs +6 -0
- data/sig/anthropic/internal/type/base_stream.rbs +4 -0
- data/sig/anthropic/models/anthropic_beta.rbs +4 -0
- data/sig/anthropic/models/beta/agent_create_params.rbs +30 -0
- data/sig/anthropic/models/beta/agent_update_params.rbs +30 -0
- 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_citations_delta.rbs +63 -0
- data/sig/anthropic/models/beta/beta_clear_tool_uses_20250919_edit.rbs +14 -0
- data/sig/anthropic/models/beta/beta_cloud_config.rbs +17 -0
- data/sig/anthropic/models/beta/beta_cloud_config_params.rbs +17 -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 +132 -0
- data/sig/anthropic/models/beta/beta_content_block_param.rbs +199 -1
- data/sig/anthropic/models/beta/beta_content_block_source_content.rbs +22 -0
- data/sig/anthropic/models/beta/beta_context_management_config.rbs +32 -0
- data/sig/anthropic/models/beta/beta_context_management_response.rbs +18 -0
- data/sig/anthropic/models/beta/beta_deleted_file.rbs +40 -0
- data/sig/anthropic/models/beta/beta_diagnostics.rbs +28 -0
- data/sig/anthropic/models/beta/beta_document_block.rbs +17 -0
- data/sig/anthropic/models/beta/beta_dream.rbs +5 -0
- data/sig/anthropic/models/beta/beta_dream_input.rbs +15 -0
- data/sig/anthropic/models/beta/beta_environment.rbs +19 -4
- data/sig/anthropic/models/beta/beta_fallback_credit_usage.rbs +15 -0
- data/sig/anthropic/models/beta/beta_fallback_param.rbs +20 -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 +29 -2
- data/sig/anthropic/models/beta/beta_image_transformations_param.rbs +39 -0
- data/sig/anthropic/models/beta/beta_iterations_usage.rbs +46 -0
- data/sig/anthropic/models/beta/beta_managed_agents_advisor.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_advisor_params.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent.rbs +47 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config.rbs +91 -57
- data/sig/anthropic/models/beta/beta_managed_agents_agent_tool_config_params.rbs +91 -57
- 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_toolset_default_config.rbs +11 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset_default_config_params.rbs +11 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_with_overrides_params.rbs +30 -0
- 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_budget_limit.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment.rbs +8 -3
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event.rbs +24 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_initial_event_params.rbs +24 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +13 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +49 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +76 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_define_outcome_event.rbs +15 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_user_message_event.rbs +28 -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_github_repository_resource_config.rbs +15 -0
- data/sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_params.rbs +15 -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_mcp_tool_config.rbs +11 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_tool_config_params.rbs +11 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config.rbs +11 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_toolset_default_config_params.rbs +11 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model_config.rbs +25 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model_config_params.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent.rbs +31 -4
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_coordinator.rbs +31 -4
- data/sig/anthropic/models/beta/beta_managed_agents_multiagent_roster_entry_params.rbs +1 -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_server_tool_usage.rbs +30 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent.rbs +47 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent_update.rbs +30 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +44 -4
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_config.rbs +29 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +47 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_updated_event.rbs +5 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_usage.rbs +20 -3
- data/sig/anthropic/models/beta/beta_managed_agents_session_usage_event.rbs +54 -0
- data/sig/anthropic/models/beta/beta_managed_agents_skill_params.rbs +17 -0
- data/sig/anthropic/models/beta/beta_managed_agents_start_event_preview.rbs +14 -0
- data/sig/anthropic/models/beta/beta_managed_agents_trigger_context.rbs +13 -0
- data/sig/anthropic/models/beta/beta_managed_agents_user_location.rbs +44 -0
- data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +34 -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_memory_tool_20250818_command.rbs +45 -0
- data/sig/anthropic/models/beta/beta_output_behavior.rbs +30 -0
- data/sig/anthropic/models/beta/beta_output_behavior_create_new.rbs +32 -0
- data/sig/anthropic/models/beta/beta_output_behavior_update_existing.rbs +39 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_delta.rbs +39 -0
- data/sig/anthropic/models/beta/beta_raw_content_block_start_event.rbs +132 -0
- data/sig/anthropic/models/beta/beta_raw_message_stream_event.rbs +39 -0
- data/sig/anthropic/models/beta/beta_request_document_block.rbs +32 -0
- data/sig/anthropic/models/beta/beta_request_tool_addition_block.rbs +20 -0
- data/sig/anthropic/models/beta/beta_request_tool_removal_block.rbs +20 -0
- data/sig/anthropic/models/beta/beta_server_tool_use_block.rbs +15 -0
- data/sig/anthropic/models/beta/beta_server_tool_use_block_param.rbs +15 -0
- data/sig/anthropic/models/beta/beta_text_citation.rbs +63 -0
- data/sig/anthropic/models/beta/beta_text_citation_param.rbs +59 -0
- data/sig/anthropic/models/beta/beta_thinking_config_param.rbs +20 -0
- data/sig/anthropic/models/beta/beta_tool_choice.rbs +21 -0
- data/sig/anthropic/models/beta/beta_tool_result_block_param.rbs +67 -2
- data/sig/anthropic/models/beta/beta_tool_union.rbs +2 -0
- data/sig/anthropic/models/beta/beta_tool_use_block.rbs +22 -2
- data/sig/anthropic/models/beta/beta_tool_use_block_param.rbs +22 -2
- data/sig/anthropic/models/beta/beta_user_profile.rbs +42 -18
- data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block.rbs +15 -0
- data/sig/anthropic/models/beta/beta_web_fetch_tool_result_block_param.rbs +15 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block.rbs +15 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param.rbs +15 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +284 -0
- data/sig/anthropic/models/beta/beta_webhook_session_budget_reached_event_data.rbs +39 -0
- data/sig/anthropic/models/beta/deployment_create_params.rbs +36 -0
- data/sig/anthropic/models/beta/deployment_update_params.rbs +36 -0
- data/sig/anthropic/models/beta/dream_create_params.rbs +9 -0
- data/sig/anthropic/models/beta/environment_create_params.rbs +15 -0
- data/sig/anthropic/models/beta/environment_update_params.rbs +15 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs +26 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +59 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbs +30 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_service_account_actor.rbs +26 -0
- data/sig/anthropic/models/beta/memory_stores/memory_version_list_params.rbs +7 -0
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +2 -0
- data/sig/anthropic/models/beta/messages/beta_message_batch_result.rbs +21 -0
- data/sig/anthropic/models/beta/session_create_params.rbs +59 -0
- data/sig/anthropic/models/beta/session_update_params.rbs +5 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_mcp_tool_result_event.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_message_event.rbs +27 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_received_event.rbs +28 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_thread_message_sent_event.rbs +28 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_agent_tool_result_event.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_document_block.rbs +28 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbs +54 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_github_repository_resource.rbs +15 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_image_block.rbs +22 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_redacted_block.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbs +75 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_budget_reached.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +65 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +314 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbs +43 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_status_idle_event.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +44 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_usage.rbs +20 -3
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_usage_snapshot.rbs +74 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +326 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +326 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +14 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_custom_tool_result_event_params.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event.rbs +15 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_define_outcome_event_params.rbs +15 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event.rbs +28 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_message_event_params.rbs +28 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +34 -0
- data/sig/anthropic/models/beta/sessions/resource_retrieve_response.rbs +43 -0
- data/sig/anthropic/models/beta/sessions/resource_update_response.rbs +43 -0
- data/sig/anthropic/models/beta/user_profile_create_params.rbs +20 -0
- data/sig/anthropic/models/beta/user_profile_update_params.rbs +16 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential.rbs +27 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbs +13 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbs +13 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbs +17 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbs +14 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbs +14 -0
- data/sig/anthropic/models/beta/vaults/credential_create_params.rbs +33 -0
- data/sig/anthropic/models/beta/vaults/credential_update_params.rbs +28 -0
- data/sig/anthropic/models/beta_currency.rbs +13 -0
- data/sig/anthropic/models/beta_error.rbs +42 -0
- data/sig/anthropic/models/beta_monetary_amount.rbs +22 -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/citations_delta.rbs +63 -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 +93 -0
- data/sig/anthropic/models/content_block_param.rbs +145 -1
- data/sig/anthropic/models/content_block_source_content.rbs +22 -0
- data/sig/anthropic/models/deleted_file.rbs +36 -0
- data/sig/anthropic/models/deleted_skill.rbs +15 -0
- data/sig/anthropic/models/document_block.rbs +17 -0
- data/sig/anthropic/models/document_block_param.rbs +30 -0
- data/sig/anthropic/models/error_object.rbs +42 -0
- 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 +30 -3
- 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/messages/message_batch_result.rbs +21 -0
- data/sig/anthropic/models/model.rbs +0 -8
- data/sig/anthropic/models/raw_content_block_delta.rbs +27 -0
- data/sig/anthropic/models/raw_content_block_start_event.rbs +93 -0
- data/sig/anthropic/models/raw_message_stream_event.rbs +37 -0
- data/sig/anthropic/models/server_tool_use_block.rbs +15 -0
- data/sig/anthropic/models/server_tool_use_block_param.rbs +15 -0
- 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/text_citation.rbs +63 -0
- data/sig/anthropic/models/text_citation_param.rbs +59 -0
- data/sig/anthropic/models/thinking_config_param.rbs +18 -0
- data/sig/anthropic/models/tool_choice.rbs +21 -0
- data/sig/anthropic/models/tool_result_block_param.rbs +67 -2
- data/sig/anthropic/models/tool_union.rbs +2 -0
- data/sig/anthropic/models/tool_use_block.rbs +22 -2
- data/sig/anthropic/models/tool_use_block_param.rbs +22 -2
- data/sig/anthropic/models/web_fetch_tool_result_block.rbs +15 -0
- data/sig/anthropic/models/web_fetch_tool_result_block_param.rbs +15 -0
- data/sig/anthropic/models/web_search_tool_result_block.rbs +15 -0
- data/sig/anthropic/models/web_search_tool_result_block_param.rbs +15 -0
- data/sig/anthropic/models.rbs +166 -2
- data/sig/anthropic/resources/beta/deployments.rbs +2 -0
- data/sig/anthropic/resources/beta/dreams.rbs +1 -0
- data/sig/anthropic/resources/beta/files.rbs +4 -4
- data/sig/anthropic/resources/beta/memory_stores/memory_versions.rbs +1 -0
- data/sig/anthropic/resources/beta/messages.rbs +30 -0
- data/sig/anthropic/resources/beta/sessions.rbs +2 -0
- data/sig/anthropic/resources/beta/user_profiles.rbs +2 -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 +581 -24
- data/lib/anthropic/models/beta/beta_mid_conversation_system_block_param.rb +0 -71
- data/lib/anthropic/models/mid_conversation_system_block_param.rb +0 -37
- data/rbi/anthropic/models/beta/beta_mid_conversation_system_block_param.rbi +0 -125
- data/rbi/anthropic/models/mid_conversation_system_block_param.rbi +0 -66
- data/sig/anthropic/models/beta/beta_mid_conversation_system_block_param.rbs +0 -45
- data/sig/anthropic/models/beta/deleted_file.rbs +0 -38
- data/sig/anthropic/models/mid_conversation_system_block_param.rbs +0 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2250e8bcc591b9822aba99c4c69d00f28495b14a6f7e03ec4997a3ec8fbaa63d
|
|
4
|
+
data.tar.gz: 1875230fde738ce6d365470dc781c264ec81147d4bf7382f111ea98f43777340
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd7fb0d6a181129755fc38183e4fa5f77aef8f29bed1fb01b1d53f94776d05a85a00c6173f0686968a470b9991258dcc37383067380594a6345e7fd402b41eeb
|
|
7
|
+
data.tar.gz: 16f85f7c7abc63b6aa4b3cd8b3172744e9852107dd56413038ac04fd3b08529b5029812cf651ca365b4565963e776dcfa01c4c742678a47a6ab70ed195094df1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,102 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.65.0 (2026-08-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.64.0...v1.65.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.64.0...v1.65.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** managed agents web search config and self hosted sandbox memory ([c7a8dac](https://github.com/anthropics/anthropic-sdk-ruby/commit/c7a8dac314c1b05ef5e01d632f4d0a8c0b467e38))
|
|
10
|
+
|
|
11
|
+
## 1.64.0 (2026-08-19)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.63.0...v1.64.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.63.0...v1.64.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** Files and Skills APIs are now GA; add computer use and browser use toolsets ([6878cd5](https://github.com/anthropics/anthropic-sdk-ruby/commit/6878cd5099c99f5dc8e600ec71a40b9194d384d7))
|
|
18
|
+
|
|
19
|
+
## 1.63.0 (2026-08-18)
|
|
20
|
+
|
|
21
|
+
Full Changelog: [v1.62.0...v1.63.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.62.0...v1.63.0)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **api:** additions to files and memory stores ([f4baf57](https://github.com/anthropics/anthropic-sdk-ruby/commit/f4baf57eaf96b098ec63c895c84c701294583240))
|
|
26
|
+
* **api:** updates to skill, files, and user profiles ([ba0844b](https://github.com/anthropics/anthropic-sdk-ruby/commit/ba0844b290a2036cba7c0a79e500497d48096c5f))
|
|
27
|
+
* **tools:** add `tool_options` to `BaseTool` (strict, cache_control, …) ([#161](https://github.com/anthropics/anthropic-sdk-ruby/issues/161)) ([df278f9](https://github.com/anthropics/anthropic-sdk-ruby/commit/df278f9170ce5ff130433602b18470248dcfa3f4))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **api:** remove unsupported mid_conv_system content block ([687a6da](https://github.com/anthropics/anthropic-sdk-ruby/commit/687a6da56fe9cb85753f6a819d7978580bed61c9))
|
|
33
|
+
* **aws,google_cloud:** adopt the default-credentials hook in the AWS and Google Cloud clients ([#170](https://github.com/anthropics/anthropic-sdk-ruby/issues/170)) ([169fea9](https://github.com/anthropics/anthropic-sdk-ruby/commit/169fea9f5ef8d0798bc0e795e0579eae367939e2))
|
|
34
|
+
* **client:** never fall back to the first-party base URL when default credentials are disabled ([#193](https://github.com/anthropics/anthropic-sdk-ruby/issues/193)) ([b6e9f56](https://github.com/anthropics/anthropic-sdk-ruby/commit/b6e9f562c2872dc5f3ca3a4d6c4025e0e75397d1))
|
|
35
|
+
* **tool-runner:** forward the server-assigned container on follow-up requests ([#189](https://github.com/anthropics/anthropic-sdk-ruby/issues/189)) ([891ac9b](https://github.com/anthropics/anthropic-sdk-ruby/commit/891ac9b8f12234bfe6938086937505e27175df46))
|
|
36
|
+
* **tool-runner:** replay unknown tool_use input verbatim ([#173](https://github.com/anthropics/anthropic-sdk-ruby/issues/173)) ([566a881](https://github.com/anthropics/anthropic-sdk-ruby/commit/566a8817fbe8aad5a25b4111021e39d20451ef03))
|
|
37
|
+
* **tool-runner:** stop on refusal instead of executing tools ([#174](https://github.com/anthropics/anthropic-sdk-ruby/issues/174)) ([4b8d2e4](https://github.com/anthropics/anthropic-sdk-ruby/commit/4b8d2e43265d31b55eb9a6f0d3241b62fa510b2d))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Chores
|
|
41
|
+
|
|
42
|
+
* **internal:** remove leftover prism references ([5a416d3](https://github.com/anthropics/anthropic-sdk-ruby/commit/5a416d3f2c784d697a8f9fbc99f5620102ea0c84))
|
|
43
|
+
|
|
44
|
+
## 1.62.0 (2026-08-13)
|
|
45
|
+
|
|
46
|
+
Full Changelog: [v1.61.0...v1.62.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.61.0...v1.62.0)
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **api:** add output_behavior to dream creation (create a new memory store or update the input store in place) ([836125f](https://github.com/anthropics/anthropic-sdk-ruby/commit/836125f10cee42677d814fa7bb85f693914c6af9))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Bug Fixes
|
|
54
|
+
|
|
55
|
+
* **bedrock:** adopt the default-credentials hook in place of the direct base-client bind ([#145](https://github.com/anthropics/anthropic-sdk-ruby/issues/145)) ([e082f28](https://github.com/anthropics/anthropic-sdk-ruby/commit/e082f280846cd00bda4f89b9fb6ad50b4a4a5feb))
|
|
56
|
+
* **client:** accumulate streamed input for server tool use blocks ([#162](https://github.com/anthropics/anthropic-sdk-ruby/issues/162)) ([75382d8](https://github.com/anthropics/anthropic-sdk-ruby/commit/75382d81ebb6b3bedad92749f26e4625d8203097))
|
|
57
|
+
* **client:** add models ([055b440](https://github.com/anthropics/anthropic-sdk-ruby/commit/055b440aa315cf644b08ede51a19f448fab00cbf))
|
|
58
|
+
* **internal:** don't resolve lazy field types when hashing a model class ([#155](https://github.com/anthropics/anthropic-sdk-ruby/issues/155)) ([0a2c06f](https://github.com/anthropics/anthropic-sdk-ruby/commit/0a2c06fcbdb345d751ae0850cac70177cb232d53))
|
|
59
|
+
* **streaming:** apply all message_delta fields when accumulating streamed messages ([#160](https://github.com/anthropics/anthropic-sdk-ruby/issues/160)) ([e537ae2](https://github.com/anthropics/anthropic-sdk-ruby/commit/e537ae23ac5c5701b47812e9062db9c3bd9f29da))
|
|
60
|
+
* **vertex:** don't resolve the shared config store during client init ([#142](https://github.com/anthropics/anthropic-sdk-ruby/issues/142)) ([4108bd4](https://github.com/anthropics/anthropic-sdk-ruby/commit/4108bd4aa3fd3517b51971fdd25f15351bd8f5be))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Documentation
|
|
64
|
+
|
|
65
|
+
* **api:** clarify that user profile name is optional for resold profiles ([e68fd57](https://github.com/anthropics/anthropic-sdk-ruby/commit/e68fd57357fed4964666d84d011b38873abff02d))
|
|
66
|
+
* **client:** move truncated-docs note below the description in YARD doc blocks ([3db8b94](https://github.com/anthropics/anthropic-sdk-ruby/commit/3db8b9489cd2adb207edbb0165ea11fbacc19db4))
|
|
67
|
+
* fix Symbol typo in RDoc comments ([#163](https://github.com/anthropics/anthropic-sdk-ruby/issues/163)) ([1102732](https://github.com/anthropics/anthropic-sdk-ruby/commit/1102732847ffc02eef9d2c69e233f5e6f56787d8))
|
|
68
|
+
|
|
69
|
+
## 1.61.0 (2026-08-07)
|
|
70
|
+
|
|
71
|
+
Full Changelog: [v1.60.0...v1.61.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.60.0...v1.61.0)
|
|
72
|
+
|
|
73
|
+
### Features
|
|
74
|
+
|
|
75
|
+
* **api:** add support for session budgets, advisor tool, pinned inference location and skills auto-loading from GitHub ([3d294f2](https://github.com/anthropics/anthropic-sdk-ruby/commit/3d294f276ed76868fd62159a72e3bbfeca69c0a9))
|
|
76
|
+
|
|
77
|
+
## 1.60.0 (2026-08-06)
|
|
78
|
+
|
|
79
|
+
Full Changelog: [v1.59.0...v1.60.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.59.0...v1.60.0)
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
* **api:** add `mid-conversation-tool-changes-2026-07-01` beta ([f52232a](https://github.com/anthropics/anthropic-sdk-ruby/commit/f52232a5ed81f9911d0481b41b2bbe44456c421b))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* **client:** declare `base64` gemspec dependency so `require` works under Bundler on Ruby 3.4+ ([468dd7d](https://github.com/anthropics/anthropic-sdk-ruby/commit/468dd7d5fcd5ba973825968c5f6dd6529b586201))
|
|
89
|
+
* **deps:** constrain gemspec runtime dependencies to their current major ([#141](https://github.com/anthropics/anthropic-sdk-ruby/issues/141)) ([b0e644c](https://github.com/anthropics/anthropic-sdk-ruby/commit/b0e644ceac00a7f9b43632345fa99c86717b7cca))
|
|
90
|
+
* **internal:** preserve coerce state strictness in discriminated union fast path ([b30146f](https://github.com/anthropics/anthropic-sdk-ruby/commit/b30146f91e58ba71a751685ea3264ee757a7cc77))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Chores
|
|
94
|
+
|
|
95
|
+
* **api:** remove retired Claude Opus 4.1 models ([b7b2043](https://github.com/anthropics/anthropic-sdk-ruby/commit/b7b2043b8bdf38271a6269771c1869b96fb66d82))
|
|
96
|
+
* **deps:** bump 6 CVE-flagged dev/test gems to CVE-clean versions ([#146](https://github.com/anthropics/anthropic-sdk-ruby/issues/146)) ([ae3a617](https://github.com/anthropics/anthropic-sdk-ruby/commit/ae3a61750cede1c854e15047c411241b82ede8de))
|
|
97
|
+
* **docs:** small updates to descriptions ([b8dc207](https://github.com/anthropics/anthropic-sdk-ruby/commit/b8dc207c909f48c7b276cef6da79e99404e1b6c7))
|
|
98
|
+
* **docs:** updates to a few documentation strings ([b83066a](https://github.com/anthropics/anthropic-sdk-ruby/commit/b83066acd84f805bdf475883d1b3e3029f421103))
|
|
99
|
+
|
|
3
100
|
## 1.59.0 (2026-07-24)
|
|
4
101
|
|
|
5
102
|
Full Changelog: [v1.58.0...v1.59.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.58.0...v1.59.0)
|
|
@@ -235,7 +332,7 @@ Full Changelog: [v1.43.0...v1.44.0](https://github.com/anthropics/anthropic-sdk-
|
|
|
235
332
|
|
|
236
333
|
### Bug Fixes
|
|
237
334
|
|
|
238
|
-
* **internal:** preserve path-qualified multipart filenames (
|
|
335
|
+
* **internal:** preserve path-qualified multipart filenames ([#937](https://github.com/anthropics/anthropic-sdk-ruby/issues/937)) ([000e793](https://github.com/anthropics/anthropic-sdk-ruby/commit/000e793062309ee421111866f1bd56d0384277f3))
|
|
239
336
|
|
|
240
337
|
|
|
241
338
|
### Documentation
|
data/README.md
CHANGED
data/lib/anthropic/client.rb
CHANGED
|
@@ -48,7 +48,6 @@ module Anthropic
|
|
|
48
48
|
"claude-4-opus-20250514": 8_192,
|
|
49
49
|
"anthropic.claude-opus-4-20250514-v1:0": 8_192,
|
|
50
50
|
"claude-opus-4@20250514": 8_192,
|
|
51
|
-
"claude-opus-4-1-20250805": 8192,
|
|
52
51
|
"anthropic.claude-opus-4-1-20250805-v1:0": 8192,
|
|
53
52
|
"claude-opus-4-1@20250805": 8192
|
|
54
53
|
}.freeze
|
|
@@ -77,6 +76,12 @@ module Anthropic
|
|
|
77
76
|
# @return [Anthropic::Resources::Models]
|
|
78
77
|
attr_reader :models
|
|
79
78
|
|
|
79
|
+
# @return [Anthropic::Resources::Files]
|
|
80
|
+
attr_reader :files
|
|
81
|
+
|
|
82
|
+
# @return [Anthropic::Resources::Skills]
|
|
83
|
+
attr_reader :skills
|
|
84
|
+
|
|
80
85
|
# @return [Anthropic::Resources::Beta]
|
|
81
86
|
attr_reader :beta
|
|
82
87
|
|
|
@@ -198,7 +203,7 @@ module Anthropic
|
|
|
198
203
|
|
|
199
204
|
has_explicit_credential = api_key || auth_token || credentials || config
|
|
200
205
|
|
|
201
|
-
|
|
206
|
+
if !has_explicit_credential && resolve_default_credentials?
|
|
202
207
|
api_key = ENV["ANTHROPIC_API_KEY"]
|
|
203
208
|
auth_token = ENV["ANTHROPIC_AUTH_TOKEN"]
|
|
204
209
|
end
|
|
@@ -209,7 +214,7 @@ module Anthropic
|
|
|
209
214
|
@token_cache = nil
|
|
210
215
|
|
|
211
216
|
base_url_is_explicit = base_url && !base_url.empty?
|
|
212
|
-
base_url ||= ENV["ANTHROPIC_BASE_URL"]
|
|
217
|
+
base_url ||= ENV["ANTHROPIC_BASE_URL"] if resolve_default_credentials?
|
|
213
218
|
|
|
214
219
|
credential_headers = {}
|
|
215
220
|
|
|
@@ -224,7 +229,7 @@ module Anthropic
|
|
|
224
229
|
@credentials = credentials
|
|
225
230
|
end
|
|
226
231
|
|
|
227
|
-
if @credentials.nil? && @api_key.nil? && @auth_token.nil?
|
|
232
|
+
if @credentials.nil? && @api_key.nil? && @auth_token.nil? && resolve_default_credentials?
|
|
228
233
|
default_base_url = base_url || "https://api.anthropic.com"
|
|
229
234
|
result = Anthropic::Credentials.default_credentials(base_url: default_base_url)
|
|
230
235
|
if result
|
|
@@ -235,13 +240,20 @@ module Anthropic
|
|
|
235
240
|
end
|
|
236
241
|
|
|
237
242
|
warn_explicit_shadow(api_key: api_key, auth_token: auth_token, credentials: credentials || config)
|
|
238
|
-
warn_env_shadow(api_key: api_key, auth_token: auth_token)
|
|
243
|
+
warn_env_shadow(api_key: api_key, auth_token: auth_token) if resolve_default_credentials?
|
|
239
244
|
|
|
240
245
|
if @credentials
|
|
241
246
|
@token_cache = Anthropic::Credentials::TokenCache.new(@credentials)
|
|
242
247
|
end
|
|
243
248
|
|
|
244
|
-
|
|
249
|
+
if resolve_default_credentials?
|
|
250
|
+
base_url ||= "https://api.anthropic.com"
|
|
251
|
+
elsif base_url.to_s.empty?
|
|
252
|
+
raise ArgumentError.new(
|
|
253
|
+
"No base_url was resolved for #{self.class.name}; " \
|
|
254
|
+
"platform clients must supply their own endpoint."
|
|
255
|
+
)
|
|
256
|
+
end
|
|
245
257
|
|
|
246
258
|
if @credentials.respond_to?(:bind_base_url)
|
|
247
259
|
@credentials.bind_base_url(base_url)
|
|
@@ -277,6 +289,8 @@ module Anthropic
|
|
|
277
289
|
@completions = Anthropic::Resources::Completions.new(client: self)
|
|
278
290
|
@messages = Anthropic::Resources::Messages.new(client: self)
|
|
279
291
|
@models = Anthropic::Resources::Models.new(client: self)
|
|
292
|
+
@files = Anthropic::Resources::Files.new(client: self)
|
|
293
|
+
@skills = Anthropic::Resources::Skills.new(client: self)
|
|
280
294
|
@beta = Anthropic::Resources::Beta.new(client: self)
|
|
281
295
|
end
|
|
282
296
|
|
|
@@ -296,6 +310,23 @@ module Anthropic
|
|
|
296
310
|
|
|
297
311
|
private
|
|
298
312
|
|
|
313
|
+
# @api private
|
|
314
|
+
#
|
|
315
|
+
# Whether to resolve credentials from the default chain (the static
|
|
316
|
+
# +ANTHROPIC_API_KEY+ / +ANTHROPIC_AUTH_TOKEN+ env vars and the shared
|
|
317
|
+
# config store / federation auto-discovery, precedence steps 2–5 above)
|
|
318
|
+
# when no explicit credential argument is passed. Called once from
|
|
319
|
+
# {#initialize}, so overrides must not depend on subclass instance state.
|
|
320
|
+
# Subclasses that bring their own auth scheme override this to +false+ so
|
|
321
|
+
# ambient first-party credentials are never resolved or folded into
|
|
322
|
+
# requests bound for another platform's endpoint. Returning +false+ also
|
|
323
|
+
# withholds the +ANTHROPIC_BASE_URL+ / +https://api.anthropic.com+
|
|
324
|
+
# base-URL fallback, so such a subclass must pass its own +base_url+ or
|
|
325
|
+
# {#initialize} raises +ArgumentError+.
|
|
326
|
+
#
|
|
327
|
+
# @return [Boolean]
|
|
328
|
+
def resolve_default_credentials? = true
|
|
329
|
+
|
|
299
330
|
def warn_explicit_shadow(api_key:, auth_token:, credentials:)
|
|
300
331
|
return if credentials.nil?
|
|
301
332
|
|
data/lib/anthropic/errors.rb
CHANGED
|
@@ -60,6 +60,12 @@ module Anthropic
|
|
|
60
60
|
# @return [Object, nil]
|
|
61
61
|
attr_accessor :body
|
|
62
62
|
|
|
63
|
+
# @return [String, nil]
|
|
64
|
+
def request_id = headers&.[]("request-id")
|
|
65
|
+
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
def workspace_id = headers&.[]("anthropic-workspace-id")
|
|
68
|
+
|
|
63
69
|
# @api private
|
|
64
70
|
#
|
|
65
71
|
# @param url [URI::Generic]
|
|
@@ -53,7 +53,7 @@ module Anthropic
|
|
|
53
53
|
#
|
|
54
54
|
# @param max_retry_delay [Float]
|
|
55
55
|
#
|
|
56
|
-
def initialize(
|
|
56
|
+
def initialize(
|
|
57
57
|
api_key: nil,
|
|
58
58
|
aws_access_key: nil,
|
|
59
59
|
aws_secret_access_key: nil,
|
|
@@ -84,27 +84,19 @@ module Anthropic
|
|
|
84
84
|
derive_base_url: ->(region) { "https://aws-external-anthropic.#{region}.api.aws" }
|
|
85
85
|
)
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
# not apply here.
|
|
95
|
-
Anthropic::Internal::Transport::BaseClient.instance_method(:initialize).bind(self).call(
|
|
87
|
+
# In API-key mode the gateway key rides the base client's `api_key`
|
|
88
|
+
# slot; {#resolve_default_credentials?} keeps first-party credential
|
|
89
|
+
# auto-discovery out of the picture when it is absent. The gateway
|
|
90
|
+
# serves the full first-party API, so every resource the parent wires
|
|
91
|
+
# up stays available.
|
|
92
|
+
super(
|
|
93
|
+
api_key: effective_api_key,
|
|
96
94
|
base_url: resolved_base_url,
|
|
97
95
|
timeout: timeout,
|
|
98
96
|
max_retries: max_retries,
|
|
99
97
|
initial_retry_delay: initial_retry_delay,
|
|
100
|
-
max_retry_delay: max_retry_delay
|
|
101
|
-
headers: {"anthropic-version" => "2023-06-01"}
|
|
98
|
+
max_retry_delay: max_retry_delay
|
|
102
99
|
)
|
|
103
|
-
|
|
104
|
-
@completions = Anthropic::Resources::Completions.new(client: self)
|
|
105
|
-
@messages = Anthropic::Resources::Messages.new(client: self)
|
|
106
|
-
@models = Anthropic::Resources::Models.new(client: self)
|
|
107
|
-
@beta = Anthropic::Resources::Beta.new(client: self)
|
|
108
100
|
end
|
|
109
101
|
|
|
110
102
|
# @api private
|
|
@@ -44,6 +44,7 @@ module Anthropic
|
|
|
44
44
|
use_bearer_auth: false
|
|
45
45
|
)
|
|
46
46
|
@use_bearer_auth = use_bearer_auth
|
|
47
|
+
base_url = nil if base_url.to_s.empty?
|
|
47
48
|
begin
|
|
48
49
|
require("aws-sdk-core")
|
|
49
50
|
rescue LoadError
|
|
@@ -119,12 +120,12 @@ module Anthropic
|
|
|
119
120
|
end
|
|
120
121
|
end
|
|
121
122
|
|
|
122
|
-
if base_url
|
|
123
|
+
if !base_url && !aws_region.to_s.empty?
|
|
123
124
|
@aws_region ||= aws_region
|
|
124
125
|
base_url = derive_base_url.call(aws_region)
|
|
125
126
|
end
|
|
126
127
|
|
|
127
|
-
|
|
128
|
+
unless base_url
|
|
128
129
|
# rubocop:disable Layout/LineLength
|
|
129
130
|
raise ArgumentError.new("No base_url was given and no aws_region is available to derive one. Set the `base_url` argument or provide an `aws_region`.")
|
|
130
131
|
# rubocop:enable Layout/LineLength
|
|
@@ -147,6 +148,16 @@ module Anthropic
|
|
|
147
148
|
super
|
|
148
149
|
end
|
|
149
150
|
|
|
151
|
+
# @api private
|
|
152
|
+
#
|
|
153
|
+
# AWS-authenticated clients never resolve ambient first-party
|
|
154
|
+
# credentials, which would fold the shared config store's headers and
|
|
155
|
+
# bearer into requests bound for a third-party endpoint.
|
|
156
|
+
#
|
|
157
|
+
# @return [Boolean]
|
|
158
|
+
# @see Anthropic::Client#resolve_default_credentials?
|
|
159
|
+
private def resolve_default_credentials? = false
|
|
160
|
+
|
|
150
161
|
# The AWS provider middleware entry: applies the workspace-id header and
|
|
151
162
|
# SigV4 signing per attempt. Return from the including class's
|
|
152
163
|
# `provider_middleware`. Pure — requests are reused across retry
|
|
@@ -60,7 +60,7 @@ module Anthropic
|
|
|
60
60
|
# the Bedrock URL rewrite and SigV4 signing happen inside the continuation, per
|
|
61
61
|
# attempt.
|
|
62
62
|
#
|
|
63
|
-
def initialize(
|
|
63
|
+
def initialize(
|
|
64
64
|
aws_region: nil,
|
|
65
65
|
base_url: nil,
|
|
66
66
|
max_retries: self.class::DEFAULT_MAX_RETRIES,
|
|
@@ -121,36 +121,46 @@ module Anthropic
|
|
|
121
121
|
@aws_region = aws_region
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
base_url
|
|
125
|
-
|
|
126
|
-
"https://bedrock-runtime.#{@aws_region}.amazonaws.com"
|
|
127
|
-
)
|
|
124
|
+
base_url = ENV["ANTHROPIC_BEDROCK_BASE_URL"] if base_url.to_s.empty?
|
|
125
|
+
base_url = "https://bedrock-runtime.#{@aws_region}.amazonaws.com" if base_url.to_s.empty?
|
|
128
126
|
|
|
129
|
-
@api_key = nil
|
|
130
|
-
@auth_token = @signer ? nil : api_key
|
|
131
|
-
@credentials = nil
|
|
132
|
-
@token_cache = nil
|
|
133
127
|
# For AWSAuth#auth_headers: suppress key headers in SigV4 mode; in
|
|
134
128
|
# API-key mode fall through to the base bearer-token handling.
|
|
135
129
|
@use_sig_v4 = !@signer.nil?
|
|
136
130
|
@use_bearer_auth = false
|
|
137
131
|
|
|
138
|
-
#
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
|
|
132
|
+
# The Bedrock bearer rides the base client's `auth_token` slot;
|
|
133
|
+
# {#resolve_default_credentials?} keeps first-party credential
|
|
134
|
+
# auto-discovery out of the picture when it is absent.
|
|
135
|
+
super(
|
|
136
|
+
auth_token: @signer ? nil : api_key,
|
|
142
137
|
base_url: base_url,
|
|
143
138
|
timeout: timeout,
|
|
144
139
|
max_retries: max_retries,
|
|
145
140
|
initial_retry_delay: initial_retry_delay,
|
|
146
141
|
max_retry_delay: max_retry_delay,
|
|
147
|
-
headers: {"anthropic-version" => "2023-06-01"},
|
|
148
142
|
middleware: middleware
|
|
149
143
|
)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# The Models API is not available on Bedrock, so the resource the
|
|
147
|
+
# parent wires up would target routes the Bedrock host does not serve
|
|
148
|
+
# — keep it unavailable, matching the SDK's other Bedrock clients.
|
|
149
|
+
#
|
|
150
|
+
# @raise [NotImplementedError]
|
|
151
|
+
def models
|
|
152
|
+
# rubocop:disable Layout/LineLength
|
|
153
|
+
message = "Please instead use https://docs.anthropic.com/en/api/claude-on-amazon-bedrock#list-available-models to list available models on Bedrock."
|
|
154
|
+
# rubocop:enable Layout/LineLength
|
|
155
|
+
raise NotImplementedError.new(message)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
def files
|
|
159
|
+
raise NotImplementedError, "Files are not supported on Bedrock."
|
|
160
|
+
end
|
|
150
161
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
@beta = Anthropic::Resources::Beta.new(client: self)
|
|
162
|
+
def skills
|
|
163
|
+
raise NotImplementedError, "Skills are not supported on Bedrock."
|
|
154
164
|
end
|
|
155
165
|
|
|
156
166
|
# @api private
|
|
@@ -113,6 +113,18 @@ module Anthropic
|
|
|
113
113
|
"Models listing is not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
# Files are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported.
|
|
117
|
+
def files
|
|
118
|
+
raise NotImplementedError,
|
|
119
|
+
"Files are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Skills are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported.
|
|
123
|
+
def skills
|
|
124
|
+
raise NotImplementedError,
|
|
125
|
+
"Skills are not supported on Bedrock Mantle. Only Messages (/v1/messages) is supported."
|
|
126
|
+
end
|
|
127
|
+
|
|
116
128
|
# @api private
|
|
117
129
|
#
|
|
118
130
|
# @return [#call]
|
|
@@ -31,15 +31,6 @@ module Anthropic
|
|
|
31
31
|
# @return [String, nil]
|
|
32
32
|
attr_reader :workspace_id
|
|
33
33
|
|
|
34
|
-
# @return [Anthropic::Resources::Messages]
|
|
35
|
-
attr_reader :messages
|
|
36
|
-
|
|
37
|
-
# @return [Anthropic::Resources::Models]
|
|
38
|
-
attr_reader :models
|
|
39
|
-
|
|
40
|
-
# @return [Anthropic::Resources::Beta]
|
|
41
|
-
attr_reader :beta
|
|
42
|
-
|
|
43
34
|
# Creates a new client for the Anthropic API on the Google Cloud gateway.
|
|
44
35
|
#
|
|
45
36
|
# Authentication uses Google credentials by precedence (unless
|
|
@@ -95,7 +86,7 @@ module Anthropic
|
|
|
95
86
|
# is applied per attempt, after user middleware.
|
|
96
87
|
#
|
|
97
88
|
# @raise [ArgumentError]
|
|
98
|
-
def initialize(
|
|
89
|
+
def initialize(
|
|
99
90
|
project: ENV["ANTHROPIC_GOOGLE_CLOUD_PROJECT"] || ENV["GOOGLE_CLOUD_PROJECT"],
|
|
100
91
|
location: ENV["ANTHROPIC_GOOGLE_CLOUD_LOCATION"] || "global",
|
|
101
92
|
workspace_id: ENV["ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID"],
|
|
@@ -144,33 +135,31 @@ module Anthropic
|
|
|
144
135
|
end
|
|
145
136
|
@workspace_id = workspace_id
|
|
146
137
|
|
|
147
|
-
base_url =
|
|
148
|
-
|
|
149
|
-
# Never inherit first-party Anthropic credentials from the
|
|
150
|
-
# environment: clear the ivars `Anthropic::Client#auth_headers` reads,
|
|
151
|
-
# and bind `BaseClient#initialize` directly so the parent's
|
|
152
|
-
# credential-provider / `ANTHROPIC_BASE_URL` resolution is skipped
|
|
153
|
-
# entirely.
|
|
154
|
-
@api_key = nil
|
|
155
|
-
@auth_token = nil
|
|
156
|
-
@credentials = nil
|
|
157
|
-
@token_cache = nil
|
|
138
|
+
base_url = nil if base_url.to_s.empty?
|
|
139
|
+
base_url ||= derive_base_url
|
|
158
140
|
|
|
159
|
-
|
|
141
|
+
# No first-party credential is ever passed up, and
|
|
142
|
+
# {#resolve_default_credentials?} keeps the parent from discovering
|
|
143
|
+
# one; `base_url` is always resolved by this point, so the parent's
|
|
144
|
+
# `ANTHROPIC_BASE_URL` fallback never applies. The parent wires up
|
|
145
|
+
# every resource; {#completions} withholds the one the gateway does
|
|
146
|
+
# not serve.
|
|
147
|
+
super(
|
|
160
148
|
base_url: base_url,
|
|
161
149
|
timeout: timeout,
|
|
162
150
|
max_retries: max_retries,
|
|
163
151
|
initial_retry_delay: initial_retry_delay,
|
|
164
152
|
max_retry_delay: max_retry_delay,
|
|
165
|
-
headers: {"anthropic-version" => "2023-06-01"},
|
|
166
153
|
middleware: middleware
|
|
167
154
|
)
|
|
168
|
-
|
|
169
|
-
@messages = Anthropic::Resources::Messages.new(client: self)
|
|
170
|
-
@models = Anthropic::Resources::Models.new(client: self)
|
|
171
|
-
@beta = Anthropic::Resources::Beta.new(client: self)
|
|
172
155
|
end
|
|
173
156
|
|
|
157
|
+
# @api private
|
|
158
|
+
#
|
|
159
|
+
# @return [Boolean]
|
|
160
|
+
# @see Anthropic::Client#resolve_default_credentials?
|
|
161
|
+
private def resolve_default_credentials? = false
|
|
162
|
+
|
|
174
163
|
# The deprecated text Completions endpoint is not supported on the
|
|
175
164
|
# Google Cloud gateway.
|
|
176
165
|
#
|
|
@@ -9,7 +9,7 @@ module Anthropic
|
|
|
9
9
|
# Extract tool models from the request and convert them to JSON Schema
|
|
10
10
|
# Returns a hash mapping tool name to Ruby model.
|
|
11
11
|
#
|
|
12
|
-
# @param data [Hash{
|
|
12
|
+
# @param data [Hash{Symbol=>Object}]
|
|
13
13
|
#
|
|
14
14
|
# @param strict [Boolean, nil]
|
|
15
15
|
#
|
|
@@ -38,26 +38,27 @@ module Anthropic
|
|
|
38
38
|
# rubocop:disable Metrics/BlockLength
|
|
39
39
|
mapped = tool_array.map do |tool|
|
|
40
40
|
case tool
|
|
41
|
-
#
|
|
42
|
-
in Anthropic::Helpers::Tools::BaseTool
|
|
41
|
+
# Runnable tool instance (an `Anthropic::BaseTool` subclass, hand-written or helper-built):
|
|
42
|
+
in Anthropic::Helpers::Tools::BaseTool
|
|
43
43
|
name = tool_api_name(tool)
|
|
44
|
+
# Helper-built tools (e.g. MCP) declare an explicit `tool_name` and only send the
|
|
45
|
+
# description they were given; hand-written tools fall back to their name.
|
|
44
46
|
description = tool.class.doc_string
|
|
47
|
+
description ||= name unless tool.class.tool_name
|
|
45
48
|
tools.store(name, tool)
|
|
46
49
|
input_schema = Anthropic::Helpers::InputSchema::JsonSchemaConverter.to_json_schema(tool)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
# On a clash the derived keys win, so nothing in `tool_options` can shadow them.
|
|
51
|
+
definition =
|
|
52
|
+
{name:, description:, input_schema:}
|
|
53
|
+
.merge(tool.class.tool_options) { |_key, derived, _option| derived }
|
|
54
|
+
.compact
|
|
55
|
+
definition.tap { _1.update(strict:) if strict }
|
|
56
|
+
# Input schema class used directly as a tool:
|
|
53
57
|
in Anthropic::Helpers::InputSchema::JsonSchemaConverter
|
|
54
|
-
name =
|
|
55
|
-
tool.is_a?(Anthropic::Helpers::Tools::BaseTool) ? tool_api_name(tool) : model_name(tool.name)
|
|
58
|
+
name = model_name(tool.name)
|
|
56
59
|
|
|
57
60
|
description =
|
|
58
61
|
case tool
|
|
59
|
-
in Anthropic::Helpers::Tools::BaseTool
|
|
60
|
-
tool.class.doc_string || name
|
|
61
62
|
in Class if tool <= Anthropic::Helpers::InputSchema::BaseModel
|
|
62
63
|
tool.doc_string || name
|
|
63
64
|
else
|
|
@@ -82,6 +83,11 @@ module Anthropic
|
|
|
82
83
|
end
|
|
83
84
|
# rubocop:enable Metrics/BlockLength
|
|
84
85
|
tool_array.replace(mapped)
|
|
86
|
+
else
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Matched separately from `tools:` so a request can carry both tools and a structured output format.
|
|
90
|
+
case data
|
|
85
91
|
# GA: output_config with BaseModel class as format
|
|
86
92
|
in {output_config: {format: Anthropic::Helpers::InputSchema::JsonSchemaConverter => model} => output_config}
|
|
87
93
|
name = model_name(model.name)
|
|
@@ -128,13 +134,13 @@ module Anthropic
|
|
|
128
134
|
|
|
129
135
|
# @api private
|
|
130
136
|
#
|
|
131
|
-
# @param raw [Hash{
|
|
137
|
+
# @param raw [Hash{Symbol=>Object}]
|
|
132
138
|
#
|
|
133
139
|
# @param tools [Hash{String=>Class}]
|
|
134
140
|
#
|
|
135
141
|
# @param models [Hash{String=>Class}]
|
|
136
142
|
#
|
|
137
|
-
# @return [Hash{
|
|
143
|
+
# @return [Hash{Symbol=>Object}]
|
|
138
144
|
def parse_input_schemas!(raw, tools:, models:)
|
|
139
145
|
raw[:content]&.each do |content|
|
|
140
146
|
case content
|