FoundryAITool.CreateComputerTool Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an AITool for computer use (screen interaction).
public static Microsoft.Extensions.AI.AITool CreateComputerTool(OpenAI.Responses.ComputerToolEnvironment environment, int displayWidth, int displayHeight);
static member CreateComputerTool : OpenAI.Responses.ComputerToolEnvironment * int * int -> Microsoft.Extensions.AI.AITool
Public Shared Function CreateComputerTool (environment As ComputerToolEnvironment, displayWidth As Integer, displayHeight As Integer) As AITool
Parameters
- environment
- OpenAI.Responses.ComputerToolEnvironment
The computer tool environment type.
- displayWidth
- Int32
The display width in pixels.
- displayHeight
- Int32
The display height in pixels.
Returns
An AITool for computer use.