Delen via


AzureChatDataSource Class

Definition

A representation of configuration data for a single Azure OpenAI chat data source. This will be used by a chat completions request that should use Azure OpenAI chat extensions to augment the response behavior. The use of this configuration is compatible only with Azure OpenAI. Please note AzureChatDataSource 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 AzureCosmosDBChatDataSource, AzureMachineLearningIndexChatDataSource, AzureSearchChatDataSource, ElasticsearchChatDataSource and PineconeChatDataSource.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.OpenAI.Chat.InternalUnknownAzureChatDataSource))]
public abstract class AzureChatDataSource : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Chat.AzureChatDataSource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Chat.AzureChatDataSource>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.OpenAI.Chat.InternalUnknownAzureChatDataSource))>]
type AzureChatDataSource = class
    interface IJsonModel<AzureChatDataSource>
    interface IPersistableModel<AzureChatDataSource>
Public MustInherit Class AzureChatDataSource
Implements IJsonModel(Of AzureChatDataSource), IPersistableModel(Of AzureChatDataSource)
Inheritance
AzureChatDataSource
Derived
Attributes
Implements

Constructors

AzureChatDataSource()

Initializes a new instance of AzureChatDataSource.

Explicit Interface Implementations

IJsonModel<AzureChatDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AzureChatDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AzureChatDataSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AzureChatDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AzureChatDataSource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to