Class: OpenAI::Models::Responses::Session
- Inherits:
-
Object
- Object
- OpenAI::Models::Responses::Session
- Defined in:
- sig/openai/helpers/responses_websocket/session.rbs
Instance Attribute Summary collapse
-
#default ⇒ SessionLane
readonly
Returns the value of attribute default.
-
#limits ⇒ SessionLimits
readonly
Returns the value of attribute limits.
Class Method Summary collapse
Instance Method Summary collapse
- #assert_owner! ⇒ void private
- #check_reader! ⇒ void private
- #close ⇒ void
- #consumed ⇒ void private
- #detach ⇒ void private
- #encode_client_event ⇒ ::Hash[Symbol, untyped] private
-
#initialize ⇒ Session
constructor
private
A new instance of Session.
- #lane ⇒ SessionLane
- #reconnect ⇒ self
- #send_event ⇒ void private
- #start ⇒ void private
Constructor Details
#initialize ⇒ Session
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 Session.
88 89 90 91 92 93 94 95 96 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 88
def initialize: (
task: untyped,
client: OpenAI::Client,
limits: SessionLimits,
request_options: OpenAI::request_opts?,
websocket_base_url: String?,
transport: top,
transport_options: ::Hash[Symbol, top]
) -> void
|
Instance Attribute Details
#default ⇒ SessionLane (readonly)
Returns the value of attribute default.
68 69 70 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 68 def default @default end |
#limits ⇒ SessionLimits (readonly)
Returns the value of attribute limits.
67 68 69 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 67 def limits @limits end |
Class Method Details
.open {|session| ... } ⇒ Result
69 70 71 72 73 74 75 76 77 78 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 69
def self.open: [Result] (
client: OpenAI::Client,
limits: SessionLimits,
?request_options: OpenAI::request_opts?,
?websocket_base_url: String?,
?transport: top,
?transport_options: ::Hash[Symbol, top]
) {
(Session session) -> Result
} -> Result
|
Instance Method Details
#assert_owner! ⇒ 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.
113 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 113
def assert_owner!: -> void
|
#check_reader! ⇒ 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.
110 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 110
def check_reader!: -> void
|
#close ⇒ void
This method returns an undefined value.
85 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 85
def close: -> void
|
#consumed ⇒ 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.
116 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 116
def consumed: (Integer bytes) -> void
|
#detach ⇒ 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.
119 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 119
def detach: (SessionLane value) -> void
|
#encode_client_event ⇒ ::Hash[Symbol, untyped]
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.
102 103 104 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 102
def encode_client_event: (
connection_client_event event
) -> ::Hash[Symbol, untyped]
|
#lane ⇒ SessionLane
79 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 79
def lane: (String? stream_id) -> SessionLane
|
#reconnect ⇒ self
80 81 82 83 84 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 80
def reconnect: (
restore: ^(Session) -> top,
?client: OpenAI::Client,
?request_options: OpenAI::request_opts?
) -> self
|
#send_event ⇒ 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.
107 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 107
def send_event: (connection_client_event event) -> void
|
#start ⇒ 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.
99 |
# File 'sig/openai/helpers/responses_websocket/session.rbs', line 99
def start: -> void
|