Table of Contents

Class ComputerUsePreviewTool

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll

A tool that controls a virtual computer. Learn more about the computer tool.

public sealed class ComputerUsePreviewTool : ITool
Inheritance
ComputerUsePreviewTool
Implements
Inherited Members

Constructors

ComputerUsePreviewTool()

public ComputerUsePreviewTool()

ComputerUsePreviewTool(int, int, string)

public ComputerUsePreviewTool(int displayHeight, int displayWidth, string environment)

Parameters

displayHeight int
displayWidth int
environment string

Properties

DisplayHeight

The height of the computer display.

[JsonInclude]
[JsonPropertyName("display_height")]
public int DisplayHeight { get; }

Property Value

int

DisplayWidth

The width of the computer display.

[JsonInclude]
[JsonPropertyName("display_width")]
public int DisplayWidth { get; }

Property Value

int

Environment

The type of computer environment to control.

[JsonInclude]
[JsonPropertyName("environment")]
public string Environment { get; }

Property Value

string

Type

[JsonInclude]
[JsonPropertyName("type")]
public string Type { get; }

Property Value

string

Operators

implicit operator Tool(ComputerUsePreviewTool)

public static implicit operator Tool(ComputerUsePreviewTool computerUsePreviewTool)

Parameters

computerUsePreviewTool ComputerUsePreviewTool

Returns

Tool