MessageCountingChatReducer(Int32) 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 MessageCountingChatReducer class.
public:
MessageCountingChatReducer(int targetCount);
public MessageCountingChatReducer(int targetCount);
new Microsoft.Extensions.AI.MessageCountingChatReducer : int -> Microsoft.Extensions.AI.MessageCountingChatReducer
Public Sub New (targetCount As Integer)
Parameters
- targetCount
- Int32
The maximum number of non-system messages to retain in the reduced output.