Share via


ChatHistoryMemoryProvider.State Constructor

Definition

Initializes a new instance of the ChatHistoryMemoryProvider.State class with the specified storage and search scopes.

public State(Microsoft.Agents.AI.ChatHistoryMemoryProviderScope storageScope, Microsoft.Agents.AI.ChatHistoryMemoryProviderScope? searchScope = default);
new Microsoft.Agents.AI.ChatHistoryMemoryProvider.State : Microsoft.Agents.AI.ChatHistoryMemoryProviderScope * Microsoft.Agents.AI.ChatHistoryMemoryProviderScope -> Microsoft.Agents.AI.ChatHistoryMemoryProvider.State
Public Sub New (storageScope As ChatHistoryMemoryProviderScope, Optional searchScope As ChatHistoryMemoryProviderScope = Nothing)

Parameters

storageScope
ChatHistoryMemoryProviderScope

The scope to use when storing chat history messages.

searchScope
ChatHistoryMemoryProviderScope

The scope to use when searching for relevant chat history messages. If null, the storage scope will be used for searching as well.

Applies to