class

OpenAI::ApplyPatchCreateFileOperationParam

Inherits JSON::Serializable < Reference < Object

Instruction for creating a new file via the apply_patch tool.

Constructors

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

Instance methods

diff

Unified diff content to apply when creating the file.

Source
diff=(diff : String)

Unified diff content to apply when creating the file.

Source
path

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

Source
path=(path : String)

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

Source
type_value

The operation type. Always create_file.

Source
type_value=(type_value : ApplyPatchCreateFileOperationParamType)

The operation type. Always create_file.

Source
validate!
Source