Class: OpenAI::Models::Realtime::Connection
- Inherits:
-
Object
- Object
- OpenAI::Models::Realtime::Connection
- Includes:
- Enumerable[OpenAI::Models::Realtime::connection_server_event]
- Defined in:
- sig/openai/helpers/realtime/connection.rbs
Instance Attribute Summary collapse
-
#conversation ⇒ OpenAI::Realtime::ConnectionResources::Conversation
readonly
Returns the value of attribute conversation.
-
#input_audio_buffer ⇒ OpenAI::Realtime::ConnectionResources::InputAudioBuffer
readonly
Returns the value of attribute input_audio_buffer.
-
#response ⇒ OpenAI::Realtime::ConnectionResources::Response
readonly
Returns the value of attribute response.
-
#session ⇒ OpenAI::Realtime::ConnectionResources::Session
readonly
Returns the value of attribute session.
-
#url ⇒ URI::Generic
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #abort ⇒ nil private
- #close ⇒ nil
- #closed? ⇒ Boolean
- #each ⇒ void
- #flush_pending ⇒ nil
- #initialize ⇒ Object constructor private
- #parse_event ⇒ Object
- #pending_messages ⇒ Array[String]
- #receive ⇒ OpenAI::Models::Realtime::connection_server_event?
- #receive_raw ⇒ String?
- #reconnecting? ⇒ Boolean
- #send_event ⇒ Object
- #send_raw ⇒ nil
- #take_pending_messages ⇒ Array[String]
Constructor Details
#initialize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 22
def initialize: (
|
Instance Attribute Details
#conversation ⇒ OpenAI::Realtime::ConnectionResources::Conversation (readonly)
Returns the value of attribute conversation.
18 19 20 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 18 def conversation @conversation end |
#input_audio_buffer ⇒ OpenAI::Realtime::ConnectionResources::InputAudioBuffer (readonly)
Returns the value of attribute input_audio_buffer.
19 20 21 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 19 def input_audio_buffer @input_audio_buffer end |
#response ⇒ OpenAI::Realtime::ConnectionResources::Response (readonly)
Returns the value of attribute response.
17 18 19 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 17 def response @response end |
#session ⇒ OpenAI::Realtime::ConnectionResources::Session (readonly)
Returns the value of attribute session.
16 17 18 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 16 def session @session end |
#url ⇒ URI::Generic (readonly)
Returns the value of attribute url.
15 16 17 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 15 def url @url end |
Instance Method Details
#abort ⇒ nil
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 44
def abort: -> nil
|
#close ⇒ nil
41 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 41
def close: (?code: Integer, ?reason: String) -> nil
|
#closed? ⇒ Boolean
45 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 45
def closed?: -> bool
|
#each ⇒ void
This method returns an undefined value.
27 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 27
def each:
|
#flush_pending ⇒ nil
49 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 49
def flush_pending: -> nil
|
#parse_event ⇒ Object
34 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 34
def parse_event: (
|
#pending_messages ⇒ Array[String]
47 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 47
def pending_messages: -> Array[String]
|
#receive ⇒ OpenAI::Models::Realtime::connection_server_event?
32 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 32
def receive: -> OpenAI::Models::Realtime::connection_server_event?
|
#receive_raw ⇒ String?
33 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 33
def receive_raw: -> String?
|
#reconnecting? ⇒ Boolean
46 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 46
def reconnecting?: -> bool
|
#send_event ⇒ Object
37 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 37
def send_event: (
|
#send_raw ⇒ nil
40 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 40
def send_raw: (String data) -> nil
|
#take_pending_messages ⇒ Array[String]
48 |
# File 'sig/openai/helpers/realtime/connection.rbs', line 48
def take_pending_messages: -> Array[String]
|