Class: OpenAI::Models::Live::ForkServerEvent::SessionResumed

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

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_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.

Parameters:

  • event_id —

    The unique ID of the Live server event.

  • client_event_id —

    The event_id of the client command associated with this server event, when supplied.

  • event_id: (String)
  • client_event_id: (String)
  • type: (:"session.resumed")


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


111
# File 'lib/openai/models/live/fork_server_event.rb', line 111

required :event_id, String

#type ⇒ Symbol, :"session.resumed"

Parameters:

  • value (:"session.resumed")

Returns:

  • (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 }

Returns:

  • ({ 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
}