Module: OpenAI::Models::Live::SessionConfig::Delegation

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

Overview

Who handles tasks delegated by the Live model. Omitted or null selects your application; use responses or decisions to delegate to the corresponding API.

See Also:

  • OpenAI::Models::Live::SessionConfig#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::SessionConfig::Delegation::Responses, OpenAI::Models::Live::SessionConfig::Delegation::Decisions)



# File 'lib/openai/models/live/session_config.rb', line 317

Instance Method Details

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

Delegate tasks to a Responses model managed by the Live session.

Parameters:

  • responses (OpenAI::Models::Live::ResponsesDelegationConfig) —

    Backend model, prompt, and tools used when the Live session delegates a task to Responses.

  • 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.

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

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



# File 'lib/openai/models/live/session_config.rb', line 264