Class: OpenAI::Models::Live::ResponseEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ResponseEvent
- Defined in:
- lib/openai/models/live/response_event.rb,
sig/openai/models/live/response_event.rbs
Instance Attribute Summary collapse
-
#client_event_id ⇒ String?
The event_id of the client command associated with this server event, when supplied.
-
#delegation_id ⇒ String?
The Live delegation associated with the nested Responses event.
-
#event ⇒ Hash{Symbol=>Object}
The nested Responses streaming event.
-
#event_id ⇒ String
The unique ID of the Live server event.
-
#type ⇒ Symbol, :"response.event"
The event type, always
response.event.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(event:, event_id:, client_event_id: nil, delegation_id: nil, type: :"response.event") ⇒ Object
constructor
A streaming Responses API event from a backend delegated to by the Live session.
- #to_hash ⇒ {
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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, 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(event:, event_id:, client_event_id: nil, delegation_id: nil, type: :"response.event") ⇒ Object
A streaming Responses API event from a backend delegated to by the Live session. Use the outer delegation_id to associate the nested stream with its Live delegation.
|
|
# File 'lib/openai/models/live/response_event.rb', line 41
|
Instance Attribute Details
#client_event_id ⇒ String?
The event_id of the client command associated with this server event, when supplied.
32 |
# File 'lib/openai/models/live/response_event.rb', line 32 optional :client_event_id, String |
#delegation_id ⇒ String?
The Live delegation associated with the nested Responses event. May be null or omitted when the event cannot be correlated with a delegation.
39 |
# File 'lib/openai/models/live/response_event.rb', line 39 optional :delegation_id, String, nil?: true |
#event ⇒ Hash{Symbol=>Object}
The nested Responses streaming event. Dispatch on its type field. Response lifecycle snapshots omit input and clear instructions, tools, and output to keep messages small; consume granular output events for the generated content.
13 |
# File 'lib/openai/models/live/response_event.rb', line 13 required :event, OpenAI::Internal::Type::HashOf[OpenAI::Internal::Type::Unknown] |
#event_id ⇒ String
The unique ID of the Live server event.
19 |
# File 'lib/openai/models/live/response_event.rb', line 19 required :event_id, String |
#type ⇒ Symbol, :"response.event"
The event type, always response.event.
25 |
# File 'lib/openai/models/live/response_event.rb', line 25 required :type, const: :"response.event" |
Instance Method Details
#to_hash ⇒ {
34 |
# File 'sig/openai/models/live/response_event.rbs', line 34
def to_hash: -> {
|