Class ResponseComputerToolCall.Action
-
- All Implemented Interfaces:
public final class ResponseComputerToolCall.Action
A click action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseComputerToolCall.Action.Visitor
An interface that defines how to map each variant of Action to a value of type T.
public final class
ResponseComputerToolCall.Action.Click
A click action.
public final class
ResponseComputerToolCall.Action.DoubleClick
A double click action.
public final class
ResponseComputerToolCall.Action.Drag
A drag action.
public final class
ResponseComputerToolCall.Action.Keypress
A collection of keypresses the model would like to perform.
public final class
ResponseComputerToolCall.Action.Move
A mouse move action.
public final class
ResponseComputerToolCall.Action.Scroll
A scroll action.
public final class
ResponseComputerToolCall.Action.Type
An action to type in text.
-
Method Summary
-
-
Method Detail
-
click
final Optional<ResponseComputerToolCall.Action.Click> click()
A click action.
-
doubleClick
final Optional<ResponseComputerToolCall.Action.DoubleClick> doubleClick()
A double click action.
-
drag
final Optional<ResponseComputerToolCall.Action.Drag> drag()
A drag action.
-
keypress
final Optional<ResponseComputerToolCall.Action.Keypress> keypress()
A collection of keypresses the model would like to perform.
-
move
final Optional<ResponseComputerToolCall.Action.Move> move()
A mouse move action.
-
screenshot
final Optional<JsonValue> screenshot()
A screenshot action.
-
scroll
final Optional<ResponseComputerToolCall.Action.Scroll> scroll()
A scroll action.
-
type
final Optional<ResponseComputerToolCall.Action.Type> type()
An action to type in text.
-
isDoubleClick
final Boolean isDoubleClick()
-
isKeypress
final Boolean isKeypress()
-
isScreenshot
final Boolean isScreenshot()
-
asClick
final ResponseComputerToolCall.Action.Click asClick()
A click action.
-
asDoubleClick
final ResponseComputerToolCall.Action.DoubleClick asDoubleClick()
A double click action.
-
asDrag
final ResponseComputerToolCall.Action.Drag asDrag()
A drag action.
-
asKeypress
final ResponseComputerToolCall.Action.Keypress asKeypress()
A collection of keypresses the model would like to perform.
-
asMove
final ResponseComputerToolCall.Action.Move asMove()
A mouse move action.
-
asScreenshot
final JsonValue asScreenshot()
A screenshot action.
-
asScroll
final ResponseComputerToolCall.Action.Scroll asScroll()
A scroll action.
-
asType
final ResponseComputerToolCall.Action.Type asType()
An action to type in text.
-
accept
final <T extends Any> T accept(ResponseComputerToolCall.Action.Visitor<T> visitor)
-
validate
final ResponseComputerToolCall.Action validate()
-
ofClick
final static ResponseComputerToolCall.Action ofClick(ResponseComputerToolCall.Action.Click click)
A click action.
-
ofDoubleClick
final static ResponseComputerToolCall.Action ofDoubleClick(ResponseComputerToolCall.Action.DoubleClick doubleClick)
A double click action.
-
ofDrag
final static ResponseComputerToolCall.Action ofDrag(ResponseComputerToolCall.Action.Drag drag)
A drag action.
-
ofKeypress
final static ResponseComputerToolCall.Action ofKeypress(ResponseComputerToolCall.Action.Keypress keypress)
A collection of keypresses the model would like to perform.
-
ofMove
final static ResponseComputerToolCall.Action ofMove(ResponseComputerToolCall.Action.Move move)
A mouse move action.
-
ofScreenshot
final static ResponseComputerToolCall.Action ofScreenshot()
A screenshot action.
-
ofScroll
final static ResponseComputerToolCall.Action ofScroll(ResponseComputerToolCall.Action.Scroll scroll)
A scroll action.
-
ofType
final static ResponseComputerToolCall.Action ofType(ResponseComputerToolCall.Action.Type type)
An action to type in text.
-
ofWait
final static ResponseComputerToolCall.Action ofWait()
A wait action.
-
-
-
-