Class: OpenAI::Models::Realtime::RealtimeResponseStatus
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeResponseStatus
- Defined in:
- lib/openai/models/realtime/realtime_response_status.rb,
sig/openai/models/realtime/realtime_response_status.rbs
Defined Under Namespace
Modules: Reason, Type Classes: Error
Instance Attribute Summary collapse
-
#error ⇒ OpenAI::Realtime::RealtimeResponseStatus::Error?
A description of the error that caused the response to fail, populated when the
statusisfailed. -
#reason ⇒ OpenAI::Models::Realtime::RealtimeResponseStatus::reason?
The reason the Response did not complete.
-
#type ⇒ OpenAI::Models::Realtime::RealtimeResponseStatus::type_?
The type of error that caused the response to fail, corresponding with the
statusfield (completed,cancelled,incomplete,failed).
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code: nil, message: nil, type: nil) ⇒ RealtimeResponseStatus
constructor
A new instance of RealtimeResponseStatus.
- #to_hash ⇒ { ?error: OpenAI::Realtime::RealtimeResponseStatus::Error, ?reason: OpenAI::Models::Realtime::RealtimeResponseStatus::reason, ?type: OpenAI::Models::Realtime::RealtimeResponseStatus::type_ }
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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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, type: nil) ⇒ RealtimeResponseStatus
Returns a new instance of RealtimeResponseStatus.
|
|
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 31
|
Instance Attribute Details
#error ⇒ OpenAI::Realtime::RealtimeResponseStatus::Error?
A description of the error that caused the response to fail, populated when the
status is failed.
12 |
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 12 optional :error, -> { OpenAI::Realtime::RealtimeResponseStatus::Error } |
#reason ⇒ OpenAI::Models::Realtime::RealtimeResponseStatus::reason?
The reason the Response did not complete. For a cancelled Response, one of
turn_detected (the server VAD detected a new start of speech) or
client_cancelled (the client sent a cancel event). For an incomplete
Response, one of max_output_tokens or content_filter (the server-side safety
filter activated and cut off the response).
22 |
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 22 optional :reason, enum: -> { OpenAI::Realtime::RealtimeResponseStatus::Reason } |
#type ⇒ OpenAI::Models::Realtime::RealtimeResponseStatus::type_?
The type of error that caused the response to fail, corresponding with the
status field (completed, cancelled, incomplete, failed).
29 |
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 29 optional :type, enum: -> { OpenAI::Realtime::RealtimeResponseStatus::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/realtime/realtime_response_status.rb', line 98
|
Instance Method Details
#to_hash ⇒ { ?error: OpenAI::Realtime::RealtimeResponseStatus::Error, ?reason: OpenAI::Models::Realtime::RealtimeResponseStatus::reason, ?type: OpenAI::Models::Realtime::RealtimeResponseStatus::type_ }
66 67 68 69 70 |
# File 'sig/openai/models/realtime/realtime_response_status.rbs', line 66
def to_hash: -> {
?error: OpenAI::Realtime::RealtimeResponseStatus::Error,
?reason: OpenAI::Models::Realtime::RealtimeResponseStatus::reason,
?type: OpenAI::Models::Realtime::RealtimeResponseStatus::type_
}
|