Class BetaResponseInputItem.ApplyPatchCall.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ApplyPatchCall.BuilderA builder for ApplyPatchCall.
-
-
Method Summary
-
-
Method Detail
-
callId
final BetaResponseInputItem.ApplyPatchCall.Builder callId(String callId)
The unique ID of the apply patch tool call generated by the model.
-
callId
final BetaResponseInputItem.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 BetaResponseInputItem.ApplyPatchCall.Builder operation(BetaResponseInputItem.ApplyPatchCall.Operation operation)
The specific create, delete, or update instruction for the apply_patch tool call.
-
operation
final BetaResponseInputItem.ApplyPatchCall.Builder operation(JsonField<BetaResponseInputItem.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 BetaResponseInputItem.ApplyPatchCall.Builder operation(BetaResponseInputItem.ApplyPatchCall.Operation.CreateFile createFile)
Alias for calling operation with
Operation.ofCreateFile(createFile).
-
operation
final BetaResponseInputItem.ApplyPatchCall.Builder operation(BetaResponseInputItem.ApplyPatchCall.Operation.DeleteFile deleteFile)
Alias for calling operation with
Operation.ofDeleteFile(deleteFile).
-
operation
final BetaResponseInputItem.ApplyPatchCall.Builder operation(BetaResponseInputItem.ApplyPatchCall.Operation.UpdateFile updateFile)
Alias for calling operation with
Operation.ofUpdateFile(updateFile).
-
deleteFileOperation
final BetaResponseInputItem.ApplyPatchCall.Builder deleteFileOperation(String path)
Alias for calling operation with the following:
Operation.DeleteFile.builder() .path(path) .build()
-
status
final BetaResponseInputItem.ApplyPatchCall.Builder status(BetaResponseInputItem.ApplyPatchCall.Status status)
The status of the apply patch tool call. One of
in_progressorcompleted.
-
status
final BetaResponseInputItem.ApplyPatchCall.Builder status(JsonField<BetaResponseInputItem.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 BetaResponseInputItem.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 BetaResponseInputItem.ApplyPatchCall.Builder id(String id)
The unique ID of the apply patch tool call. Populated when this item is returned via API.
-
id
final BetaResponseInputItem.ApplyPatchCall.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null).
-
id
final BetaResponseInputItem.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.
-
agent
final BetaResponseInputItem.ApplyPatchCall.Builder agent(BetaResponseInputItem.ApplyPatchCall.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseInputItem.ApplyPatchCall.Builder agent(Optional<BetaResponseInputItem.ApplyPatchCall.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseInputItem.ApplyPatchCall.Builder agent(JsonField<BetaResponseInputItem.ApplyPatchCall.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 BetaResponseInputItem.ApplyPatchCall.Builder caller(BetaResponseInputItem.ApplyPatchCall.Caller caller)
The execution context that produced this tool call.
-
caller
final BetaResponseInputItem.ApplyPatchCall.Builder caller(Optional<BetaResponseInputItem.ApplyPatchCall.Caller> caller)
Alias for calling Builder.caller with
caller.orElse(null).
-
caller
final BetaResponseInputItem.ApplyPatchCall.Builder caller(JsonField<BetaResponseInputItem.ApplyPatchCall.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 BetaResponseInputItem.ApplyPatchCall.Builder caller(BetaResponseInputItem.ApplyPatchCall.Caller.Program program)
Alias for calling caller with
Caller.ofProgram(program).
-
callerDirect
final BetaResponseInputItem.ApplyPatchCall.Builder callerDirect()
Alias for calling caller with
Caller.ofDirect().
-
programCaller
final BetaResponseInputItem.ApplyPatchCall.Builder programCaller(String callerId)
Alias for calling caller with the following:
Caller.Program.builder() .callerId(callerId) .build()
-
additionalProperties
final BetaResponseInputItem.ApplyPatchCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputItem.ApplyPatchCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputItem.ApplyPatchCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputItem.ApplyPatchCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputItem.ApplyPatchCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputItem.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()
-
-
-
-