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
data/lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_status_ended_event.rb
CHANGED
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
# @!attribute result
|
|
21
21
|
# How the run ended.
|
|
22
22
|
#
|
|
23
|
-
# @return [Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultCompleted, Anthropic::Models::Beta::Sessions::
|
|
23
|
+
# @return [Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultCompleted, Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultErrorObject, Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultStopped]
|
|
24
24
|
required :result, union: -> { Anthropic::Beta::Sessions::BetaManagedAgentsWorkflowRunResult }
|
|
25
25
|
|
|
26
26
|
# @!attribute type
|
|
@@ -47,7 +47,7 @@ module Anthropic
|
|
|
47
47
|
#
|
|
48
48
|
# @param processed_at [Time] Timestamp when this event was processed.
|
|
49
49
|
#
|
|
50
|
-
# @param result [Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultCompleted, Anthropic::Models::Beta::Sessions::
|
|
50
|
+
# @param result [Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultCompleted, Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultErrorObject, Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultStopped] How the run ended.
|
|
51
51
|
#
|
|
52
52
|
# @param workflow_run_id [String] Identifier of the run. The same value is on all of the run's `workflow_run.*` ev
|
|
53
53
|
#
|
|
@@ -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, :api_error]
|
|
17
|
-
required :type, const: :api_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :api_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaAPIError} 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, :api_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaAPIError has been renamed to BetaAPIErrorObject
|
|
6
|
+
BetaAPIError = Anthropic::Models::BetaAPIErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaAPIErrorObject < 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, :api_error]
|
|
17
|
+
required :type, const: :api_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :api_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaAPIErrorObject} 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, :api_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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::BetaAuthenticationError} 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 BetaAuthenticationError has been renamed to BetaAuthenticationErrorObject
|
|
6
|
+
BetaAuthenticationError = Anthropic::Models::BetaAuthenticationErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaAuthenticationErrorObject < 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::BetaAuthenticationErrorObject} 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
|
|
@@ -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, :billing_error]
|
|
17
|
-
required :type, const: :billing_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :billing_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaBillingError} 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, :billing_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaBillingError has been renamed to BetaBillingErrorObject
|
|
6
|
+
BetaBillingError = Anthropic::Models::BetaBillingErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaBillingErrorObject < 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, :billing_error]
|
|
17
|
+
required :type, const: :billing_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :billing_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaBillingErrorObject} 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, :billing_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -2,87 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Anthropic
|
|
4
4
|
module Models
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
discriminator :type
|
|
9
|
-
|
|
10
|
-
variant :invalid_request_error, -> { Anthropic::BetaInvalidRequestError }
|
|
11
|
-
|
|
12
|
-
variant :authentication_error, -> { Anthropic::BetaAuthenticationError }
|
|
13
|
-
|
|
14
|
-
variant :billing_error, -> { Anthropic::BetaBillingError }
|
|
15
|
-
|
|
16
|
-
variant :permission_error, -> { Anthropic::BetaPermissionError }
|
|
17
|
-
|
|
18
|
-
variant :not_found_error, -> { Anthropic::BetaNotFoundError }
|
|
19
|
-
|
|
20
|
-
variant :rate_limit_error, -> { Anthropic::BetaRateLimitError }
|
|
21
|
-
|
|
22
|
-
variant :timeout_error, -> { Anthropic::BetaGatewayTimeoutError }
|
|
23
|
-
|
|
24
|
-
variant :api_error, -> { Anthropic::BetaAPIError }
|
|
25
|
-
|
|
26
|
-
variant :overloaded_error, -> { Anthropic::BetaOverloadedError }
|
|
27
|
-
|
|
28
|
-
module Type
|
|
29
|
-
extend Anthropic::Internal::Type::Enum
|
|
30
|
-
|
|
31
|
-
INVALID_REQUEST_ERROR = :invalid_request_error
|
|
32
|
-
AUTHENTICATION_ERROR = :authentication_error
|
|
33
|
-
BILLING_ERROR = :billing_error
|
|
34
|
-
PERMISSION_ERROR = :permission_error
|
|
35
|
-
NOT_FOUND_ERROR = :not_found_error
|
|
36
|
-
RATE_LIMIT_ERROR = :rate_limit_error
|
|
37
|
-
TIMEOUT_ERROR = :timeout_error
|
|
38
|
-
API_ERROR = :api_error
|
|
39
|
-
OVERLOADED_ERROR = :overloaded_error
|
|
40
|
-
|
|
41
|
-
# @!method self.values
|
|
42
|
-
# @return [Array<Symbol>]
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# @!method self.variants
|
|
46
|
-
# @return [Array(Anthropic::Models::BetaInvalidRequestError, Anthropic::Models::BetaAuthenticationError, Anthropic::Models::BetaBillingError, Anthropic::Models::BetaPermissionError, Anthropic::Models::BetaNotFoundError, Anthropic::Models::BetaRateLimitError, Anthropic::Models::BetaGatewayTimeoutError, Anthropic::Models::BetaAPIError, Anthropic::Models::BetaOverloadedError)]
|
|
47
|
-
|
|
48
|
-
# Creates a new instance of the variant class whose `type` matches the given
|
|
49
|
-
# value, passing the remaining arguments to its constructor.
|
|
50
|
-
#
|
|
51
|
-
# Some parameter documentations has been truncated, see
|
|
52
|
-
# {Anthropic::Models::BetaError} for more details.
|
|
53
|
-
#
|
|
54
|
-
# @param type [Symbol, Anthropic::Models::BetaError::Type, String]
|
|
55
|
-
#
|
|
56
|
-
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
57
|
-
#
|
|
58
|
-
# @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
|
|
59
|
-
#
|
|
60
|
-
# @raise [ArgumentError]
|
|
61
|
-
# @return [Anthropic::Models::BetaInvalidRequestError, Anthropic::Models::BetaAuthenticationError, Anthropic::Models::BetaBillingError, Anthropic::Models::BetaPermissionError, Anthropic::Models::BetaNotFoundError, Anthropic::Models::BetaRateLimitError, Anthropic::Models::BetaGatewayTimeoutError, Anthropic::Models::BetaAPIError, Anthropic::Models::BetaOverloadedError]
|
|
62
|
-
def self.new(type:, **args)
|
|
63
|
-
case type.to_sym
|
|
64
|
-
when :invalid_request_error
|
|
65
|
-
Anthropic::BetaInvalidRequestError.new(**args)
|
|
66
|
-
when :authentication_error
|
|
67
|
-
Anthropic::BetaAuthenticationError.new(**args)
|
|
68
|
-
when :billing_error
|
|
69
|
-
Anthropic::BetaBillingError.new(**args)
|
|
70
|
-
when :permission_error
|
|
71
|
-
Anthropic::BetaPermissionError.new(**args)
|
|
72
|
-
when :not_found_error
|
|
73
|
-
Anthropic::BetaNotFoundError.new(**args)
|
|
74
|
-
when :rate_limit_error
|
|
75
|
-
Anthropic::BetaRateLimitError.new(**args)
|
|
76
|
-
when :timeout_error
|
|
77
|
-
Anthropic::BetaGatewayTimeoutError.new(**args)
|
|
78
|
-
when :api_error
|
|
79
|
-
Anthropic::BetaAPIError.new(**args)
|
|
80
|
-
when :overloaded_error
|
|
81
|
-
Anthropic::BetaOverloadedError.new(**args)
|
|
82
|
-
else
|
|
83
|
-
raise ArgumentError, "unknown type: #{type}"
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
end
|
|
5
|
+
# @deprecated BetaError has been renamed to BetaErrorObject
|
|
6
|
+
BetaError = Anthropic::Models::BetaErrorObject
|
|
87
7
|
end
|
|
88
8
|
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module BetaErrorObject
|
|
6
|
+
extend Anthropic::Internal::Type::Union
|
|
7
|
+
|
|
8
|
+
discriminator :type
|
|
9
|
+
|
|
10
|
+
variant :invalid_request_error, -> { Anthropic::BetaInvalidRequestErrorObject }
|
|
11
|
+
|
|
12
|
+
variant :authentication_error, -> { Anthropic::BetaAuthenticationErrorObject }
|
|
13
|
+
|
|
14
|
+
variant :billing_error, -> { Anthropic::BetaBillingErrorObject }
|
|
15
|
+
|
|
16
|
+
variant :permission_error, -> { Anthropic::BetaPermissionErrorObject }
|
|
17
|
+
|
|
18
|
+
variant :not_found_error, -> { Anthropic::BetaNotFoundErrorObject }
|
|
19
|
+
|
|
20
|
+
variant :rate_limit_error, -> { Anthropic::BetaRateLimitErrorObject }
|
|
21
|
+
|
|
22
|
+
variant :timeout_error, -> { Anthropic::BetaGatewayTimeoutErrorObject }
|
|
23
|
+
|
|
24
|
+
variant :api_error, -> { Anthropic::BetaAPIErrorObject }
|
|
25
|
+
|
|
26
|
+
variant :overloaded_error, -> { Anthropic::BetaOverloadedErrorObject }
|
|
27
|
+
|
|
28
|
+
module Type
|
|
29
|
+
extend Anthropic::Internal::Type::Enum
|
|
30
|
+
|
|
31
|
+
INVALID_REQUEST_ERROR = :invalid_request_error
|
|
32
|
+
AUTHENTICATION_ERROR = :authentication_error
|
|
33
|
+
BILLING_ERROR = :billing_error
|
|
34
|
+
PERMISSION_ERROR = :permission_error
|
|
35
|
+
NOT_FOUND_ERROR = :not_found_error
|
|
36
|
+
RATE_LIMIT_ERROR = :rate_limit_error
|
|
37
|
+
TIMEOUT_ERROR = :timeout_error
|
|
38
|
+
API_ERROR = :api_error
|
|
39
|
+
OVERLOADED_ERROR = :overloaded_error
|
|
40
|
+
|
|
41
|
+
# @!method self.values
|
|
42
|
+
# @return [Array<Symbol>]
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# @!method self.variants
|
|
46
|
+
# @return [Array(Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject)]
|
|
47
|
+
|
|
48
|
+
# Creates a new instance of the variant class whose `type` matches the given
|
|
49
|
+
# value, passing the remaining arguments to its constructor.
|
|
50
|
+
#
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Anthropic::Models::BetaErrorObject} for more details.
|
|
53
|
+
#
|
|
54
|
+
# @param type [Symbol, Anthropic::Models::BetaErrorObject::Type, String]
|
|
55
|
+
#
|
|
56
|
+
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
57
|
+
#
|
|
58
|
+
# @option args [String] :message A human-readable explanation of the error. Its wording can change, so don't matc
|
|
59
|
+
#
|
|
60
|
+
# @raise [ArgumentError]
|
|
61
|
+
# @return [Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject]
|
|
62
|
+
def self.new(type:, **args)
|
|
63
|
+
case type.to_sym
|
|
64
|
+
when :invalid_request_error
|
|
65
|
+
Anthropic::BetaInvalidRequestErrorObject.new(**args)
|
|
66
|
+
when :authentication_error
|
|
67
|
+
Anthropic::BetaAuthenticationErrorObject.new(**args)
|
|
68
|
+
when :billing_error
|
|
69
|
+
Anthropic::BetaBillingErrorObject.new(**args)
|
|
70
|
+
when :permission_error
|
|
71
|
+
Anthropic::BetaPermissionErrorObject.new(**args)
|
|
72
|
+
when :not_found_error
|
|
73
|
+
Anthropic::BetaNotFoundErrorObject.new(**args)
|
|
74
|
+
when :rate_limit_error
|
|
75
|
+
Anthropic::BetaRateLimitErrorObject.new(**args)
|
|
76
|
+
when :timeout_error
|
|
77
|
+
Anthropic::BetaGatewayTimeoutErrorObject.new(**args)
|
|
78
|
+
when :api_error
|
|
79
|
+
Anthropic::BetaAPIErrorObject.new(**args)
|
|
80
|
+
when :overloaded_error
|
|
81
|
+
Anthropic::BetaOverloadedErrorObject.new(**args)
|
|
82
|
+
else
|
|
83
|
+
raise ArgumentError, "unknown type: #{type}"
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -5,8 +5,8 @@ module Anthropic
|
|
|
5
5
|
class BetaErrorResponse < Anthropic::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute error
|
|
7
7
|
#
|
|
8
|
-
# @return [Anthropic::Models::
|
|
9
|
-
required :error, union: -> { Anthropic::
|
|
8
|
+
# @return [Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject]
|
|
9
|
+
required :error, union: -> { Anthropic::BetaErrorObject }
|
|
10
10
|
|
|
11
11
|
# @!attribute request_id
|
|
12
12
|
#
|
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
required :type, const: :error
|
|
20
20
|
|
|
21
21
|
# @!method initialize(error:, request_id:, type: :error)
|
|
22
|
-
# @param error [Anthropic::Models::
|
|
22
|
+
# @param error [Anthropic::Models::BetaInvalidRequestErrorObject, Anthropic::Models::BetaAuthenticationErrorObject, Anthropic::Models::BetaBillingErrorObject, Anthropic::Models::BetaPermissionErrorObject, Anthropic::Models::BetaNotFoundErrorObject, Anthropic::Models::BetaRateLimitErrorObject, Anthropic::Models::BetaGatewayTimeoutErrorObject, Anthropic::Models::BetaAPIErrorObject, Anthropic::Models::BetaOverloadedErrorObject]
|
|
23
23
|
# @param request_id [String, nil]
|
|
24
24
|
# @param type [Symbol, :error]
|
|
25
25
|
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, :timeout_error]
|
|
17
|
-
required :type, const: :timeout_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :timeout_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaGatewayTimeoutError} 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, :timeout_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaGatewayTimeoutError has been renamed to BetaGatewayTimeoutErrorObject
|
|
6
|
+
BetaGatewayTimeoutError = Anthropic::Models::BetaGatewayTimeoutErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaGatewayTimeoutErrorObject < 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, :timeout_error]
|
|
17
|
+
required :type, const: :timeout_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :timeout_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaGatewayTimeoutErrorObject} 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, :timeout_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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, :invalid_request_error]
|
|
17
|
-
required :type, const: :invalid_request_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :invalid_request_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaInvalidRequestError} 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, :invalid_request_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaInvalidRequestError has been renamed to BetaInvalidRequestErrorObject
|
|
6
|
+
BetaInvalidRequestError = Anthropic::Models::BetaInvalidRequestErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaInvalidRequestErrorObject < 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, :invalid_request_error]
|
|
17
|
+
required :type, const: :invalid_request_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :invalid_request_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaInvalidRequestErrorObject} 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, :invalid_request_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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, :not_found_error]
|
|
17
|
-
required :type, const: :not_found_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :not_found_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaNotFoundError} 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, :not_found_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaNotFoundError has been renamed to BetaNotFoundErrorObject
|
|
6
|
+
BetaNotFoundError = Anthropic::Models::BetaNotFoundErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaNotFoundErrorObject < 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, :not_found_error]
|
|
17
|
+
required :type, const: :not_found_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :not_found_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaNotFoundErrorObject} 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, :not_found_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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, :overloaded_error]
|
|
17
|
-
required :type, const: :overloaded_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :overloaded_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaOverloadedError} 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, :overloaded_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaOverloadedError has been renamed to BetaOverloadedErrorObject
|
|
6
|
+
BetaOverloadedError = Anthropic::Models::BetaOverloadedErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
class BetaOverloadedErrorObject < 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, :overloaded_error]
|
|
17
|
+
required :type, const: :overloaded_error
|
|
18
|
+
|
|
19
|
+
# @!method initialize(message:, type: :overloaded_error)
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::BetaOverloadedErrorObject} 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, :overloaded_error] The broad category of the error.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
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, :permission_error]
|
|
17
|
-
required :type, const: :permission_error
|
|
18
|
-
|
|
19
|
-
# @!method initialize(message:, type: :permission_error)
|
|
20
|
-
# Some parameter documentations has been truncated, see
|
|
21
|
-
# {Anthropic::Models::BetaPermissionError} 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, :permission_error] The broad category of the error.
|
|
26
|
-
end
|
|
5
|
+
# @deprecated BetaPermissionError has been renamed to BetaPermissionErrorObject
|
|
6
|
+
BetaPermissionError = Anthropic::Models::BetaPermissionErrorObject
|
|
27
7
|
end
|
|
28
8
|
end
|