Class BetaResponseApplyPatchToolCall.Operation.UpdateFile
-
- All Implemented Interfaces:
public final class BetaResponseApplyPatchToolCall.Operation.UpdateFileInstruction describing how to update a file via the apply_patch tool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseApplyPatchToolCall.Operation.UpdateFile.BuilderA builder for UpdateFile.
-
Method Summary
Modifier and Type Method Description final Stringdiff()Diff to apply. final Stringpath()Path of the file to update. final JsonValue_type()Update an existing 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 BetaResponseApplyPatchToolCall.Operation.UpdateFile.BuildertoBuilder()final BetaResponseApplyPatchToolCall.Operation.UpdateFilevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseApplyPatchToolCall.Operation.UpdateFile.Builderbuilder()Returns a mutable builder for constructing an instance of UpdateFile. -
-
Method Detail
-
_type
final JsonValue _type()
Update an existing file with the provided diff.
Expected to always return the following:
JsonValue.from("update_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 BetaResponseApplyPatchToolCall.Operation.UpdateFile.Builder toBuilder()
-
validate
final BetaResponseApplyPatchToolCall.Operation.UpdateFile 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 BetaResponseApplyPatchToolCall.Operation.UpdateFile.Builder builder()
Returns a mutable builder for constructing an instance of UpdateFile.
The following fields are required:
.diff() .path()
-
-
-
-