Share via


ToolChoiceObjectWebSearch Class

Definition

Note: web_search is not yet available via Azure OpenAI.

public class ToolChoiceObjectWebSearch : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObject, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectWebSearch>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolChoiceObjectWebSearch>
type ToolChoiceObjectWebSearch = class
    inherit ToolChoiceObject
    interface IUtf8JsonSerializable
    interface IJsonModel<ToolChoiceObjectWebSearch>
    interface IPersistableModel<ToolChoiceObjectWebSearch>
Public Class ToolChoiceObjectWebSearch
Inherits ToolChoiceObject
Implements IJsonModel(Of ToolChoiceObjectWebSearch), IPersistableModel(Of ToolChoiceObjectWebSearch)
Inheritance
ToolChoiceObjectWebSearch
Implements

Constructors

Name Description
ToolChoiceObjectWebSearch()

Initializes a new instance of ToolChoiceObjectWebSearch.

ToolChoiceObjectWebSearch(ToolChoiceObjectType, IDictionary<String,BinaryData>)

Initializes a new instance of ToolChoiceObjectWebSearch.

Properties

Name Description
Type

Gets or sets the type.

(Inherited from ToolChoiceObject)

Methods

Name Description
DeserializeToolChoiceObjectWebSearch(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<ToolChoiceObject>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ToolChoiceObject)
IJsonModel<ToolChoiceObject>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ToolChoiceObject)
IJsonModel<ToolChoiceObjectWebSearch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ToolChoiceObjectWebSearch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ToolChoiceObject>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ToolChoiceObject)
IPersistableModel<ToolChoiceObject>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ToolChoiceObject)
IPersistableModel<ToolChoiceObject>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ToolChoiceObject)
IPersistableModel<ToolChoiceObjectWebSearch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ToolChoiceObjectWebSearch>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ToolChoiceObjectWebSearch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to