Class ResponseInputItem.ApplyPatchCall
-
- All Implemented Interfaces:
public final class ResponseInputItem.ApplyPatchCallA tool call representing a request to create, delete, or update files using diff patches.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.ApplyPatchCall.BuilderA builder for ApplyPatchCall.
public final classResponseInputItem.ApplyPatchCall.OperationThe specific create, delete, or update instruction for the apply_patch tool call.
public final classResponseInputItem.ApplyPatchCall.StatusThe status of the apply patch tool call. One of
in_progressorcompleted.
-
Method Summary
Modifier and Type Method Description final StringcallId()The unique ID of the apply patch tool call generated by the model. final ResponseInputItem.ApplyPatchCall.Operationoperation()The specific create, delete, or update instruction for the apply_patch tool call. final ResponseInputItem.ApplyPatchCall.Statusstatus()The status of the apply patch tool call. final JsonValue_type()The type of the item. final Optional<String>id()The unique ID of the apply patch tool call. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<ResponseInputItem.ApplyPatchCall.Operation>_operation()Returns the raw JSON value of operation. final JsonField<ResponseInputItem.ApplyPatchCall.Status>_status()Returns the raw JSON value of status. final JsonField<String>_id()Returns the raw JSON value of id. final Map<String, JsonValue>_additionalProperties()final ResponseInputItem.ApplyPatchCall.BuildertoBuilder()final ResponseInputItem.ApplyPatchCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputItem.ApplyPatchCall.Builderbuilder()Returns a mutable builder for constructing an instance of ApplyPatchCall. -
-
Method Detail
-
operation
final ResponseInputItem.ApplyPatchCall.Operation operation()
The specific create, delete, or update instruction for the apply_patch tool call.
-
status
final ResponseInputItem.ApplyPatchCall.Status status()
The status of the apply patch tool call. One of
in_progressorcompleted.
-
_type
final JsonValue _type()
The type of the item. Always
apply_patch_call.Expected to always return the following:
JsonValue.from("apply_patch_call")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
id
final Optional<String> id()
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_operation
final JsonField<ResponseInputItem.ApplyPatchCall.Operation> _operation()
Returns the raw JSON value of operation.
Unlike operation, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseInputItem.ApplyPatchCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.ApplyPatchCall.Builder toBuilder()
-
validate
final ResponseInputItem.ApplyPatchCall 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 ResponseInputItem.ApplyPatchCall.Builder builder()
Returns a mutable builder for constructing an instance of ApplyPatchCall.
The following fields are required:
.callId() .operation() .status()
-
-
-
-