Table of Contents

Class ScrollComputerAction

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll

A scroll action.

public sealed class ScrollComputerAction : IComputerAction
Inheritance
ScrollComputerAction
Implements
Inherited Members

Constructors

ScrollComputerAction()

public ScrollComputerAction()

ScrollComputerAction(Coordinate, Coordinate)

public ScrollComputerAction(Coordinate position, Coordinate scrollDistance)

Parameters

position Coordinate
scrollDistance Coordinate

Properties

ScrollX

The horizontal scroll distance.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("scroll_x")]
public int ScrollX { get; }

Property Value

int

ScrollY

The vertical scroll distance.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("scroll_y")]
public int ScrollY { get; }

Property Value

int

Type

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

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

Property Value

ComputerActionType

X

The x-coordinate where the scroll occurred.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("x")]
public int X { get; }

Property Value

int

Y

The y-coordinate where the scroll occurred.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("y")]
public int Y { get; }

Property Value

int