Class BetaResponseApplyPatchToolCall.Builder
-
- All Implemented Interfaces:
public final class BetaResponseApplyPatchToolCall.BuilderA builder for BetaResponseApplyPatchToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseApplyPatchToolCall.Builder id(String id)
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
id
final BetaResponseApplyPatchToolCall.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 BetaResponseApplyPatchToolCall.Builder callId(String callId)
The unique ID of the apply patch tool call generated by the model.
-
callId
final BetaResponseApplyPatchToolCall.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 BetaResponseApplyPatchToolCall.Builder operation(BetaResponseApplyPatchToolCall.Operation operation)
One of the create_file, delete_file, or update_file operations applied via apply_patch.
-
operation
final BetaResponseApplyPatchToolCall.Builder operation(JsonField<BetaResponseApplyPatchToolCall.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 BetaResponseApplyPatchToolCall.Builder operation(BetaResponseApplyPatchToolCall.Operation.CreateFile createFile)
Alias for calling operation with
Operation.ofCreateFile(createFile).
-
operation
final BetaResponseApplyPatchToolCall.Builder operation(BetaResponseApplyPatchToolCall.Operation.DeleteFile deleteFile)
Alias for calling operation with
Operation.ofDeleteFile(deleteFile).
-
operation
final BetaResponseApplyPatchToolCall.Builder operation(BetaResponseApplyPatchToolCall.Operation.UpdateFile updateFile)
Alias for calling operation with
Operation.ofUpdateFile(updateFile).
-
deleteFileOperation
final BetaResponseApplyPatchToolCall.Builder deleteFileOperation(String path)
Alias for calling operation with the following:
Operation.DeleteFile.builder() .path(path) .build()
-
status
final BetaResponseApplyPatchToolCall.Builder status(BetaResponseApplyPatchToolCall.Status status)
The status of the apply patch tool call. One of
in_progressorcompleted.
-
status
final BetaResponseApplyPatchToolCall.Builder status(JsonField<BetaResponseApplyPatchToolCall.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 BetaResponseApplyPatchToolCall.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.
-
agent
final BetaResponseApplyPatchToolCall.Builder agent(BetaResponseApplyPatchToolCall.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseApplyPatchToolCall.Builder agent(JsonField<BetaResponseApplyPatchToolCall.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseApplyPatchToolCall.Builder caller(BetaResponseApplyPatchToolCall.Caller caller)
The execution context that produced this tool call.
-
caller
final BetaResponseApplyPatchToolCall.Builder caller(Optional<BetaResponseApplyPatchToolCall.Caller> caller)
Alias for calling Builder.caller with
caller.orElse(null).
-
caller
final BetaResponseApplyPatchToolCall.Builder caller(JsonField<BetaResponseApplyPatchToolCall.Caller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed Caller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseApplyPatchToolCall.Builder caller(BetaResponseApplyPatchToolCall.Caller.Program program)
Alias for calling caller with
Caller.ofProgram(program).
-
callerDirect
final BetaResponseApplyPatchToolCall.Builder callerDirect()
Alias for calling caller with
Caller.ofDirect().
-
programCaller
final BetaResponseApplyPatchToolCall.Builder programCaller(String callerId)
Alias for calling caller with the following:
Caller.Program.builder() .callerId(callerId) .build()
-
createdBy
final BetaResponseApplyPatchToolCall.Builder createdBy(String createdBy)
The ID of the entity that created this tool call.
-
createdBy
final BetaResponseApplyPatchToolCall.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.
-
additionalProperties
final BetaResponseApplyPatchToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseApplyPatchToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseApplyPatchToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseApplyPatchToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseApplyPatchToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseApplyPatchToolCall build()
Returns an immutable instance of BetaResponseApplyPatchToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .callId() .operation() .status()
-
-
-
-