Class: OpenAI::Models::Live::SidebandServerEvent::SessionPaused
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::SidebandServerEvent::SessionPaused
- Defined in:
- lib/openai/models/live/sideband_server_event.rb,
sig/openai/models/live/sideband_server_event.rbs
Instance Attribute Summary collapse
-
#client_event_id ⇒ String?
The event_id of the client command associated with this server event, when supplied.
-
#event_id ⇒ String
The unique ID of the Live server event.
- #type ⇒ Symbol, :"session.paused"
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ SessionPaused
constructor
A new instance of SessionPaused.
- #to_hash ⇒ { event_id: String, ?type: :"session.paused", ?client_event_id: String }
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 ⇒ SessionPaused
Returns a new instance of SessionPaused.
104 105 106 107 108 |
# File 'sig/openai/models/live/sideband_server_event.rbs', line 104
def initialize: (
event_id: String,
?client_event_id: String,
?type: :"session.paused"
) -> void
|
Instance Attribute Details
#client_event_id ⇒ String?
The event_id of the client command associated with this server event, when supplied.
154 |
# File 'lib/openai/models/live/sideband_server_event.rb', line 154 optional :client_event_id, String |
#event_id ⇒ String
The unique ID of the Live server event.
142 |
# File 'lib/openai/models/live/sideband_server_event.rb', line 142 required :event_id, String |
#type ⇒ Symbol, :"session.paused"
147 |
# File 'lib/openai/models/live/sideband_server_event.rb', line 147 required :type, const: :"session.paused" |
Instance Method Details
#to_hash ⇒ { event_id: String, ?type: :"session.paused", ?client_event_id: String }
110 111 112 113 114 |
# File 'sig/openai/models/live/sideband_server_event.rbs', line 110
def to_hash: -> {
event_id: String,
?type: :"session.paused",
?client_event_id: String
}
|