Class ResponseApplyPatchToolCall.Builder
-
- All Implemented Interfaces:
public final class ResponseApplyPatchToolCall.BuilderA builder for ResponseApplyPatchToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseApplyPatchToolCall.Builder id(String id)
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
id
final ResponseApplyPatchToolCall.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.
-
callId
final ResponseApplyPatchToolCall.Builder callId(String callId)
The unique ID of the apply patch tool call generated by the model.
-
callId
final ResponseApplyPatchToolCall.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.
-
status
final ResponseApplyPatchToolCall.Builder status(ResponseApplyPatchToolCall.Status status)
The status of the apply patch tool call. One of
in_progressorcompleted.
-
status
final ResponseApplyPatchToolCall.Builder status(JsonField<ResponseApplyPatchToolCall.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 ResponseApplyPatchToolCall.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.
-
createdBy
final ResponseApplyPatchToolCall.Builder createdBy(String createdBy)
The ID of the entity that created this tool call.
-
createdBy
final ResponseApplyPatchToolCall.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy 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 ResponseApplyPatchToolCall.Builder operation(ResponseApplyPatchToolCall.Operation operation)
One of the create_file, delete_file, or update_file operations applied via apply_patch.
-
operation
final ResponseApplyPatchToolCall.Builder operation(JsonField<ResponseApplyPatchToolCall.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 ResponseApplyPatchToolCall.Builder operation(ResponseApplyPatchToolCall.Operation.CreateFile createFile)
Alias for calling operation with
Operation.ofCreateFile(createFile).
-
operation
final ResponseApplyPatchToolCall.Builder operation(ResponseApplyPatchToolCall.Operation.DeleteFile deleteFile)
Alias for calling operation with
Operation.ofDeleteFile(deleteFile).
-
operation
final ResponseApplyPatchToolCall.Builder operation(ResponseApplyPatchToolCall.Operation.UpdateFile updateFile)
Alias for calling operation with
Operation.ofUpdateFile(updateFile).
-
deleteFileOperation
final ResponseApplyPatchToolCall.Builder deleteFileOperation(String path)
Alias for calling operation with the following:
Operation.DeleteFile.builder() .path(path) .build()
-
additionalProperties
final ResponseApplyPatchToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseApplyPatchToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseApplyPatchToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseApplyPatchToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseApplyPatchToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseApplyPatchToolCall build()
Returns an immutable instance of ResponseApplyPatchToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .callId() .status()
-
-
-
-