Exception: Anthropic::Models::Beta::BetaApprovalRequiredError

Inherits:
Errors::BadRequestError show all
Defined in:
lib/anthropic/models/beta/beta_approval_required_error.rb,
sig/anthropic/models/beta/beta_approval_required_error.rbs

Overview

Turning human review off needs Anthropic's approval for the organization, and the organization doesn't have it. Contact Anthropic support to request approval.

Constant Summary

Constants inherited from Errors::BadRequestError

Errors::BadRequestError::HTTP_STATUS

Instance Attribute Summary

Attributes inherited from Errors::APIStatusError

#status

Attributes inherited from Errors::APIError

#body, #headers, #status, #url

Attributes inherited from Errors::Error

#cause

Instance Method Summary collapse

Methods inherited from Errors::APIStatusError

#`type`, #api_message, for, #initialize, #type

Methods inherited from Errors::APIError

#initialize, #request_id, #workspace_id

Constructor Details

This class inherits a constructor from Anthropic::Errors::APIStatusError

Instance Method Details

#details ⇒ Anthropic::Models::Beta::BetaApprovalRequiredErrorDetails



13
14
15
16
17
18
# File 'lib/anthropic/models/beta/beta_approval_required_error.rb', line 13

def details
  Anthropic::Internal::Type::Converter.coerce(
    Anthropic::Beta::BetaApprovalRequiredErrorDetails,
    Anthropic::Internal::Util.dig(body, [:error, :details])
  )
end

#error_code ⇒ Symbol, :approval_required

Returns:

  • (Symbol, :approval_required)


# File 'lib/anthropic/models/beta/beta_approval_required_error.rb', line 9