Share via


ChatHistoryMemoryProviderOptions.StateKey Property

Definition

Gets or sets the key used to store provider state in the StateBag.

public string? StateKey { get; set; }
member this.StateKey : string with get, set
Public Property StateKey As String

Property Value

Defaults to the provider's type name. Override this if you need multiple ChatHistoryMemoryProvider instances with separate state in the same session.

Applies to