Class ResponseInputItem.ApplyPatchCall.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.ApplyPatchCall.BuilderA builder for ApplyPatchCall.
-
-
Method Summary
-
-
Method Detail
-
callId
final ResponseInputItem.ApplyPatchCall.Builder callId(String callId)
The unique ID of the apply patch tool call generated by the model.
-
callId
final ResponseInputItem.ApplyPatchCall.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
operation
final ResponseInputItem.ApplyPatchCall.Builder operation(ResponseInputItem.ApplyPatchCall.Operation operation)
The specific create, delete, or update instruction for the apply_patch tool call.
-
operation
final ResponseInputItem.ApplyPatchCall.Builder operation(JsonField<ResponseInputItem.ApplyPatchCall.Operation> operation)
Sets Builder.operation to an arbitrary JSON value.
You should usually call Builder.operation with a well-typed Operation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
operation
final ResponseInputItem.ApplyPatchCall.Builder operation(ResponseInputItem.ApplyPatchCall.Operation.CreateFile createFile)
Alias for calling operation with
Operation.ofCreateFile(createFile).
-
operation
final ResponseInputItem.ApplyPatchCall.Builder operation(ResponseInputItem.ApplyPatchCall.Operation.DeleteFile deleteFile)
Alias for calling operation with
Operation.ofDeleteFile(deleteFile).
-
operation
final ResponseInputItem.ApplyPatchCall.Builder operation(ResponseInputItem.ApplyPatchCall.Operation.UpdateFile updateFile)
Alias for calling operation with
Operation.ofUpdateFile(updateFile).
-
deleteFileOperation
final ResponseInputItem.ApplyPatchCall.Builder deleteFileOperation(String path)
Alias for calling operation with the following:
Operation.DeleteFile.builder() .path(path) .build()
-
status
final ResponseInputItem.ApplyPatchCall.Builder status(ResponseInputItem.ApplyPatchCall.Status status)
The status of the apply patch tool call. One of
in_progressorcompleted.
-
status
final ResponseInputItem.ApplyPatchCall.Builder status(JsonField<ResponseInputItem.ApplyPatchCall.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseInputItem.ApplyPatchCall.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("apply_patch_call")This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final ResponseInputItem.ApplyPatchCall.Builder id(String id)
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
id
final ResponseInputItem.ApplyPatchCall.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final ResponseInputItem.ApplyPatchCall.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputItem.ApplyPatchCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.ApplyPatchCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.ApplyPatchCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.ApplyPatchCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.ApplyPatchCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.ApplyPatchCall build()
Returns an immutable instance of ApplyPatchCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.callId() .operation() .status()
-
-
-
-