InMemoryChatHistoryProviderOptions.StateInitializer 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 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)