Module: OpenAI::Models::Live::SessionUpdateConfig::Delegation

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/live/session_update_config.rb,
sig/openai/models/live/session_update_config.rbs

Overview

Delegation settings to update. The delegation type must match the current session; omitted settings retain their values.

See Also:

  • OpenAI::Models::Live::SessionUpdateConfig#delegation

Defined Under Namespace

Classes: Decisions, Responses

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

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

Class Method Details

.variants ⇒ Array(OpenAI::Models::Live::ClientDelegation, OpenAI::Models::Live::SessionUpdateConfig::Delegation::Responses, OpenAI::Models::Live::SessionUpdateConfig::Delegation::Decisions)



# File 'lib/openai/models/live/session_update_config.rb', line 134


Instance Method Details

#initialize(acknowledgement_delay_ms: nil, responses: nil, type: :responses) ⇒ Object

Update the Responses backend for an existing Live session without changing delegation ownership.

Parameters:

  • acknowledgement_delay_ms (Integer) (defaults to: nil) —

    Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.

  • responses (OpenAI::Models::Live::ResponsesDelegationUpdateConfig) (defaults to: nil) —

    Responses backend settings to update. Omitted settings keep their existing values.

  • type (Symbol, :responses) (defaults to: :responses) —

    The delegation owner. Always responses for tasks handled by the Responses API.



# File 'lib/openai/models/live/session_update_config.rb', line 78