你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PersistentAgentsModelFactory.RunStepComputerUseToolCallDetails Method

Definition

Initializes a new instance of RunStepComputerUseToolCallDetails.

public static Azure.AI.Agents.Persistent.RunStepComputerUseToolCallDetails RunStepComputerUseToolCallDetails(Azure.AI.Agents.Persistent.ComputerUseAction action = default, System.Collections.Generic.IEnumerable<Azure.AI.Agents.Persistent.SafetyCheck> pendingSafetyChecks = default, Azure.AI.Agents.Persistent.ComputerScreenshot output = default, System.Collections.Generic.IEnumerable<Azure.AI.Agents.Persistent.SafetyCheck> acknowledgedSafetyChecks = default);
static member RunStepComputerUseToolCallDetails : Azure.AI.Agents.Persistent.ComputerUseAction * seq<Azure.AI.Agents.Persistent.SafetyCheck> * Azure.AI.Agents.Persistent.ComputerScreenshot * seq<Azure.AI.Agents.Persistent.SafetyCheck> -> Azure.AI.Agents.Persistent.RunStepComputerUseToolCallDetails
Public Shared Function RunStepComputerUseToolCallDetails (Optional action As ComputerUseAction = Nothing, Optional pendingSafetyChecks As IEnumerable(Of SafetyCheck) = Nothing, Optional output As ComputerScreenshot = Nothing, Optional acknowledgedSafetyChecks As IEnumerable(Of SafetyCheck) = Nothing) As RunStepComputerUseToolCallDetails

Parameters

action
ComputerUseAction

The action to be performed by the computer use tool. Please note ComputerUseAction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ClickAction, DoubleClickAction, DragAction, KeyPressAction, MoveAction, ScreenshotAction, ScrollAction, TypeAction and WaitAction.

pendingSafetyChecks
IEnumerable<SafetyCheck>

Safety checks that are pending acknowledgment by the developer.

output
ComputerScreenshot

The output from the computer use tool.

acknowledgedSafetyChecks
IEnumerable<SafetyCheck>

Safety checks that have been acknowledged by the developer.

Returns

A new RunStepComputerUseToolCallDetails instance for mocking.

Applies to