Package com.openai.models.responses
Class ResponseInputItem.ApplyPatchCall.Operation.CreateFile
-
- All Implemented Interfaces:
public final class ResponseInputItem.ApplyPatchCall.Operation.CreateFileInstruction for creating a new file via the apply_patch tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.ApplyPatchCall.Operation.CreateFile.BuilderA builder for CreateFile.
-
Method Summary
Modifier and Type Method Description final Stringdiff()Unified diff content to apply when creating the file. final Stringpath()Path of the file to create relative to the workspace root. final JsonValue_type()The operation type. final JsonField<String>_diff()Returns the raw JSON value of diff. final JsonField<String>_path()Returns the raw JSON value of path. final Map<String, JsonValue>_additionalProperties()final ResponseInputItem.ApplyPatchCall.Operation.CreateFile.BuildertoBuilder()final ResponseInputItem.ApplyPatchCall.Operation.CreateFilevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputItem.ApplyPatchCall.Operation.CreateFile.Builderbuilder()Returns a mutable builder for constructing an instance of CreateFile. -
-
Method Detail
-
_type
final JsonValue _type()
The operation type. Always
create_file.Expected to always return the following:
JsonValue.from("create_file")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_diff
final JsonField<String> _diff()
Returns the raw JSON value of diff.
Unlike diff, this method doesn't throw if the JSON field has an unexpected type.
-
_path
final JsonField<String> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.ApplyPatchCall.Operation.CreateFile.Builder toBuilder()
-
validate
final ResponseInputItem.ApplyPatchCall.Operation.CreateFile validate()
-
builder
final static ResponseInputItem.ApplyPatchCall.Operation.CreateFile.Builder builder()
Returns a mutable builder for constructing an instance of CreateFile.
The following fields are required:
.diff() .path()
-
-
-
-