Share via


ChatDataSource.IJsonModel<ChatDataSource>.Create Method

Definition

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

Azure.AI.OpenAI.Chat.ChatDataSource IJsonModel<ChatDataSource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options);
abstract member System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Chat.ChatDataSource>.Create : Utf8JsonReader * System.ClientModel.Primitives.ModelReaderWriterOptions -> Azure.AI.OpenAI.Chat.ChatDataSource
override this.System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Chat.ChatDataSource>.Create : Utf8JsonReader * System.ClientModel.Primitives.ModelReaderWriterOptions -> Azure.AI.OpenAI.Chat.ChatDataSource
Function Create (ByRef reader As Utf8JsonReader, options As ModelReaderWriterOptions) As ChatDataSource Implements IJsonModel(Of ChatDataSource).Create

Parameters

reader
Utf8JsonReader

The JSON reader.

options
ModelReaderWriterOptions

The client options for reading and writing models.

Returns

A T representation of the JSON value.

Implements

Exceptions

If the model does not support the requested Format.

Applies to