anthropic 2.9.0 → 2.10.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 +36 -0
- data/README.md +1 -1
- data/lib/anthropic/error_classes.rb +7 -0
- data/lib/anthropic/errors.rb +4 -0
- data/lib/anthropic/helpers/bedrock/client.rb +6 -6
- data/lib/anthropic/internal/type/union.rb +26 -0
- data/lib/anthropic/internal/util.rb +3 -1
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/authentication_error.rb +2 -22
- data/lib/anthropic/models/authentication_error_object.rb +28 -0
- data/lib/anthropic/models/bash_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/bash_code_execution_tool_result_error.rb +3 -15
- data/lib/anthropic/models/bash_code_execution_tool_result_error_object.rb +21 -0
- data/lib/anthropic/models/beta/beta_advisor_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_advisor_tool_result_error.rb +2 -31
- data/lib/anthropic/models/beta/beta_advisor_tool_result_error_object.rb +41 -0
- data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rb +4 -29
- data/lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rb +39 -0
- data/lib/anthropic/models/beta/beta_bill_to.rb +20 -0
- data/lib/anthropic/models/beta/beta_billing_policy.rb +36 -0
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block.rb +2 -2
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_error.rb +3 -15
- data/lib/anthropic/models/beta/beta_code_execution_tool_result_error_object.rb +25 -0
- data/lib/anthropic/models/beta/beta_content_block.rb +1 -1
- data/lib/anthropic/models/beta/beta_content_block_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_dream.rb +3 -3
- data/lib/anthropic/models/beta/beta_dream_error.rb +2 -27
- data/lib/anthropic/models/beta/beta_dream_error_object.rb +37 -0
- data/lib/anthropic/models/beta/beta_dreaming_error.rb +2 -90
- data/lib/anthropic/models/beta/beta_dreaming_error_object.rb +100 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rb +1 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rb +4 -130
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rb +143 -0
- data/lib/anthropic/models/beta/beta_managed_agents_deployment_run.rb +41 -36
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rb +4 -12
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rb +4 -20
- data/lib/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rb +5 -11
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rb +5 -12
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rb +4 -20
- data/lib/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rb +31 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rb +4 -20
- data/lib/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rb +31 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rb +5 -11
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rb +4 -12
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rb +23 -0
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error.rb +3 -20
- data/lib/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rb +30 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rb +4 -11
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rb +22 -0
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rb +4 -19
- data/lib/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rb +29 -0
- data/lib/anthropic/models/beta/beta_raw_content_block_start_event.rb +1 -1
- data/lib/anthropic/models/beta/beta_target_store_held_error.rb +2 -26
- data/lib/anthropic/models/beta/beta_target_store_held_error_object.rb +36 -0
- data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb +4 -35
- data/lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb +46 -0
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_block.rb +4 -4
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error.rb +3 -34
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error_object.rb +44 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_request_error.rb +3 -15
- data/lib/anthropic/models/beta/beta_web_search_tool_request_error_object.rb +25 -0
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rb +2 -2
- data/lib/anthropic/models/beta/beta_web_search_tool_result_error.rb +3 -15
- data/lib/anthropic/models/beta/beta_web_search_tool_result_error_object.rb +25 -0
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +12 -2
- data/lib/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rb +34 -0
- data/lib/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rb +34 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +4 -15
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rb +25 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +2 -114
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rb +124 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +4 -52
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rb +62 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +4 -26
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rb +36 -0
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +12 -1
- data/lib/anthropic/models/beta/message_create_params.rb +15 -1
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +15 -1
- data/lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb +1 -2
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +2 -0
- data/lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb +11 -2
- data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rb +4 -26
- data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +7 -6
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +2 -0
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +7 -6
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +7 -6
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rb +3 -84
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rb +94 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rb +4 -85
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rb +95 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rb +4 -99
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rb +109 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rb +4 -25
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb +35 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rb +4 -90
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rb +100 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rb +4 -90
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rb +100 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rb +4 -83
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rb +93 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rb +4 -82
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rb +92 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rb +4 -82
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rb +92 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rb +4 -98
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rb +108 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rb +4 -97
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rb +107 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +36 -34
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +2 -2
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rb +4 -86
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rb +96 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rb +3 -84
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rb +94 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rb +4 -24
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rb +34 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rb +4 -73
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rb +83 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rb +5 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rb +4 -19
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rb +29 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb +2 -2
- data/lib/anthropic/models/beta_api_error.rb +2 -22
- data/lib/anthropic/models/beta_api_error_object.rb +28 -0
- data/lib/anthropic/models/beta_authentication_error.rb +2 -22
- data/lib/anthropic/models/beta_authentication_error_object.rb +28 -0
- data/lib/anthropic/models/beta_billing_error.rb +2 -22
- data/lib/anthropic/models/beta_billing_error_object.rb +28 -0
- data/lib/anthropic/models/beta_error.rb +2 -82
- data/lib/anthropic/models/beta_error_object.rb +88 -0
- data/lib/anthropic/models/beta_error_response.rb +3 -3
- data/lib/anthropic/models/beta_gateway_timeout_error.rb +2 -22
- data/lib/anthropic/models/beta_gateway_timeout_error_object.rb +28 -0
- data/lib/anthropic/models/beta_invalid_request_error.rb +2 -22
- data/lib/anthropic/models/beta_invalid_request_error_object.rb +28 -0
- data/lib/anthropic/models/beta_not_found_error.rb +2 -22
- data/lib/anthropic/models/beta_not_found_error_object.rb +28 -0
- data/lib/anthropic/models/beta_overloaded_error.rb +2 -22
- data/lib/anthropic/models/beta_overloaded_error_object.rb +28 -0
- data/lib/anthropic/models/beta_permission_error.rb +2 -22
- data/lib/anthropic/models/beta_permission_error_object.rb +28 -0
- data/lib/anthropic/models/beta_rate_limit_error.rb +2 -22
- data/lib/anthropic/models/beta_rate_limit_error_object.rb +28 -0
- data/lib/anthropic/models/billing_error.rb +2 -22
- data/lib/anthropic/models/billing_error_object.rb +28 -0
- data/lib/anthropic/models/code_execution_tool_result_block.rb +2 -2
- data/lib/anthropic/models/code_execution_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/code_execution_tool_result_error.rb +3 -15
- data/lib/anthropic/models/code_execution_tool_result_error_object.rb +21 -0
- data/lib/anthropic/models/content_block.rb +1 -1
- data/lib/anthropic/models/content_block_param.rb +1 -1
- data/lib/anthropic/models/contract_spend_limit_reached_error.rb +19 -0
- data/lib/anthropic/models/contract_spend_limit_reached_error_details.rb +17 -0
- data/lib/anthropic/models/error_details.rb +41 -2
- data/lib/anthropic/models/error_object.rb +18 -18
- data/lib/anthropic/models/error_response.rb +2 -2
- data/lib/anthropic/models/gateway_timeout_error.rb +2 -22
- data/lib/anthropic/models/gateway_timeout_error_object.rb +28 -0
- data/lib/anthropic/models/invalid_request_error.rb +2 -22
- data/lib/anthropic/models/invalid_request_error_object.rb +28 -0
- data/lib/anthropic/models/linked_organization_billing_unavailable_error.rb +21 -0
- data/lib/anthropic/models/linked_organization_billing_unavailable_error_details.rb +19 -0
- data/lib/anthropic/models/linked_organization_spend_limit_reached_error.rb +21 -0
- data/lib/anthropic/models/linked_organization_spend_limit_reached_error_details.rb +19 -0
- data/lib/anthropic/models/not_found_error.rb +2 -22
- data/lib/anthropic/models/not_found_error_object.rb +28 -0
- data/lib/anthropic/models/organization/aws_external_key_config.rb +1 -2
- data/lib/anthropic/models/organization/workspace.rb +7 -6
- data/lib/anthropic/models/organization/workspace_create_params.rb +7 -6
- data/lib/anthropic/models/organization/workspace_update_params.rb +7 -6
- data/lib/anthropic/models/overloaded_error.rb +2 -22
- data/lib/anthropic/models/overloaded_error_object.rb +28 -0
- data/lib/anthropic/models/permission_error.rb +2 -22
- data/lib/anthropic/models/permission_error_object.rb +28 -0
- data/lib/anthropic/models/rate_limit_error.rb +2 -22
- data/lib/anthropic/models/rate_limit_error_object.rb +28 -0
- data/lib/anthropic/models/raw_content_block_start_event.rb +1 -1
- data/lib/anthropic/models/text_editor_code_execution_tool_result_block.rb +4 -4
- data/lib/anthropic/models/text_editor_code_execution_tool_result_error.rb +3 -21
- data/lib/anthropic/models/text_editor_code_execution_tool_result_error_object.rb +27 -0
- data/lib/anthropic/models/tool_search_tool_result_block.rb +4 -4
- data/lib/anthropic/models/tool_search_tool_result_error.rb +2 -21
- data/lib/anthropic/models/tool_search_tool_result_error_object.rb +27 -0
- data/lib/anthropic/models/user_profile_billing_not_authorized_error.rb +21 -0
- data/lib/anthropic/models/user_profile_billing_not_authorized_error_details.rb +19 -0
- data/lib/anthropic/models/user_profile_not_billable_error.rb +20 -0
- data/lib/anthropic/models/user_profile_not_billable_error_details.rb +18 -0
- data/lib/anthropic/models/user_profile_required_error.rb +20 -0
- data/lib/anthropic/models/user_profile_required_error_details.rb +18 -0
- data/lib/anthropic/models/web_search_tool_request_error.rb +2 -15
- data/lib/anthropic/models/web_search_tool_request_error_object.rb +21 -0
- data/lib/anthropic/models/web_search_tool_result_block.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_block_content.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_block_param.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_block_param_content.rb +2 -2
- data/lib/anthropic/models/web_search_tool_result_error.rb +2 -15
- data/lib/anthropic/models/web_search_tool_result_error_object.rb +21 -0
- data/lib/anthropic/models.rb +76 -0
- data/lib/anthropic/resources/beta/environments/work.rb +21 -20
- data/lib/anthropic/resources/beta/messages.rb +60 -4
- data/lib/anthropic/resources/beta/organization/plugins.rb +6 -2
- data/lib/anthropic/resources/messages.rb +48 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +108 -0
- data/rbi/anthropic/errors.rbi +4 -0
- data/rbi/anthropic/internal/type/union.rbi +5 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/authentication_error.rbi +1 -29
- data/rbi/anthropic/models/authentication_error_object.rbi +38 -0
- data/rbi/anthropic/models/bash_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/bash_code_execution_tool_result_error.rbi +2 -38
- data/rbi/anthropic/models/bash_code_execution_tool_result_error_object.rbi +44 -0
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_error.rbi +2 -100
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_error_object.rbi +110 -0
- data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbi +2 -90
- data/rbi/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbi +101 -0
- data/rbi/anthropic/models/beta/beta_bill_to.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_billing_policy.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error.rbi +2 -41
- data/rbi/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbi +52 -0
- data/rbi/anthropic/models/beta/beta_content_block.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_content_block_param.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_dream.rbi +6 -4
- data/rbi/anthropic/models/beta/beta_dream_error.rbi +1 -36
- data/rbi/anthropic/models/beta/beta_dream_error_object.rbi +49 -0
- data/rbi/anthropic/models/beta/beta_dreaming_error.rbi +1 -112
- data/rbi/anthropic/models/beta/beta_dreaming_error_object.rbi +124 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbi +14 -14
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbi +2 -141
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbi +152 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_deployment_run.rbi +32 -32
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbi +16 -16
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbi +2 -22
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbi +2 -22
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbi +2 -22
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbi +33 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbi +2 -30
- data/rbi/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbi +41 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbi +2 -21
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbi +32 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbi +2 -29
- data/rbi/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_raw_content_block_start_event.rbi +6 -6
- data/rbi/anthropic/models/beta/beta_target_store_held_error.rbi +2 -36
- data/rbi/anthropic/models/beta/beta_target_store_held_error_object.rbi +46 -0
- data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbi +2 -99
- data/rbi/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbi +110 -0
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error.rbi +2 -94
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_request_error.rbi +2 -39
- data/rbi/anthropic/models/beta/beta_web_search_tool_request_error_object.rbi +50 -0
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param.rbi +3 -3
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_error.rbi +2 -41
- data/rbi/anthropic/models/beta/beta_web_search_tool_result_error_object.rbi +52 -0
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +13 -1
- data/rbi/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbi +51 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +2 -28
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +2 -144
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbi +154 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +2 -82
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbi +92 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +2 -38
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbi +48 -0
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +23 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +29 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +30 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_key_config.rbi +2 -4
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +1 -2
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/beta_plugin_content_scan.rbi +22 -4
- data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbi +2 -44
- data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbi +54 -0
- data/rbi/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbi +3 -3
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +14 -12
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +1 -2
- data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +1 -2
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +10 -0
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +14 -12
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +14 -12
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbi +2 -137
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbi +147 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbi +2 -138
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbi +148 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbi +2 -152
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbi +162 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbi +2 -34
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbi +44 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbi +2 -143
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbi +153 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbi +2 -143
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbi +153 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbi +2 -136
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbi +146 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbi +2 -135
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbi +145 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbi +2 -135
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbi +145 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbi +2 -149
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbi +159 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbi +2 -148
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbi +158 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +30 -30
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +21 -21
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +21 -21
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +21 -21
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbi +2 -139
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbi +149 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbi +2 -137
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbi +147 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbi +2 -33
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbi +43 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbi +2 -95
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbi +7 -7
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbi +105 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbi +6 -6
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbi +2 -53
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbi +63 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rbi +1 -1
- data/rbi/anthropic/models/beta_api_error.rbi +1 -29
- data/rbi/anthropic/models/beta_api_error_object.rbi +35 -0
- data/rbi/anthropic/models/beta_authentication_error.rbi +1 -32
- data/rbi/anthropic/models/beta_authentication_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_billing_error.rbi +1 -29
- data/rbi/anthropic/models/beta_billing_error_object.rbi +35 -0
- data/rbi/anthropic/models/beta_error.rbi +1 -73
- data/rbi/anthropic/models/beta_error_object.rbi +97 -0
- data/rbi/anthropic/models/beta_error_response.rbi +11 -11
- data/rbi/anthropic/models/beta_gateway_timeout_error.rbi +1 -32
- data/rbi/anthropic/models/beta_gateway_timeout_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_invalid_request_error.rbi +1 -32
- data/rbi/anthropic/models/beta_invalid_request_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_not_found_error.rbi +1 -29
- data/rbi/anthropic/models/beta_not_found_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_overloaded_error.rbi +1 -29
- data/rbi/anthropic/models/beta_overloaded_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_permission_error.rbi +1 -29
- data/rbi/anthropic/models/beta_permission_error_object.rbi +38 -0
- data/rbi/anthropic/models/beta_rate_limit_error.rbi +1 -29
- data/rbi/anthropic/models/beta_rate_limit_error_object.rbi +38 -0
- data/rbi/anthropic/models/billing_error.rbi +1 -29
- data/rbi/anthropic/models/billing_error_object.rbi +35 -0
- data/rbi/anthropic/models/code_execution_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/code_execution_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/code_execution_tool_result_error.rbi +2 -36
- data/rbi/anthropic/models/code_execution_tool_result_error_object.rbi +42 -0
- data/rbi/anthropic/models/content_block.rbi +5 -5
- data/rbi/anthropic/models/content_block_param.rbi +1 -1
- data/rbi/anthropic/models/contract_spend_limit_reached_error.rbi +16 -0
- data/rbi/anthropic/models/contract_spend_limit_reached_error_details.rbi +27 -0
- data/rbi/anthropic/models/error_details.rbi +36 -0
- data/rbi/anthropic/models/error_object.rbi +8 -8
- data/rbi/anthropic/models/error_response.rbi +8 -8
- data/rbi/anthropic/models/gateway_timeout_error.rbi +1 -29
- data/rbi/anthropic/models/gateway_timeout_error_object.rbi +38 -0
- data/rbi/anthropic/models/invalid_request_error.rbi +1 -29
- data/rbi/anthropic/models/invalid_request_error_object.rbi +38 -0
- data/rbi/anthropic/models/linked_organization_billing_unavailable_error.rbi +20 -0
- data/rbi/anthropic/models/linked_organization_billing_unavailable_error_details.rbi +29 -0
- data/rbi/anthropic/models/linked_organization_spend_limit_reached_error.rbi +20 -0
- data/rbi/anthropic/models/linked_organization_spend_limit_reached_error_details.rbi +29 -0
- data/rbi/anthropic/models/not_found_error.rbi +1 -29
- data/rbi/anthropic/models/not_found_error_object.rbi +35 -0
- data/rbi/anthropic/models/organization/aws_external_key_config.rbi +2 -4
- data/rbi/anthropic/models/organization/external_key.rbi +1 -2
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +1 -2
- data/rbi/anthropic/models/organization/external_key_update_params.rbi +1 -2
- data/rbi/anthropic/models/organization/workspace.rbi +14 -12
- data/rbi/anthropic/models/organization/workspace_create_params.rbi +14 -12
- data/rbi/anthropic/models/organization/workspace_update_params.rbi +14 -12
- data/rbi/anthropic/models/overloaded_error.rbi +1 -29
- data/rbi/anthropic/models/overloaded_error_object.rbi +35 -0
- data/rbi/anthropic/models/permission_error.rbi +1 -29
- data/rbi/anthropic/models/permission_error_object.rbi +35 -0
- data/rbi/anthropic/models/rate_limit_error.rbi +1 -29
- data/rbi/anthropic/models/rate_limit_error_object.rbi +35 -0
- data/rbi/anthropic/models/raw_content_block_start_event.rbi +5 -5
- data/rbi/anthropic/models/text_editor_code_execution_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/text_editor_code_execution_tool_result_error.rbi +2 -50
- data/rbi/anthropic/models/text_editor_code_execution_tool_result_error_object.rbi +56 -0
- data/rbi/anthropic/models/tool_search_tool_result_block.rbi +2 -2
- data/rbi/anthropic/models/tool_search_tool_result_error.rbi +2 -44
- data/rbi/anthropic/models/tool_search_tool_result_error_object.rbi +50 -0
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error.rbi +18 -0
- data/rbi/anthropic/models/user_profile_billing_not_authorized_error_details.rbi +29 -0
- data/rbi/anthropic/models/user_profile_not_billable_error.rbi +17 -0
- data/rbi/anthropic/models/user_profile_not_billable_error_details.rbi +28 -0
- data/rbi/anthropic/models/user_profile_required_error.rbi +17 -0
- data/rbi/anthropic/models/user_profile_required_error_details.rbi +28 -0
- data/rbi/anthropic/models/web_search_tool_request_error.rbi +2 -35
- data/rbi/anthropic/models/web_search_tool_request_error_object.rbi +41 -0
- data/rbi/anthropic/models/web_search_tool_result_block.rbi +1 -1
- data/rbi/anthropic/models/web_search_tool_result_block_content.rbi +1 -1
- data/rbi/anthropic/models/web_search_tool_result_block_param.rbi +3 -3
- data/rbi/anthropic/models/web_search_tool_result_block_param_content.rbi +1 -1
- data/rbi/anthropic/models/web_search_tool_result_error.rbi +1 -35
- data/rbi/anthropic/models/web_search_tool_result_error_object.rbi +41 -0
- data/rbi/anthropic/models.rbi +91 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +21 -20
- data/rbi/anthropic/resources/beta/messages.rbi +50 -0
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +6 -2
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +15 -12
- data/rbi/anthropic/resources/organization/workspaces.rbi +14 -12
- data/sig/anthropic/errors.rbs +4 -0
- data/sig/anthropic/internal/type/union.rbs +4 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/authentication_error.rbs +1 -11
- data/sig/anthropic/models/authentication_error_object.rbs +16 -0
- data/sig/anthropic/models/bash_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/bash_code_execution_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/bash_code_execution_tool_result_error_object.rbs +25 -0
- data/sig/anthropic/models/beta/beta_advisor_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_advisor_tool_result_error.rbs +1 -44
- data/sig/anthropic/models/beta/beta_advisor_tool_result_error_object.rbs +52 -0
- data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error.rbs +1 -40
- data/sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_object.rbs +48 -0
- data/sig/anthropic/models/beta/beta_bill_to.rbs +18 -0
- data/sig/anthropic/models/beta/beta_billing_policy.rbs +33 -0
- data/sig/anthropic/models/beta/beta_code_execution_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/beta/beta_code_execution_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/beta/beta_code_execution_tool_result_error_object.rbs +29 -0
- data/sig/anthropic/models/beta/beta_dream.rbs +4 -4
- data/sig/anthropic/models/beta/beta_dream_error.rbs +1 -11
- data/sig/anthropic/models/beta/beta_dream_error_object.rbs +19 -0
- data/sig/anthropic/models/beta/beta_dreaming_error.rbs +1 -92
- data/sig/anthropic/models/beta/beta_dreaming_error_object.rbs +101 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_agent_archived_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason.rbs +2 -2
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error.rbs +1 -108
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_paused_reason_error_object.rbs +116 -0
- data/sig/anthropic/models/beta/beta_managed_agents_deployment_run.rbs +32 -32
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_environment_archived_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_environment_not_found_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_error_deployment_paused_reason.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_file_not_found_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_mcp_egress_blocked_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_archived_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_organization_disabled_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_deployment_paused_reason_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error.rbs +1 -18
- data/sig/anthropic/models/beta/beta_managed_agents_self_hosted_resources_unsupported_run_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error.rbs +1 -18
- data/sig/anthropic/models/beta/beta_managed_agents_session_creation_rejected_run_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_session_rate_limited_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error.rbs +1 -18
- data/sig/anthropic/models/beta/beta_managed_agents_session_resource_not_found_run_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_skill_not_found_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_unknown_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_vault_archived_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/beta_managed_agents_vault_not_found_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error.rbs +1 -10
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_deployment_paused_reason_error_object.rbs +18 -0
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/beta_managed_agents_workspace_archived_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/beta_target_store_held_error.rbs +1 -14
- data/sig/anthropic/models/beta/beta_target_store_held_error_object.rbs +22 -0
- data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rbs +1 -45
- data/sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbs +53 -0
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error.rbs +1 -43
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error_object.rbs +51 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_request_error.rbs +1 -21
- data/sig/anthropic/models/beta/beta_web_search_tool_request_error_object.rbs +29 -0
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/beta/beta_web_search_tool_result_block_param_content.rbs +1 -1
- data/sig/anthropic/models/beta/beta_web_search_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/beta/beta_web_search_tool_result_error_object.rbs +29 -0
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +16 -0
- data/sig/anthropic/models/beta/beta_webhook_external_key_failed_event_data.rbs +30 -0
- data/sig/anthropic/models/beta/beta_webhook_external_key_recovered_event_data.rbs +30 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +1 -14
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error_object.rbs +22 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +1 -112
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error_object.rbs +120 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +1 -37
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error_object.rbs +45 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +1 -20
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error_object.rbs +28 -0
- data/sig/anthropic/models/beta/message_count_tokens_params.rbs +5 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +5 -1
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +5 -1
- data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error.rbs +1 -18
- data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbs +4 -4
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +5 -1
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +5 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_billing_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error.rbs +1 -74
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_credential_host_unreachable_error_object.rbs +82 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error.rbs +1 -15
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbs +23 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_authentication_failed_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_mcp_connection_failed_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_overloaded_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_rate_limited_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_model_request_failed_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_program_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_authentication_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_checkout_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_clone_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_forbidden_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error.rbs +1 -69
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_repository_not_found_error_object.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +60 -60
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +2 -2
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +2 -2
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +2 -2
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_thread_limit_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_timeout_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error.rbs +1 -64
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_error_object.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error.rbs +1 -12
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_unknown_workflow_run_error_object.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error.rbs +1 -58
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs +4 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_object.rbs +66 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result.rbs +4 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error.rbs +1 -21
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_result_error_object.rbs +29 -0
- data/sig/anthropic/models/beta_api_error.rbs +1 -11
- data/sig/anthropic/models/beta_api_error_object.rbs +15 -0
- data/sig/anthropic/models/beta_authentication_error.rbs +1 -12
- data/sig/anthropic/models/beta_authentication_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_billing_error.rbs +1 -11
- data/sig/anthropic/models/beta_billing_error_object.rbs +15 -0
- data/sig/anthropic/models/beta_error.rbs +1 -85
- data/sig/anthropic/models/beta_error_object.rbs +89 -0
- data/sig/anthropic/models/beta_error_response.rbs +4 -4
- data/sig/anthropic/models/beta_gateway_timeout_error.rbs +1 -11
- data/sig/anthropic/models/beta_gateway_timeout_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_invalid_request_error.rbs +1 -12
- data/sig/anthropic/models/beta_invalid_request_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_not_found_error.rbs +1 -11
- data/sig/anthropic/models/beta_not_found_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_overloaded_error.rbs +1 -11
- data/sig/anthropic/models/beta_overloaded_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_permission_error.rbs +1 -11
- data/sig/anthropic/models/beta_permission_error_object.rbs +16 -0
- data/sig/anthropic/models/beta_rate_limit_error.rbs +1 -11
- data/sig/anthropic/models/beta_rate_limit_error_object.rbs +16 -0
- data/sig/anthropic/models/billing_error.rbs +1 -11
- data/sig/anthropic/models/billing_error_object.rbs +15 -0
- data/sig/anthropic/models/code_execution_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/code_execution_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/code_execution_tool_result_error_object.rbs +25 -0
- data/sig/anthropic/models/contract_spend_limit_reached_error.rbs +9 -0
- data/sig/anthropic/models/contract_spend_limit_reached_error_details.rbs +14 -0
- data/sig/anthropic/models/error_details.rbs +40 -0
- data/sig/anthropic/models/error_object.rbs +16 -16
- data/sig/anthropic/models/gateway_timeout_error.rbs +1 -11
- data/sig/anthropic/models/gateway_timeout_error_object.rbs +16 -0
- data/sig/anthropic/models/invalid_request_error.rbs +1 -12
- data/sig/anthropic/models/invalid_request_error_object.rbs +16 -0
- data/sig/anthropic/models/linked_organization_billing_unavailable_error.rbs +9 -0
- data/sig/anthropic/models/linked_organization_billing_unavailable_error_details.rbs +16 -0
- data/sig/anthropic/models/linked_organization_spend_limit_reached_error.rbs +9 -0
- data/sig/anthropic/models/linked_organization_spend_limit_reached_error_details.rbs +16 -0
- data/sig/anthropic/models/not_found_error.rbs +1 -11
- data/sig/anthropic/models/not_found_error_object.rbs +15 -0
- data/sig/anthropic/models/overloaded_error.rbs +1 -11
- data/sig/anthropic/models/overloaded_error_object.rbs +15 -0
- data/sig/anthropic/models/permission_error.rbs +1 -11
- data/sig/anthropic/models/permission_error_object.rbs +15 -0
- data/sig/anthropic/models/rate_limit_error.rbs +1 -11
- data/sig/anthropic/models/rate_limit_error_object.rbs +15 -0
- data/sig/anthropic/models/text_editor_code_execution_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/text_editor_code_execution_tool_result_error.rbs +1 -26
- data/sig/anthropic/models/text_editor_code_execution_tool_result_error_object.rbs +30 -0
- data/sig/anthropic/models/tool_search_tool_result_block.rbs +1 -1
- data/sig/anthropic/models/tool_search_tool_result_error.rbs +1 -26
- data/sig/anthropic/models/tool_search_tool_result_error_object.rbs +30 -0
- data/sig/anthropic/models/user_profile_billing_not_authorized_error.rbs +9 -0
- data/sig/anthropic/models/user_profile_billing_not_authorized_error_details.rbs +16 -0
- data/sig/anthropic/models/user_profile_not_billable_error.rbs +9 -0
- data/sig/anthropic/models/user_profile_not_billable_error_details.rbs +14 -0
- data/sig/anthropic/models/user_profile_required_error.rbs +9 -0
- data/sig/anthropic/models/user_profile_required_error_details.rbs +14 -0
- data/sig/anthropic/models/web_search_tool_request_error.rbs +1 -21
- data/sig/anthropic/models/web_search_tool_request_error_object.rbs +25 -0
- data/sig/anthropic/models/web_search_tool_result_block_content.rbs +1 -1
- data/sig/anthropic/models/web_search_tool_result_block_param_content.rbs +1 -1
- data/sig/anthropic/models/web_search_tool_result_error.rbs +1 -21
- data/sig/anthropic/models/web_search_tool_result_error_object.rbs +25 -0
- data/sig/anthropic/models.rbs +72 -0
- data/sig/anthropic/resources/beta/messages.rbs +5 -0
- metadata +326 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c95b436e737195df72142c842d05ed099068cd446fa0043cc407cb6cf5451deb
|
|
4
|
+
data.tar.gz: dd5f8d0bd460c4dc19208454a06e751bacffc2d10c7a93806564926e5bfce304
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07c30931b22e14a6e041a2c8cabfc28962efe35d70ab9d0a4e1d5bb18f4184237b30378fe0f34ccd47dfd385cf7ca95b8c8d0d0162086251ffb9165f6306df6e
|
|
7
|
+
data.tar.gz: 675521144c16c141961c6b06405e8d5542eed2a0db0ef6a2013aea25ccf21f48e8222efa3fcc0dfa55cafcb0cd7cbdbefc0f95fa04d995192206165f74c6c7a6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.10.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v2.9.0...v2.10.0) (2026-11-17)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **api:** add beta support for the billing_policy request parameter
|
|
8
|
+
* **api:** add contract_spend_limit_reached error code to messages
|
|
9
|
+
* **api:** add error codes for linked billing refusals
|
|
10
|
+
* **api:** add the user_profile_billing_not_authorized error code
|
|
11
|
+
* **api:** add webhook events for external key failure and recovery
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **bedrock:** refresh temporary AWS credentials
|
|
17
|
+
* **client:** encode spaces in query strings as %20
|
|
18
|
+
|
|
19
|
+
The AWS SigV4 signature of a request now matches its query string when a parameter contains a space.
|
|
20
|
+
|
|
21
|
+
* **client:** send API property names from hashes in unions without a discriminator
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Chores
|
|
25
|
+
|
|
26
|
+
* **api:** rename error data models, deprecating the old names
|
|
27
|
+
* **docs:** clarify which AWS KMS keys a workspace can use on Claude Platform on AWS
|
|
28
|
+
* **docs:** clarify which credential work get, update and list accept
|
|
29
|
+
* **docs:** clarify which uploads a plugin pin holds back
|
|
30
|
+
* **docs:** note that a plugin scan's reason also covers errored scans
|
|
31
|
+
|
|
32
|
+
`content_scan.reason` on an errored scan now says why there is no verdict. It is not a security finding, so code that treats any `reason` as a concern should also check `status`.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Documentation
|
|
36
|
+
|
|
37
|
+
* **client:** list the errors that messages.stream can raise
|
|
38
|
+
|
|
3
39
|
## [2.9.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v2.8.0...v2.9.0) (2026-11-16)
|
|
4
40
|
|
|
5
41
|
### Features
|
data/README.md
CHANGED
|
@@ -9,6 +9,7 @@ module Anthropic
|
|
|
9
9
|
{
|
|
10
10
|
[400, nil] => Anthropic::Errors::BadRequestError,
|
|
11
11
|
[401, nil] => Anthropic::Errors::AuthenticationError,
|
|
12
|
+
[402, nil] => Anthropic::Errors::PaymentRequiredError,
|
|
12
13
|
[403, nil] => Anthropic::Errors::PermissionDeniedError,
|
|
13
14
|
[404, nil] => Anthropic::Errors::NotFoundError,
|
|
14
15
|
[408, nil] => Anthropic::Errors::RequestTimeoutError,
|
|
@@ -74,9 +75,12 @@ module Anthropic
|
|
|
74
75
|
[400, "tool_reference_unresolved"] => Anthropic::Models::ToolReferenceUnresolvedError,
|
|
75
76
|
[400, "unsupported_charset"] => Anthropic::Models::BetaUnsupportedCharsetError,
|
|
76
77
|
[400, "user_profile_not_found"] => Anthropic::Models::UserProfileNotFoundError,
|
|
78
|
+
[400, "user_profile_required"] => Anthropic::Models::UserProfileRequiredError,
|
|
77
79
|
[400, "workspace_api_key_limit_exceeded"] => Anthropic::Models::Organization::WorkspaceAPIKeyLimitExceededError,
|
|
78
80
|
[400, "workspace_member_limit_exceeded"] => Anthropic::Models::Organization::WorkspaceMemberLimitExceededError,
|
|
79
81
|
[400, "workspace_policy_violation"] => Anthropic::Models::Organization::WorkspacePolicyViolationError,
|
|
82
|
+
[402, "linked_organization_billing_unavailable"] => Anthropic::Models::LinkedOrganizationBillingUnavailableError,
|
|
83
|
+
[402, "linked_organization_spend_limit_reached"] => Anthropic::Models::LinkedOrganizationSpendLimitReachedError,
|
|
80
84
|
[403, "api_key_scope_missing"] => Anthropic::Models::Beta::Organization::BetaAPIKeyScopeMissingError,
|
|
81
85
|
[403, "cannot_sign_out_managed_member"] => Anthropic::Models::Beta::Organization::BetaCannotSignOutManagedMemberError,
|
|
82
86
|
[403, "cannot_sign_out_membership_admin"] => Anthropic::Models::Beta::Organization::BetaCannotSignOutMembershipAdminError,
|
|
@@ -89,6 +93,8 @@ module Anthropic
|
|
|
89
93
|
[403, "organization_level_scoped_api_key_required"] => Anthropic::Models::Beta::Organization::BetaOrganizationLevelScopedAPIKeyRequiredError,
|
|
90
94
|
[403, "sandbox_egress_restricted"] => Anthropic::Models::SandboxEgressRestrictedError,
|
|
91
95
|
[403, "spend_limits_admin_api_writes_not_enabled"] => Anthropic::Models::Beta::Organization::BetaSpendLimitsAdminAPIWritesNotEnabledError,
|
|
96
|
+
[403, "user_profile_billing_not_authorized"] => Anthropic::Models::UserProfileBillingNotAuthorizedError,
|
|
97
|
+
[403, "user_profile_not_billable"] => Anthropic::Models::UserProfileNotBillableError,
|
|
92
98
|
[404, "environment_not_found"] => Anthropic::Models::Beta::BetaEnvironmentNotFoundError,
|
|
93
99
|
[404, "file_expired"] => Anthropic::Models::FileExpiredError,
|
|
94
100
|
[404, "rbac_role_not_found"] => Anthropic::Models::RBACRoleNotFoundError,
|
|
@@ -103,6 +109,7 @@ module Anthropic
|
|
|
103
109
|
[409, "slack_channel_set_up_settings_conflict"] => Anthropic::Models::Beta::Organization::BetaSlackChannelSetUpSettingsConflictError,
|
|
104
110
|
[412, "heartbeat_precondition_failed"] => Anthropic::Models::Beta::Environments::BetaHeartbeatPreconditionFailedError,
|
|
105
111
|
[413, "request_body_too_large_after_decoding"] => Anthropic::Models::RequestBodyTooLargeAfterDecodingError,
|
|
112
|
+
[429, "contract_spend_limit_reached"] => Anthropic::Models::ContractSpendLimitReachedError,
|
|
106
113
|
[429, "enforced_spend_limit_reached"] => Anthropic::Models::EnforcedSpendLimitReachedError,
|
|
107
114
|
[429, "ramp_limit_exceeded"] => Anthropic::Models::RampLimitExceededError,
|
|
108
115
|
[503, "cmek_context_unavailable"] => Anthropic::Models::CMEKContextUnavailableError,
|
data/lib/anthropic/errors.rb
CHANGED
|
@@ -248,6 +248,10 @@ module Anthropic
|
|
|
248
248
|
HTTP_STATUS = 401
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
+
class PaymentRequiredError < Anthropic::Errors::APIStatusError
|
|
252
|
+
HTTP_STATUS = 402
|
|
253
|
+
end
|
|
254
|
+
|
|
251
255
|
class PermissionDeniedError < Anthropic::Errors::APIStatusError
|
|
252
256
|
HTTP_STATUS = 403
|
|
253
257
|
end
|
|
@@ -15,8 +15,8 @@ module Anthropic
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
attr_reader :aws_region
|
|
17
17
|
|
|
18
|
-
# @return [Aws::Credentials]
|
|
19
|
-
|
|
18
|
+
# @return [Aws::Credentials, nil]
|
|
19
|
+
def aws_credentials = @signer&.credentials_provider&.credentials
|
|
20
20
|
|
|
21
21
|
# @return [String, nil]
|
|
22
22
|
def api_key = @auth_token
|
|
@@ -105,7 +105,7 @@ module Anthropic
|
|
|
105
105
|
raise RuntimeError.new(message)
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
@aws_region,
|
|
108
|
+
@aws_region, credentials_provider = resolve_region_and_credentials(
|
|
109
109
|
aws_region: aws_region,
|
|
110
110
|
aws_secret_key: aws_secret_key,
|
|
111
111
|
aws_access_key: aws_access_key,
|
|
@@ -116,7 +116,7 @@ module Anthropic
|
|
|
116
116
|
@signer = Aws::Sigv4::Signer.new(
|
|
117
117
|
service: "bedrock",
|
|
118
118
|
region: @aws_region,
|
|
119
|
-
|
|
119
|
+
credentials_provider: credentials_provider
|
|
120
120
|
)
|
|
121
121
|
else
|
|
122
122
|
@aws_region = aws_region || env_lookup("AWS_REGION", "AWS_DEFAULT_REGION")
|
|
@@ -280,7 +280,7 @@ module Anthropic
|
|
|
280
280
|
#
|
|
281
281
|
# @param aws_profile [String, nil]
|
|
282
282
|
#
|
|
283
|
-
# @return [Array<String, Aws::
|
|
283
|
+
# @return [Array<String, Aws::CredentialProvider>]
|
|
284
284
|
#
|
|
285
285
|
private def resolve_region_and_credentials(
|
|
286
286
|
aws_region:,
|
|
@@ -298,7 +298,7 @@ module Anthropic
|
|
|
298
298
|
(client_options[:region] = aws_region) unless aws_region.nil?
|
|
299
299
|
|
|
300
300
|
bedrock_client = Aws::BedrockRuntime::Client.new(client_options)
|
|
301
|
-
[bedrock_client.config.region, bedrock_client.config.credentials
|
|
301
|
+
[bedrock_client.config.region, bedrock_client.config.credentials]
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
# @private
|
|
@@ -112,6 +112,28 @@ module Anthropic
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
+
# @api private
|
|
116
|
+
#
|
|
117
|
+
# @param value [Object]
|
|
118
|
+
#
|
|
119
|
+
# @return [Anthropic::Internal::Type::Converter, Class, nil]
|
|
120
|
+
private def resolve_untagged_variant(value)
|
|
121
|
+
variants.find do |target|
|
|
122
|
+
case [target, value]
|
|
123
|
+
in [Anthropic::Internal::Type::ArrayOf, Array]
|
|
124
|
+
true
|
|
125
|
+
in [Class, Hash] if target <= Anthropic::Internal::Type::BaseModel
|
|
126
|
+
consts = target.known_fields.reject { _2.fetch(:const) == Anthropic::Internal::OMIT }
|
|
127
|
+
consts.any? && consts.all? do |name, field|
|
|
128
|
+
val = value.fetch(name) { value[name.to_s] }
|
|
129
|
+
(val.is_a?(String) ? val.to_sym : val) == field.fetch(:const)
|
|
130
|
+
end
|
|
131
|
+
else
|
|
132
|
+
false
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
115
137
|
# rubocop:disable Style/HashEachMethods
|
|
116
138
|
# rubocop:disable Style/CaseEquality
|
|
117
139
|
|
|
@@ -226,6 +248,10 @@ module Anthropic
|
|
|
226
248
|
return Anthropic::Internal::Type::Converter.dump(target, value, state: state) if target === value
|
|
227
249
|
end
|
|
228
250
|
|
|
251
|
+
if (target = resolve_untagged_variant(value))
|
|
252
|
+
return Anthropic::Internal::Type::Converter.dump(target, value, state: state)
|
|
253
|
+
end
|
|
254
|
+
|
|
229
255
|
super
|
|
230
256
|
end
|
|
231
257
|
|
|
@@ -338,7 +338,9 @@ module Anthropic
|
|
|
338
338
|
#
|
|
339
339
|
# @return [String, nil]
|
|
340
340
|
def encode_query(query)
|
|
341
|
-
query.to_h.empty?
|
|
341
|
+
return if query.to_h.empty?
|
|
342
|
+
|
|
343
|
+
URI.encode_www_form(query).gsub(/[+*]|%7E/, {"+" => "%20", "*" => "%2A", "%7E" => "~"})
|
|
342
344
|
end
|
|
343
345
|
end
|
|
344
346
|
|
|
@@ -121,6 +121,8 @@ module Anthropic
|
|
|
121
121
|
|
|
122
122
|
variant const: -> { Anthropic::Models::AnthropicBeta::CE_USER_MANAGEMENT_2026_07_13 }
|
|
123
123
|
|
|
124
|
+
variant const: -> { Anthropic::Models::AnthropicBeta::USER_PROFILES_BILLING_2026_10_01 }
|
|
125
|
+
|
|
124
126
|
variant String
|
|
125
127
|
|
|
126
128
|
# @!method self.variants
|
|
@@ -202,6 +204,7 @@ module Anthropic
|
|
|
202
204
|
CACHE_DIAGNOSIS_2026_04_07 = :"cache-diagnosis-2026-04-07"
|
|
203
205
|
# @deprecated This value is no longer needed. Remove it from your requests.
|
|
204
206
|
CE_USER_MANAGEMENT_2026_07_13 = :"ce-user-management-2026-07-13"
|
|
207
|
+
USER_PROFILES_BILLING_2026_10_01 = :"user-profiles-billing-2026-10-01"
|
|
205
208
|
|
|
206
209
|
# @!endgroup
|
|
207
210
|
end
|
|
@@ -2,27 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
-
# match on it.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :message, String
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The broad category of the error.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :authentication_error]
|
|
17
|
-
required :type, const: :authentication_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :authentication_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::AuthenticationError} for more details.
|
|
22
|
-
#
|
|
23
|
-
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
-
#
|
|
25
|
-
# @param type [Symbol, :authentication_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated AuthenticationError has been renamed to AuthenticationErrorObject
|
|
6
|
+
AuthenticationError = Anthropic::Models::AuthenticationErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class AuthenticationErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute message
|
|
7
|
+
# A human-readable explanation of the error. Its wording can change, so don't
|
|
8
|
+
# match on it.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :message, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The broad category of the error.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :authentication_error]
|
|
17
|
+
required :type, const: :authentication_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :authentication_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::AuthenticationErrorObject} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param message [String] A human-readable explanation of the error. Its wording can change, so don't matc
|
|
24
|
+
#
|
|
25
|
+
# @param type [Symbol, :authentication_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
class BashCodeExecutionToolResultBlock < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute content
|
|
7
7
|
#
|
|
8
|
-
# @return [Anthropic::Models::
|
|
8
|
+
# @return [Anthropic::Models::BashCodeExecutionToolResultErrorObject, Anthropic::Models::BashCodeExecutionResultBlock]
|
|
9
9
|
required :content, union: -> { Anthropic::BashCodeExecutionToolResultBlock::Content }
|
|
10
10
|
|
|
11
11
|
# @!attribute tool_use_id
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
required :type, const: :bash_code_execution_tool_result
|
|
20
20
|
|
|
21
21
|
# @!method initialize(content:, tool_use_id:, type: :bash_code_execution_tool_result)
|
|
22
|
-
# @param content [Anthropic::Models::
|
|
22
|
+
# @param content [Anthropic::Models::BashCodeExecutionToolResultErrorObject, Anthropic::Models::BashCodeExecutionResultBlock]
|
|
23
23
|
# @param tool_use_id [String]
|
|
24
24
|
# @param type [Symbol, :bash_code_execution_tool_result]
|
|
25
25
|
|
|
@@ -27,12 +27,12 @@ module Anthropic
|
|
|
27
27
|
module Content
|
|
28
28
|
extend Anthropic::Internal::Type::Union
|
|
29
29
|
|
|
30
|
-
variant -> { Anthropic::
|
|
30
|
+
variant -> { Anthropic::BashCodeExecutionToolResultErrorObject }
|
|
31
31
|
|
|
32
32
|
variant -> { Anthropic::BashCodeExecutionResultBlock }
|
|
33
33
|
|
|
34
34
|
# @!method self.variants
|
|
35
|
-
# @return [Array(Anthropic::Models::
|
|
35
|
+
# @return [Array(Anthropic::Models::BashCodeExecutionToolResultErrorObject, Anthropic::Models::BashCodeExecutionResultBlock)]
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -2,20 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# @return [Symbol, Anthropic::Models::BashCodeExecutionToolResultErrorCode]
|
|
9
|
-
required :error_code, enum: -> { Anthropic::BashCodeExecutionToolResultErrorCode }
|
|
10
|
-
|
|
11
|
-
# @!attribute type
|
|
12
|
-
#
|
|
13
|
-
# @return [Symbol, :bash_code_execution_tool_result_error]
|
|
14
|
-
required :type, const: :bash_code_execution_tool_result_error
|
|
15
|
-
|
|
16
|
-
# @!method initialize(error_code:, type: :bash_code_execution_tool_result_error)
|
|
17
|
-
# @param error_code [Symbol, Anthropic::Models::BashCodeExecutionToolResultErrorCode]
|
|
18
|
-
# @param type [Symbol, :bash_code_execution_tool_result_error]
|
|
19
|
-
end
|
|
5
|
+
# @deprecated BashCodeExecutionToolResultError has been renamed to
|
|
6
|
+
# BashCodeExecutionToolResultErrorObject
|
|
7
|
+
BashCodeExecutionToolResultError = Anthropic::Models::BashCodeExecutionToolResultErrorObject
|
|
20
8
|
end
|
|
21
9
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BashCodeExecutionToolResultErrorObject < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute error_code
|
|
7
|
+
#
|
|
8
|
+
# @return [Symbol, Anthropic::Models::BashCodeExecutionToolResultErrorCode]
|
|
9
|
+
required :error_code, enum: -> { Anthropic::BashCodeExecutionToolResultErrorCode }
|
|
10
|
+
|
|
11
|
+
# @!attribute type
|
|
12
|
+
#
|
|
13
|
+
# @return [Symbol, :bash_code_execution_tool_result_error]
|
|
14
|
+
required :type, const: :bash_code_execution_tool_result_error
|
|
15
|
+
|
|
16
|
+
# @!method initialize(error_code:, type: :bash_code_execution_tool_result_error)
|
|
17
|
+
# @param error_code [Symbol, Anthropic::Models::BashCodeExecutionToolResultErrorCode]
|
|
18
|
+
# @param type [Symbol, :bash_code_execution_tool_result_error]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
class BetaAdvisorToolResultBlock < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute content
|
|
8
8
|
#
|
|
9
|
-
# @return [Anthropic::Models::Beta::
|
|
9
|
+
# @return [Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock]
|
|
10
10
|
required :content, union: -> { Anthropic::Beta::BetaAdvisorToolResultBlock::Content }
|
|
11
11
|
|
|
12
12
|
# @!attribute tool_use_id
|
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
required :type, const: :advisor_tool_result
|
|
21
21
|
|
|
22
22
|
# @!method initialize(content:, tool_use_id:, type: :advisor_tool_result)
|
|
23
|
-
# @param content [Anthropic::Models::Beta::
|
|
23
|
+
# @param content [Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock]
|
|
24
24
|
# @param tool_use_id [String]
|
|
25
25
|
# @param type [Symbol, :advisor_tool_result]
|
|
26
26
|
|
|
@@ -28,14 +28,14 @@ module Anthropic
|
|
|
28
28
|
module Content
|
|
29
29
|
extend Anthropic::Internal::Type::Union
|
|
30
30
|
|
|
31
|
-
variant -> { Anthropic::Beta::
|
|
31
|
+
variant -> { Anthropic::Beta::BetaAdvisorToolResultErrorObject }
|
|
32
32
|
|
|
33
33
|
variant -> { Anthropic::Beta::BetaAdvisorResultBlock }
|
|
34
34
|
|
|
35
35
|
variant -> { Anthropic::Beta::BetaAdvisorRedactedResultBlock }
|
|
36
36
|
|
|
37
37
|
# @!method self.variants
|
|
38
|
-
# @return [Array(Anthropic::Models::Beta::
|
|
38
|
+
# @return [Array(Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject, Anthropic::Models::Beta::BetaAdvisorResultBlock, Anthropic::Models::Beta::BetaAdvisorRedactedResultBlock)]
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -3,37 +3,8 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
#
|
|
9
|
-
# @return [Symbol, Anthropic::Models::Beta::BetaAdvisorToolResultError::ErrorCode]
|
|
10
|
-
required :error_code, enum: -> { Anthropic::Beta::BetaAdvisorToolResultError::ErrorCode }
|
|
11
|
-
|
|
12
|
-
# @!attribute type
|
|
13
|
-
#
|
|
14
|
-
# @return [Symbol, :advisor_tool_result_error]
|
|
15
|
-
required :type, const: :advisor_tool_result_error
|
|
16
|
-
|
|
17
|
-
# @!method initialize(error_code:, type: :advisor_tool_result_error)
|
|
18
|
-
# @param error_code [Symbol, Anthropic::Models::Beta::BetaAdvisorToolResultError::ErrorCode]
|
|
19
|
-
# @param type [Symbol, :advisor_tool_result_error]
|
|
20
|
-
|
|
21
|
-
# @see Anthropic::Models::Beta::BetaAdvisorToolResultError#error_code
|
|
22
|
-
module ErrorCode
|
|
23
|
-
extend Anthropic::Internal::Type::Enum
|
|
24
|
-
|
|
25
|
-
MAX_USES_EXCEEDED = :max_uses_exceeded
|
|
26
|
-
PROMPT_TOO_LONG = :prompt_too_long
|
|
27
|
-
TOO_MANY_REQUESTS = :too_many_requests
|
|
28
|
-
OVERLOADED = :overloaded
|
|
29
|
-
UNAVAILABLE = :unavailable
|
|
30
|
-
EXECUTION_TIME_EXCEEDED = :execution_time_exceeded
|
|
31
|
-
MODEL_NOT_FOUND = :model_not_found
|
|
32
|
-
|
|
33
|
-
# @!method self.values
|
|
34
|
-
# @return [Array<Symbol>]
|
|
35
|
-
end
|
|
36
|
-
end
|
|
6
|
+
# @deprecated BetaAdvisorToolResultError has been renamed to BetaAdvisorToolResultErrorObject
|
|
7
|
+
BetaAdvisorToolResultError = Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject
|
|
37
8
|
end
|
|
38
9
|
|
|
39
10
|
BetaAdvisorToolResultError = Beta::BetaAdvisorToolResultError
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaAdvisorToolResultErrorObject < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::ErrorCode]
|
|
10
|
+
required :error_code, enum: -> { Anthropic::Beta::BetaAdvisorToolResultErrorObject::ErrorCode }
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, :advisor_tool_result_error]
|
|
15
|
+
required :type, const: :advisor_tool_result_error
|
|
16
|
+
|
|
17
|
+
# @!method initialize(error_code:, type: :advisor_tool_result_error)
|
|
18
|
+
# @param error_code [Symbol, Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject::ErrorCode]
|
|
19
|
+
# @param type [Symbol, :advisor_tool_result_error]
|
|
20
|
+
|
|
21
|
+
# @see Anthropic::Models::Beta::BetaAdvisorToolResultErrorObject#error_code
|
|
22
|
+
module ErrorCode
|
|
23
|
+
extend Anthropic::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
MAX_USES_EXCEEDED = :max_uses_exceeded
|
|
26
|
+
PROMPT_TOO_LONG = :prompt_too_long
|
|
27
|
+
TOO_MANY_REQUESTS = :too_many_requests
|
|
28
|
+
OVERLOADED = :overloaded
|
|
29
|
+
UNAVAILABLE = :unavailable
|
|
30
|
+
EXECUTION_TIME_EXCEEDED = :execution_time_exceeded
|
|
31
|
+
MODEL_NOT_FOUND = :model_not_found
|
|
32
|
+
|
|
33
|
+
# @!method self.values
|
|
34
|
+
# @return [Array<Symbol>]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
BetaAdvisorToolResultErrorObject = Beta::BetaAdvisorToolResultErrorObject
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
class BetaBashCodeExecutionToolResultBlock < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute content
|
|
8
8
|
#
|
|
9
|
-
# @return [Anthropic::Models::Beta::
|
|
9
|
+
# @return [Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock]
|
|
10
10
|
required :content, union: -> { Anthropic::Beta::BetaBashCodeExecutionToolResultBlock::Content }
|
|
11
11
|
|
|
12
12
|
# @!attribute tool_use_id
|
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
required :type, const: :bash_code_execution_tool_result
|
|
21
21
|
|
|
22
22
|
# @!method initialize(content:, tool_use_id:, type: :bash_code_execution_tool_result)
|
|
23
|
-
# @param content [Anthropic::Models::Beta::
|
|
23
|
+
# @param content [Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock]
|
|
24
24
|
# @param tool_use_id [String]
|
|
25
25
|
# @param type [Symbol, :bash_code_execution_tool_result]
|
|
26
26
|
|
|
@@ -28,12 +28,12 @@ module Anthropic
|
|
|
28
28
|
module Content
|
|
29
29
|
extend Anthropic::Internal::Type::Union
|
|
30
30
|
|
|
31
|
-
variant -> { Anthropic::Beta::
|
|
31
|
+
variant -> { Anthropic::Beta::BetaBashCodeExecutionToolResultErrorObject }
|
|
32
32
|
|
|
33
33
|
variant -> { Anthropic::Beta::BetaBashCodeExecutionResultBlock }
|
|
34
34
|
|
|
35
35
|
# @!method self.variants
|
|
36
|
-
# @return [Array(Anthropic::Models::Beta::
|
|
36
|
+
# @return [Array(Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject, Anthropic::Models::Beta::BetaBashCodeExecutionResultBlock)]
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -3,35 +3,10 @@
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
required :error_code, enum: -> { Anthropic::Beta::BetaBashCodeExecutionToolResultError::ErrorCode }
|
|
11
|
-
|
|
12
|
-
# @!attribute type
|
|
13
|
-
#
|
|
14
|
-
# @return [Symbol, :bash_code_execution_tool_result_error]
|
|
15
|
-
required :type, const: :bash_code_execution_tool_result_error
|
|
16
|
-
|
|
17
|
-
# @!method initialize(error_code:, type: :bash_code_execution_tool_result_error)
|
|
18
|
-
# @param error_code [Symbol, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError::ErrorCode]
|
|
19
|
-
# @param type [Symbol, :bash_code_execution_tool_result_error]
|
|
20
|
-
|
|
21
|
-
# @see Anthropic::Models::Beta::BetaBashCodeExecutionToolResultError#error_code
|
|
22
|
-
module ErrorCode
|
|
23
|
-
extend Anthropic::Internal::Type::Enum
|
|
24
|
-
|
|
25
|
-
INVALID_TOOL_INPUT = :invalid_tool_input
|
|
26
|
-
UNAVAILABLE = :unavailable
|
|
27
|
-
TOO_MANY_REQUESTS = :too_many_requests
|
|
28
|
-
EXECUTION_TIME_EXCEEDED = :execution_time_exceeded
|
|
29
|
-
OUTPUT_FILE_TOO_LARGE = :output_file_too_large
|
|
30
|
-
|
|
31
|
-
# @!method self.values
|
|
32
|
-
# @return [Array<Symbol>]
|
|
33
|
-
end
|
|
34
|
-
end
|
|
6
|
+
# @deprecated BetaBashCodeExecutionToolResultError has been renamed to
|
|
7
|
+
# BetaBashCodeExecutionToolResultErrorObject
|
|
8
|
+
BetaBashCodeExecutionToolResultError =
|
|
9
|
+
Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject
|
|
35
10
|
end
|
|
36
11
|
|
|
37
12
|
BetaBashCodeExecutionToolResultError = Beta::BetaBashCodeExecutionToolResultError
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaBashCodeExecutionToolResultErrorObject < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute error_code
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::ErrorCode]
|
|
10
|
+
required :error_code, enum: -> { Anthropic::Beta::BetaBashCodeExecutionToolResultErrorObject::ErrorCode }
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, :bash_code_execution_tool_result_error]
|
|
15
|
+
required :type, const: :bash_code_execution_tool_result_error
|
|
16
|
+
|
|
17
|
+
# @!method initialize(error_code:, type: :bash_code_execution_tool_result_error)
|
|
18
|
+
# @param error_code [Symbol, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject::ErrorCode]
|
|
19
|
+
# @param type [Symbol, :bash_code_execution_tool_result_error]
|
|
20
|
+
|
|
21
|
+
# @see Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorObject#error_code
|
|
22
|
+
module ErrorCode
|
|
23
|
+
extend Anthropic::Internal::Type::Enum
|
|
24
|
+
|
|
25
|
+
INVALID_TOOL_INPUT = :invalid_tool_input
|
|
26
|
+
UNAVAILABLE = :unavailable
|
|
27
|
+
TOO_MANY_REQUESTS = :too_many_requests
|
|
28
|
+
EXECUTION_TIME_EXCEEDED = :execution_time_exceeded
|
|
29
|
+
OUTPUT_FILE_TOO_LARGE = :output_file_too_large
|
|
30
|
+
|
|
31
|
+
# @!method self.values
|
|
32
|
+
# @return [Array<Symbol>]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
BetaBashCodeExecutionToolResultErrorObject = Beta::BetaBashCodeExecutionToolResultErrorObject
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# Who is billed for a request.
|
|
7
|
+
module BetaBillTo
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
SELF = :self
|
|
11
|
+
USER_PROFILE = :user_profile
|
|
12
|
+
|
|
13
|
+
# @!method self.values
|
|
14
|
+
# @return [Array<Symbol>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
BetaBillTo = Beta::BetaBillTo
|
|
19
|
+
end
|
|
20
|
+
end
|