Class: OpenAI::Models::Beta::BetaApplyPatchTool
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaApplyPatchTool
- 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
-
#allowed_callers ⇒ Array<Symbol, OpenAI::Models::Beta::BetaApplyPatchTool::AllowedCaller>?
The tool invocation context(s).
-
#type ⇒ Symbol, :apply_patch
The type of the tool.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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
#initialize ⇒ Object
17 |
# File 'sig/openai/models/beta/beta_apply_patch_tool.rbs', line 17
def initialize: (
|
Instance Attribute Details
#allowed_callers ⇒ Array<Symbol, OpenAI::Models::Beta::BetaApplyPatchTool::AllowedCaller>?
The tool invocation context(s).
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 |
#type ⇒ Symbol, :apply_patch
The type of the tool. Always 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 ⇒ {
22 |
# File 'sig/openai/models/beta/beta_apply_patch_tool.rbs', line 22
def to_hash: -> {
|