Module: OpenAI::Models::Beta::BetaCustomTool::AllowedCaller

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/beta/beta_custom_tool.rb,
sig/openai/models/beta/beta_custom_tool.rbs

Constant Summary collapse

DIRECT =

Returns:

  • (:direct)
:direct
PROGRAMMATIC =

Returns:

  • (:programmatic)
:programmatic

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values, values

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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(name:, allowed_callers: nil, defer_loading: nil, description: nil, format_: nil, type: :custom) ⇒ Object

A custom tool that processes input using a specified format. Learn more about custom tools

Parameters:



61
62
63
64
65
66
67
68
69
# File 'lib/openai/models/beta/beta_custom_tool.rb', line 61

module AllowedCaller
  extend OpenAI::Internal::Type::Enum

  DIRECT = :direct
  PROGRAMMATIC = :programmatic

  # @!method self.values
  #   @return [Array<Symbol>]
end

#self?.values::Array[OpenAI::Models::Beta::BetaCustomTool::allowed_caller]

Returns:

  • (::Array[OpenAI::Models::Beta::BetaCustomTool::allowed_caller])


63
# File 'sig/openai/models/beta/beta_custom_tool.rbs', line 63

def self?.values: -> ::Array[OpenAI::Models::Beta::BetaCustomTool::allowed_caller]