CompactionMessageIndex(IList<CompactionMessageGroup>, Tokenizer) 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 CompactionMessageIndex class with the specified groups.
public CompactionMessageIndex(System.Collections.Generic.IList<Microsoft.Agents.AI.Compaction.CompactionMessageGroup> groups, Microsoft.ML.Tokenizers.Tokenizer? tokenizer = default);
new Microsoft.Agents.AI.Compaction.CompactionMessageIndex : System.Collections.Generic.IList<Microsoft.Agents.AI.Compaction.CompactionMessageGroup> * Microsoft.ML.Tokenizers.Tokenizer -> Microsoft.Agents.AI.Compaction.CompactionMessageIndex
Public Sub New (groups As IList(Of CompactionMessageGroup), Optional tokenizer As Tokenizer = Nothing)
Parameters
- groups
- IList<CompactionMessageGroup>
The message groups.
- tokenizer
- Tokenizer
An optional tokenizer retained for computing token counts when adding new groups.