Class: OpenAI::Models::Beta::BetaResponseApplyPatchToolCall::Operation::CreateFile

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

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



80
# File 'sig/openai/models/beta/beta_response_apply_patch_tool_call.rbs', line 80

def initialize: (

Instance Attribute Details

#diffString

Diff to apply.

Parameters:

  • value (String)

Returns:

  • (String)


105
# File 'lib/openai/models/beta/beta_response_apply_patch_tool_call.rb', line 105

required :diff, String

#pathString

Path of the file to create.

Parameters:

  • value (String)

Returns:

  • (String)


111
# File 'lib/openai/models/beta/beta_response_apply_patch_tool_call.rb', line 111

required :path, String

#typeSymbol, :create_file

Create a new file with the provided diff.

Parameters:

  • value (:create_file)

Returns:

  • (Symbol, :create_file)


117
# File 'lib/openai/models/beta/beta_response_apply_patch_tool_call.rb', line 117

required :type, const: :create_file

Instance Method Details

#to_hash{ diff: String, path: String, type: :create_file }

Returns:

  • ({ diff: String, path: String, type: :create_file })


86
# File 'sig/openai/models/beta/beta_response_apply_patch_tool_call.rbs', line 86

def to_hash: -> { diff: String, path: String, type: :create_file }