Class: OpenAI::Models::Live::ForkServerEvent::SessionResumed
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ForkServerEvent::SessionResumed
- Defined in:
- lib/openai/models/live/fork_server_event.rb,
sig/openai/models/live/fork_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.resumed"
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ SessionResumed
constructor
A new instance of SessionResumed.
- #to_hash ⇒ { event_id: String, ?type: :"session.resumed", ?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 ⇒ SessionResumed
Returns a new instance of SessionResumed.
65 66 67 68 69 |
# File 'sig/openai/models/live/fork_server_event.rbs', line 65
def initialize: (
event_id: String,
?client_event_id: String,
?type: :"session.resumed"
) -> void
|
Instance Attribute Details
#client_event_id ⇒ String?
The event_id of the client command associated with this server event, when supplied.
123 |
# File 'lib/openai/models/live/fork_server_event.rb', line 123 optional :client_event_id, String |
#event_id ⇒ String
The unique ID of the Live server event.
111 |
# File 'lib/openai/models/live/fork_server_event.rb', line 111 required :event_id, String |
#type ⇒ Symbol, :"session.resumed"
116 |
# File 'lib/openai/models/live/fork_server_event.rb', line 116 required :type, const: :"session.resumed" |
Instance Method Details
#to_hash ⇒ { event_id: String, ?type: :"session.resumed", ?client_event_id: String }
71 72 73 74 75 |
# File 'sig/openai/models/live/fork_server_event.rbs', line 71
def to_hash: -> {
event_id: String,
?type: :"session.resumed",
?client_event_id: String
}
|