Module: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::ToolChoice

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

Overview

Controls which tool the Responses backend uses when handling a task delegated by the Live model.

See Also:

  • OpenAI::Models::Live::ResponsesDelegationUpdateConfig#tool_choice

Defined Under Namespace

Modules: LiveToolChoiceEnum Classes: ApplyPatch, CodeInterpreter, Computer, Custom, FileSearch, Function, ImageGeneration, LiveAllowedToolsChoiceParam, Mcp, ProgrammaticToolCalling, Shell, WebSearch, WebSearchPreview

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

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 277

.variants ⇒ ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::tool_choice]

Returns:

  • (::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::tool_choice])


697
# File 'sig/openai/models/live/responses_delegation_update_config.rbs', line 697

def self?.variants: -> ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::tool_choice]

Instance Method Details

#initialize(type: :apply_patch) ⇒ Object

Forces the model to call the apply_patch tool when executing a tool call.

Parameters:

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

    The tool to call. Always apply_patch.



# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 294