Lingua

InMemoryChatHistoryProviderOptions.JsonSerializerOptions Property

Definition

Gets or sets optional JSON serializer options for serializing the state of this provider. This is valuable for cases like when the chat history contains custom AIContent types and source generated serializers are required, or Native AOT / Trimming is required.

public System.Text.Json.JsonSerializerOptions? JsonSerializerOptions { get; set; }
member this.JsonSerializerOptions : System.Text.Json.JsonSerializerOptions with get, set
Public Property JsonSerializerOptions As JsonSerializerOptions

Property Value

Applies to