Property TokenCount
- Namespace
- LMKit.TextGeneration.Chat
- Assembly
- LM-Kit.NET.dll
TokenCount
Indicates the total count of tokens needed by the associated language model to tokenize the content of this instance.
public int TokenCount { get; }
Property Value
Examples
history.AddMessage(AuthorRole.User, "Tell me about neural networks.");
Console.WriteLine($"Current token usage: {history.TokenCount}");