Class TokenUnion
- Namespace
- Uralstech.UAI.LiteRTLM
public sealed class TokenUnion : LiteRTLMNativeHandle
- Inheritance
-
objectTokenUnion
- Inherited Members
Methods
GetIds(out ReadOnlySpan<int>)
Returns the token ids from a token union.
public int GetIds(out ReadOnlySpan<int> tokenIds)
Parameters
tokenIdsReadOnlySpan<int>The token IDs. Only valid for the lifetime of this TokenUnion object.
Returns
- int
0 on success, non-zero if the token union does not contain token ids.
GetString()
Returns the string value from a token union.
public string? GetString()
Returns
- string
The string value, or null if the token union does not contain a string value.
GetUnionType()
Returns the type of the token union.
public TokenUnionType GetUnionType()
Returns
- TokenUnionType
The type of the token union.
ReleaseUnmanagedResources()
protected override void ReleaseUnmanagedResources()