Module: OpenAI::Models::Responses::ApplyPatchTool::AllowedCaller

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

Constant Summary collapse

DIRECT =

Returns:

  • (:direct)
:direct
PROGRAMMATIC =

Returns:

  • (:programmatic)
:programmatic

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, 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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/responses/apply_patch_tool.rb', line 36

Instance Method Details

#initialize(allowed_callers: nil, type: :apply_patch) ⇒ Object

Allows the assistant to create, delete, or update files using unified diffs.

Parameters:



30
31
32
33
34
35
36
37
38
# File 'lib/openai/models/responses/apply_patch_tool.rb', line 30

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

  DIRECT = :direct
  PROGRAMMATIC = :programmatic

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

#self?.values::Array[OpenAI::Models::Responses::ApplyPatchTool::allowed_caller]

Returns:

  • (::Array[OpenAI::Models::Responses::ApplyPatchTool::allowed_caller])


33
# File 'sig/openai/models/responses/apply_patch_tool.rbs', line 33

def self?.values: -> ::Array[OpenAI::Models::Responses::ApplyPatchTool::allowed_caller]