Table of Contents

Class ClickComputerAction

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll

A click action.

public sealed class ClickComputerAction : IComputerAction
Inheritance
ClickComputerAction
Implements
Inherited Members

Constructors

ClickComputerAction()

public ClickComputerAction()

ClickComputerAction(ComputerClickButtonType, Coordinate)

public ClickComputerAction(ComputerClickButtonType button, Coordinate position)

Parameters

button ComputerClickButtonType
position Coordinate

Properties

Button

Indicates which mouse button was pressed during the click.

[JsonInclude]
[JsonPropertyName("button")]
public ComputerClickButtonType Button { get; }

Property Value

ComputerClickButtonType

Type

Specifies the event type. For a click action, this property is always set to click.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ComputerActionType Type { get; }

Property Value

ComputerActionType

X

The x-coordinate where the click occurred.

[JsonInclude]
[JsonPropertyName("x")]
public int X { get; }

Property Value

int

Y

The y-coordinate where the click occurred.

[JsonInclude]
[JsonPropertyName("y")]
public int Y { get; }

Property Value

int