Class ComputerLeftClickDragToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class ComputerLeftClickDragToolUseBlock.BuilderA builder for ComputerLeftClickDragToolUseBlock.
-
-
Method Summary
-
-
Method Detail
-
id
final ComputerLeftClickDragToolUseBlock.Builder id(String id)
-
id
final ComputerLeftClickDragToolUseBlock.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.
-
caller
final ComputerLeftClickDragToolUseBlock.Builder caller(ToolUseCaller caller)
Which party invoked the tool call: the model directly, or a server tool on its behalf.
-
caller
final ComputerLeftClickDragToolUseBlock.Builder caller(JsonField<ToolUseCaller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed ToolUseCaller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final ComputerLeftClickDragToolUseBlock.Builder caller(DirectCaller direct)
Alias for calling caller with
ToolUseCaller.ofDirect(direct).
-
caller
final ComputerLeftClickDragToolUseBlock.Builder caller(ServerToolCaller codeExecution20250825)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20250825(codeExecution20250825).
-
caller
final ComputerLeftClickDragToolUseBlock.Builder caller(ServerToolCaller20260120 codeExecution20260120)
Alias for calling caller with
ToolUseCaller.ofCodeExecution20260120(codeExecution20260120).
-
input
final ComputerLeftClickDragToolUseBlock.Builder input(ComputerLeftClickDragInput input)
Click and drag the cursor from
start_coordinatetocoordinate.
-
input
final ComputerLeftClickDragToolUseBlock.Builder input(JsonField<ComputerLeftClickDragInput> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed ComputerLeftClickDragInput value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ComputerLeftClickDragToolUseBlock.Builder name(JsonValue name)
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("left_click_drag")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolsetName
final ComputerLeftClickDragToolUseBlock.Builder toolsetName(JsonValue toolsetName)
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("computer")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ComputerLeftClickDragToolUseBlock.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("tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ComputerLeftClickDragToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
codeExecution20250825Caller
final ComputerLeftClickDragToolUseBlock.Builder codeExecution20250825Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller.builder() .toolId(toolId) .build()
-
codeExecution20260120Caller
final ComputerLeftClickDragToolUseBlock.Builder codeExecution20260120Caller(String toolId)
Alias for calling caller with the following:
ServerToolCaller20260120.builder() .toolId(toolId) .build()
-
putAdditionalProperty
final ComputerLeftClickDragToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ComputerLeftClickDragToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ComputerLeftClickDragToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ComputerLeftClickDragToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ComputerLeftClickDragToolUseBlock build()
Returns an immutable instance of ComputerLeftClickDragToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .caller() .input()
-
-
-
-