ChatResponse<T>(ChatResponse, JsonSerializerOptions) Constructor

Definitie

Initialiseert een nieuw exemplaar van de ChatResponse<T> klasse.

public:
 ChatResponse(Microsoft::Extensions::AI::ChatResponse ^ response, System::Text::Json::JsonSerializerOptions ^ serializerOptions);
public ChatResponse(Microsoft.Extensions.AI.ChatResponse response, System.Text.Json.JsonSerializerOptions serializerOptions);
new Microsoft.Extensions.AI.ChatResponse<'T> : Microsoft.Extensions.AI.ChatResponse * System.Text.Json.JsonSerializerOptions -> Microsoft.Extensions.AI.ChatResponse<'T>
Public Sub New (response As ChatResponse, serializerOptions As JsonSerializerOptions)

Parameters

response
ChatResponse

De ongestructureerde ChatResponse die wordt verpakt.

serializerOptions
JsonSerializerOptions

De JsonSerializerOptions te gebruiken functie bij het deseriialiseren van het resultaat.

Van toepassing op