CosmosChatHistoryProvider.MaxMessagesToRetrieve 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 the maximum number of messages to retrieve from the provider. This helps prevent exceeding LLM context windows in long conversations. Default is null (no limit). When set, only the most recent messages are returned.
public int? MaxMessagesToRetrieve { get; set; }
member this.MaxMessagesToRetrieve : Nullable<int> with get, set
Public Property MaxMessagesToRetrieve As Nullable(Of Integer)