Class: OpenAI::Models::Live::SessionUpdateConfig
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::SessionUpdateConfig
- Defined in:
- lib/openai/models/live/session_update_config.rb,
sig/openai/models/live/session_update_config.rbs
Defined Under Namespace
Modules: Delegation
Instance Attribute Summary collapse
-
#delegation ⇒ OpenAI::Models::Live::SessionUpdateConfig::delegation?
Delegation settings to update.
-
#triggers ⇒ ::Array[OpenAI::Live::DecisionTrigger]?
At most one Decisions trigger per transcript event type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(delegation: nil, triggers: nil) ⇒ SessionUpdateConfig
constructor
A new instance of SessionUpdateConfig.
- #to_hash ⇒ { ?delegation: OpenAI::Models::Live::SessionUpdateConfig::delegation?, ?triggers: ::Array[OpenAI::Live::DecisionTrigger] }
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(delegation: nil, triggers: nil) ⇒ SessionUpdateConfig
Returns a new instance of SessionUpdateConfig.
|
|
# File 'lib/openai/models/live/session_update_config.rb', line 23
|
Instance Attribute Details
#delegation ⇒ OpenAI::Models::Live::SessionUpdateConfig::delegation?
Delegation settings to update. The delegation type must match the current session; omitted settings retain their values.
12 |
# File 'lib/openai/models/live/session_update_config.rb', line 12 optional :delegation, union: -> { OpenAI::Live::SessionUpdateConfig::Delegation }, nil?: true |
#triggers ⇒ ::Array[OpenAI::Live::DecisionTrigger]?
At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.
21 |
# File 'lib/openai/models/live/session_update_config.rb', line 21 optional :triggers, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Live::DecisionTrigger] } |
Instance Method Details
#to_hash ⇒ { ?delegation: OpenAI::Models::Live::SessionUpdateConfig::delegation?, ?triggers: ::Array[OpenAI::Live::DecisionTrigger] }
42 43 44 45 |
# File 'sig/openai/models/live/session_update_config.rbs', line 42
def to_hash: -> {
?delegation: OpenAI::Models::Live::SessionUpdateConfig::delegation?,
?triggers: ::Array[OpenAI::Live::DecisionTrigger]
}
|