Language

InMemoryChatHistoryProviderOptions.StateInitializer Property

Definition

Gets or sets an optional delegate that initializes the provider state on the first invocation. If null, a default initializer that creates an empty state will be used.

public Func<Microsoft.Agents.AI.AgentSession?,Microsoft.Agents.AI.InMemoryChatHistoryProvider.State>? StateInitializer { get; set; }
member this.StateInitializer : Func<Microsoft.Agents.AI.AgentSession, Microsoft.Agents.AI.InMemoryChatHistoryProvider.State> with get, set
Public Property StateInitializer As Func(Of AgentSession, InMemoryChatHistoryProvider.State)

Property Value

Applies to