Property TokenCount
TokenCount
Gets the estimated token count for this document.
public int TokenCount { get; }
Property Value
Examples
var result = await chat.LoadDocumentAsync("report.pdf");
Console.WriteLine($"Token count: {result.TokenCount}");
Remarks
For FullDocument, this represents tokens consumed from FullDocumentTokenBudget. For PassageRetrieval, this represents the total document size before chunking.