Class: OpenAI::Models::Responses::SessionLane
- Inherits:
-
Object
- Object
- OpenAI::Models::Responses::SessionLane
- Defined in:
- sig/openai/helpers/responses_websocket/session.rbs
Instance Attribute Summary collapse
-
#stream_id ⇒ String?
readonly
Returns the value of attribute stream_id.
Instance Method Summary collapse
- #close ⇒ void
- #discard ⇒ void private
- #enqueue ⇒ Boolean? private
- #get_final_response ⇒ OpenAI::Responses::Response
-
#initialize ⇒ SessionLane
constructor
private
A new instance of SessionLane.
- #receive ⇒ connection_server_event
- #send_event ⇒ void
- #wake ⇒ void private
Constructor Details
#initialize ⇒ SessionLane
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.
Returns a new instance of SessionLane.
46 47 48 49 50 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 46
def initialize: (
Session session,
String? stream_id,
Hash[String, untyped] pending_steers
) -> void
|
Instance Attribute Details
#stream_id ⇒ String? (readonly)
Returns the value of attribute stream_id.
39 40 41 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 39 def stream_id @stream_id end |
Instance Method Details
#close ⇒ void
This method returns an undefined value.
43 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 43
def close: -> void
|
#discard ⇒ void
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.
This method returns an undefined value.
60 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 60
def discard: (?Exception? error) -> void
|
#enqueue ⇒ Boolean?
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.
53 54 55 56 57 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 53
def enqueue: (
connection_server_event event,
Integer bytes,
?bool raw_command_sent
) -> bool?
|
#get_final_response ⇒ OpenAI::Responses::Response
42 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 42
def get_final_response: -> OpenAI::Responses::Response
|
#receive ⇒ connection_server_event
41 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 41
def receive: -> connection_server_event
|
#send_event ⇒ void
This method returns an undefined value.
40 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 40
def send_event: (connection_client_event event) -> void
|
#wake ⇒ void
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.
This method returns an undefined value.
63 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 63
def wake: -> void
|