Class ResponseApplyPatchToolCall
-
- All Implemented Interfaces:
public final class ResponseApplyPatchToolCallA tool call that applies file diffs by creating, deleting, or updating files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseApplyPatchToolCall.BuilderA builder for ResponseApplyPatchToolCall.
public final classResponseApplyPatchToolCall.StatusThe status of the apply patch tool call. One of
in_progressorcompleted.public final classResponseApplyPatchToolCall.OperationOne of the create_file, delete_file, or update_file operations applied via apply_patch.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the apply patch tool call. final StringcallId()The unique ID of the apply patch tool call generated by the model. final ResponseApplyPatchToolCall.Statusstatus()The status of the apply patch tool call. final JsonValue_type()The type of the item. final Optional<String>createdBy()The ID of the entity that created this tool call. final Optional<ResponseApplyPatchToolCall.Operation>operation()One of the create_file, delete_file, or update_file operations applied via apply_patch. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<ResponseApplyPatchToolCall.Status>_status()Returns the raw JSON value of status. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final JsonField<ResponseApplyPatchToolCall.Operation>_operation()Returns the raw JSON value of operation. final Map<String, JsonValue>_additionalProperties()final ResponseApplyPatchToolCall.BuildertoBuilder()final ResponseApplyPatchToolCallvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseApplyPatchToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseApplyPatchToolCall. -
-
Method Detail
-
id
final String id()
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
status
final ResponseApplyPatchToolCall.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).
-
operation
final Optional<ResponseApplyPatchToolCall.Operation> operation()
One of the create_file, delete_file, or update_file operations applied via apply_patch.
-
_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.
-
_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.
-
_status
final JsonField<ResponseApplyPatchToolCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<String> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_operation
final JsonField<ResponseApplyPatchToolCall.Operation> _operation()
Returns the raw JSON value of operation.
Unlike operation, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseApplyPatchToolCall.Builder toBuilder()
-
validate
final ResponseApplyPatchToolCall validate()
-
builder
final static ResponseApplyPatchToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ResponseApplyPatchToolCall.
The following fields are required:
.id() .callId() .status()
-
-
-
-