Class ResponseApplyPatchToolCall.Operation.CreateFile
-
- All Implemented Interfaces:
public final class ResponseApplyPatchToolCall.Operation.CreateFileInstruction describing how to create a file via the apply_patch tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseApplyPatchToolCall.Operation.CreateFile.BuilderA builder for CreateFile.
-
Method Summary
Modifier and Type Method Description final Stringdiff()Diff to apply. final Stringpath()Path of the file to create. final JsonValue_type()Create a new file with the provided diff. 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 ResponseApplyPatchToolCall.Operation.CreateFile.BuildertoBuilder()final ResponseApplyPatchToolCall.Operation.CreateFilevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseApplyPatchToolCall.Operation.CreateFile.Builderbuilder()Returns a mutable builder for constructing an instance of CreateFile. -
-
Method Detail
-
_type
final JsonValue _type()
Create a new file with the provided diff.
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 ResponseApplyPatchToolCall.Operation.CreateFile.Builder toBuilder()
-
validate
final ResponseApplyPatchToolCall.Operation.CreateFile validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ResponseApplyPatchToolCall.Operation.CreateFile.Builder builder()
Returns a mutable builder for constructing an instance of CreateFile.
The following fields are required:
.diff() .path()
-
-
-
-