InMemoryChatHistoryProviderOptions.JsonSerializerOptions Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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