ComputerToolCallItemResource Class
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.
A tool call to a computer use tool. See the computer use guide for more information.
public class ComputerToolCallItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ComputerToolCallItemResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ComputerToolCallItemResource>
type ComputerToolCallItemResource = class
inherit ItemResource
interface IUtf8JsonSerializable
interface IJsonModel<ComputerToolCallItemResource>
interface IPersistableModel<ComputerToolCallItemResource>
Public Class ComputerToolCallItemResource
Inherits ItemResource
Implements IJsonModel(Of ComputerToolCallItemResource), IPersistableModel(Of ComputerToolCallItemResource)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| ComputerToolCallItemResource() |
Initializes a new instance of ComputerToolCallItemResource for deserialization. |
| ComputerToolCallItemResource(ItemType, String, CreatedBy, IDictionary<String, BinaryData>, ComputerToolCallItemResourceStatus, String, ComputerAction, IReadOnlyList<ComputerToolCallSafetyCheck>) |
Initializes a new instance of ComputerToolCallItemResource. |
| ComputerToolCallItemResource(String, ComputerToolCallItemResourceStatus, String, ComputerAction, IEnumerable<ComputerToolCallSafetyCheck>) |
Initializes a new instance of ComputerToolCallItemResource. |
Properties
| Name | Description |
|---|---|
| Action |
Gets the action Please note ComputerAction 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 ComputerActionClick, ComputerActionDoubleClick, ComputerActionDrag, ComputerActionKeyPress, ComputerActionMove, ComputerActionScreenshot, ComputerActionScroll, ComputerActionTypeKeys and ComputerActionWait. |
| CallId |
An identifier used when responding to the tool call with output. |
| CreatedBy |
The information about the creator of the item. (Inherited from ItemResource) |
| Id |
Gets the id. (Inherited from ItemResource) |
| PendingSafetyChecks |
The pending safety checks for the computer call. |
| Status |
The status of the item. One of |
| Type |
Gets or sets the type. (Inherited from ItemResource) |
Methods
| Name | Description |
|---|---|
| DeserializeComputerToolCallItemResource(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |