Class LiteRtTokenUnion
- Namespace
- LiteRtLmSharp
- Assembly
- LiteRtLmSharp.dll
A single model start (BOS) or stop (EOS) token, as reported by GetStartToken() / GetStopTokens(). A model expresses each such token either as a literal Text string or as a sequence of token Ids; Kind says which. Use it to recognize when generated output reaches a stop token, or to compare against Tokenize(string) output.
public sealed class LiteRtTokenUnion
- Inheritance
-
LiteRtTokenUnion
- Inherited Members
Properties
Ids
public IReadOnlyList<int> Ids { get; }
Property Value
Kind
public LiteRtTokenKind Kind { get; }
Property Value
Text
public string? Text { get; }
Property Value
Methods
ToString()
A readable form: the string itself, or the id list rendered as [a, b, c].
public override string ToString()