Class: OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionFailedEvent::Error

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb,
sig/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rbs

Overview

See Also:

  • OpenAI::Models::Realtime::ConversationItemInputAudioTranscriptionFailedEvent#error

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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(code: nil, message: nil, param: nil, type: nil) ⇒ Object

Parameters:

  • code (defaults to: nil) —

    Error code, if any.

  • message (defaults to: nil) —

    A human-readable error message.

  • param (defaults to: nil) —

    Parameter related to the error, if any.

  • type (defaults to: nil) —

    The type of error.



# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb', line 83

Instance Attribute Details

#code ⇒ String?

Error code, if any.

Returns:

  • (String, nil)


63
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb', line 63

optional :code, String

#message ⇒ String?

A human-readable error message.

Returns:

  • (String, nil)


69
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb', line 69

optional :message, String

#param ⇒ String?

Parameter related to the error, if any.

Returns:

  • (String, nil)


75
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb', line 75

optional :param, String

#type ⇒ String?

The type of error.

Returns:

  • (String, nil)


81
# File 'lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb', line 81

optional :type, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


98
# File 'sig/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rbs', line 98

def to_hash: -> {