Class: OpenAI::Models::Chat::ChatCompletionChunk::Moderation::Input::Error
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Chat::ChatCompletionChunk::Moderation::Input::Error
- Defined in:
- lib/openai/models/chat/chat_completion_chunk.rb,
sig/openai/models/chat/chat_completion_chunk.rbs
Instance Attribute Summary collapse
-
#code ⇒ String
The error code.
-
#message ⇒ String
The error message.
-
#type ⇒ Symbol, :error
The object type, which is always
error.
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Object
397 |
# File 'sig/openai/models/chat/chat_completion_chunk.rbs', line 397
def initialize: (
|
Instance Attribute Details
#code ⇒ String
The error code.
530 |
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 530 required :code, String |
#message ⇒ String
The error message.
536 |
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 536 required :message, String |
#type ⇒ Symbol, :error
The object type, which is always error.
542 |
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 542 required :type, const: :error |
Instance Method Details
#to_hash ⇒ { code: String, message: String, type: :error }
403 |
# File 'sig/openai/models/chat/chat_completion_chunk.rbs', line 403
def to_hash: -> { code: String, message: String, type: :error }
|