Language

TextSearchProviderOptions.RecentMessageMemoryLimit Property

Definition

Gets or sets the number of recent conversation messages (both user and assistant) to keep in memory and include when constructing the search input for BeforeAIInvoke searches.

public int RecentMessageMemoryLimit { get; set; }
member this.RecentMessageMemoryLimit : int with get, set
Public Property RecentMessageMemoryLimit As Integer

Property Value

The maximum number of most recent messages to retain. A value of 0 (default) disables memory and only the current request's messages are used for search input. The value is a count of individual messages, not turns. Only messages with role User or Assistant are retained.

Applies to