ChatHistoryProvider Constructor
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.
Initializes a new instance of the ChatHistoryProvider class.
protected ChatHistoryProvider(Func<System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>,System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>>? provideOutputMessageFilter = default, Func<System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>,System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage>>? storeInputMessageFilter = default);
new Microsoft.Agents.AI.ChatHistoryProvider : Func<seq<Microsoft.Extensions.AI.ChatMessage>, seq<Microsoft.Extensions.AI.ChatMessage>> * Func<seq<Microsoft.Extensions.AI.ChatMessage>, seq<Microsoft.Extensions.AI.ChatMessage>> -> Microsoft.Agents.AI.ChatHistoryProvider
Protected Sub New (Optional provideOutputMessageFilter As Func(Of IEnumerable(Of ChatMessage), IEnumerable(Of ChatMessage)) = Nothing, Optional storeInputMessageFilter As Func(Of IEnumerable(Of ChatMessage), IEnumerable(Of ChatMessage)) = Nothing)
Parameters
- provideOutputMessageFilter
- Func<IEnumerable<ChatMessage>,IEnumerable<ChatMessage>>
An optional filter function to apply to messages when retrieving them from the chat history.
- storeInputMessageFilter
- Func<IEnumerable<ChatMessage>,IEnumerable<ChatMessage>>
An optional filter function to apply to messages before storing them in the chat history. If not set, defaults to excluding messages with source type ChatHistory.