lib/anthropic/models/api_error_object.rb (8 lines of code) (raw):

# frozen_string_literal: true module Anthropic module Models class APIErrorObject < Anthropic::Internal::Type::BaseModel # @!attribute message # # @return [String] required :message, String # @!attribute type # # @return [Symbol, :api_error] required :type, const: :api_error # @!parse # # @param message [String] # # @param type [Symbol, :api_error] # # # def initialize(message:, type: :api_error, **) = super # def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void end end end