class

OpenAI::ApplyPatchUpdateFileOperationParam

Inherits JSON::Serializable < Reference < Object

Instruction for updating an existing file via the apply_patch tool.

Constructors

new(type_value : ApplyPatchUpdateFileOperationParamType = ApplyPatchUpdateFileOperationParamType::UpdateFile, path : String = "", diff : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

diff

Unified diff content to apply to the existing file.

Source
diff=(diff : String)

Unified diff content to apply to the existing file.

Source
path

Path of the file to update relative to the workspace root.

Source
path=(path : String)

Path of the file to update relative to the workspace root.

Source
type_value

The operation type. Always update_file.

Source
type_value=(type_value : ApplyPatchUpdateFileOperationParamType)

The operation type. Always update_file.

Source
validate!
Source