Share via


BingCustomSearchConfiguration Class

Definition

A bing custom search configuration.

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

Constructors

Name Description
BingCustomSearchConfiguration()

Initializes a new instance of BingCustomSearchConfiguration for deserialization.

BingCustomSearchConfiguration(String, String, String, String, Nullable<Int64>, String, IDictionary<String,BinaryData>)

Initializes a new instance of BingCustomSearchConfiguration.

BingCustomSearchConfiguration(String, String)

Initializes a new instance of BingCustomSearchConfiguration.

Properties

Name Description
Count

The number of search results to return in the bing api response.

Freshness

Filter search results by a specific time range. Accepted values: https://learn.microsoft.com/bing/search-apis/bing-web-search/reference/query-parameters.

InstanceName

Name of the custom configuration instance given to config.

Market

The market where the results come from.

ProjectConnectionId

Project connection id for grounding with bing search.

SetLang

The language to use for user interface strings when calling Bing API.

Methods

Name Description
DeserializeBingCustomSearchConfiguration(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<BingCustomSearchConfiguration>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BingCustomSearchConfiguration>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BingCustomSearchConfiguration>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BingCustomSearchConfiguration>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BingCustomSearchConfiguration>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to