Share via


WebSearchToolCallItemResource Constructors

Definition

Overloads

WebSearchToolCallItemResource()

Source:
WebSearchToolCallItemResource.cs

Initializes a new instance of WebSearchToolCallItemResource for deserialization.

public WebSearchToolCallItemResource();
Public Sub New ()

Applies to

WebSearchToolCallItemResource(String, WebSearchToolCallItemResourceStatus, WebSearchAction)

Source:
WebSearchToolCallItemResource.cs

Initializes a new instance of WebSearchToolCallItemResource.

public WebSearchToolCallItemResource(string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResourceStatus status, Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchAction action);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResource : string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResourceStatus * Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchAction -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResource
Public Sub New (id As String, status As WebSearchToolCallItemResourceStatus, action As WebSearchAction)

Parameters

id
String
status
WebSearchToolCallItemResourceStatus

The status of the web search tool call.

action
WebSearchAction

An object describing the specific action taken in this web search call. Includes details on how the model used the web (search, open_page, find). Please note WebSearchAction 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 WebSearchActionFind, WebSearchActionOpenPage and WebSearchActionSearch.

Exceptions

id or action is null.

Applies to

WebSearchToolCallItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, WebSearchToolCallItemResourceStatus, WebSearchAction)

Source:
WebSearchToolCallItemResource.cs

Initializes a new instance of WebSearchToolCallItemResource.

public WebSearchToolCallItemResource(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy createdBy, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResourceStatus status, Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchAction action);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy * System.Collections.Generic.IDictionary<string, BinaryData> * Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResourceStatus * Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchAction -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchToolCallItemResource
Public Sub New (type As ItemType, id As String, createdBy As CreatedBy, serializedAdditionalRawData As IDictionary(Of String, BinaryData), status As WebSearchToolCallItemResourceStatus, action As WebSearchAction)

Parameters

type
ItemType
id
String
createdBy
CreatedBy

The information about the creator of the item.

serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

status
WebSearchToolCallItemResourceStatus

The status of the web search tool call.

action
WebSearchAction

An object describing the specific action taken in this web search call. Includes details on how the model used the web (search, open_page, find). Please note WebSearchAction 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 WebSearchActionFind, WebSearchActionOpenPage and WebSearchActionSearch.

Applies to