Class: OpenAI::Models::Webhooks::LiveTransportConnectedWebhookEvent::Data

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

Overview

See Also:

  • OpenAI::Models::Webhooks::LiveTransportConnectedWebhookEvent#data

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(session_id:, type: :webrtc) ⇒ Data

Returns a new instance of Data.

Parameters:

  • session_id —

    The Live session ID to use with the sideband attach endpoint.

  • type (defaults to: :webrtc) —

    The session transport.

  • session_id: (String)
  • type: (:webrtc) (defaults to: :webrtc)


# File 'lib/openai/models/webhooks/live_transport_connected_webhook_event.rb', line 64

Instance Attribute Details

#session_id ⇒ String

The Live session ID to use with the sideband attach endpoint.

Returns:

  • (String)


56
# File 'lib/openai/models/webhooks/live_transport_connected_webhook_event.rb', line 56

required :session_id, String

#type ⇒ :webrtc

The session transport.

Returns:

  • (:webrtc)


62
# File 'lib/openai/models/webhooks/live_transport_connected_webhook_event.rb', line 62

required :type, const: :webrtc

Instance Method Details

#to_hash ⇒ { session_id: String, ?type: :webrtc }

Returns:

  • ({ session_id: String, ?type: :webrtc })


61
# File 'sig/openai/models/webhooks/live_transport_connected_webhook_event.rbs', line 61

def to_hash: -> { session_id: String, ?type: :webrtc }