Class: OpenAI::Models::Beta::BetaApplyPatchTool

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_apply_patch_tool.rb,
sig/openai/models/beta/beta_apply_patch_tool.rbs

Defined Under Namespace

Modules: AllowedCaller

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initializeObject



17
# File 'sig/openai/models/beta/beta_apply_patch_tool.rbs', line 17

def initialize: (

Instance Attribute Details

#allowed_callersArray<Symbol, OpenAI::Models::Beta::BetaApplyPatchTool::AllowedCaller>?

The tool invocation context(s).

Parameters:

  • value (::Array[OpenAI::Models::Beta::BetaApplyPatchTool::allowed_caller], nil)

Returns:



17
18
19
20
21
# File 'lib/openai/models/beta/beta_apply_patch_tool.rb', line 17

optional :allowed_callers,
-> {
  OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Beta::BetaApplyPatchTool::AllowedCaller]
},
nil?: true

#typeSymbol, :apply_patch

The type of the tool. Always apply_patch.

Parameters:

  • value (:apply_patch)

Returns:

  • (Symbol, :apply_patch)


11
# File 'lib/openai/models/beta/beta_apply_patch_tool.rb', line 11

required :type, const: :apply_patch

Instance Method Details

#to_hash{

Returns:

  • ({)


22
# File 'sig/openai/models/beta/beta_apply_patch_tool.rbs', line 22

def to_hash: -> {