WebSearchPreviewTool Constructors
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.
Overloads
| Name | Description |
|---|---|
| WebSearchPreviewTool() |
Initializes a new instance of WebSearchPreviewTool. |
| WebSearchPreviewTool(ToolType, IDictionary<String,BinaryData>, Location, Nullable<WebSearchPreviewToolSearchContextSize>) |
Initializes a new instance of WebSearchPreviewTool. |
WebSearchPreviewTool()
- Source:
- WebSearchPreviewTool.cs
Initializes a new instance of WebSearchPreviewTool.
public WebSearchPreviewTool();
Public Sub New ()
Applies to
WebSearchPreviewTool(ToolType, IDictionary<String,BinaryData>, Location, Nullable<WebSearchPreviewToolSearchContextSize>)
- Source:
- WebSearchPreviewTool.cs
Initializes a new instance of WebSearchPreviewTool.
public WebSearchPreviewTool(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolType type, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, Azure.AI.AgentServer.Contracts.Generated.OpenAI.Location userLocation, Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchPreviewToolSearchContextSize? searchContextSize);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchPreviewTool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolType * System.Collections.Generic.IDictionary<string, BinaryData> * Azure.AI.AgentServer.Contracts.Generated.OpenAI.Location * Nullable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchPreviewToolSearchContextSize> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.WebSearchPreviewTool
Public Sub New (type As ToolType, serializedAdditionalRawData As IDictionary(Of String, BinaryData), userLocation As Location, searchContextSize As Nullable(Of WebSearchPreviewToolSearchContextSize))
Parameters
- type
- ToolType
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.
- userLocation
- Location
The user's location. Please note Location 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 ApproximateLocation.
- searchContextSize
- Nullable<WebSearchPreviewToolSearchContextSize>
High level guidance for the amount of context window space to use for the search. One of low, medium, or high. medium is the default.