Package com.openai.models.responses
Class ApplyPatchTool
-
- All Implemented Interfaces:
public final class ApplyPatchToolAllows the assistant to create, delete, or update files using unified diffs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classApplyPatchTool.BuilderA builder for ApplyPatchTool.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of the tool. final Map<String, JsonValue>_additionalProperties()final ApplyPatchTool.BuildertoBuilder()final ApplyPatchToolvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ApplyPatchTool.Builderbuilder()Returns a mutable builder for constructing an instance of ApplyPatchTool. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the tool. Always
apply_patch.Expected to always return the following:
JsonValue.from("apply_patch")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ApplyPatchTool.Builder toBuilder()
-
validate
final ApplyPatchTool 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 ApplyPatchTool.Builder builder()
Returns a mutable builder for constructing an instance of ApplyPatchTool.
-
-
-
-