Search Results for

    Show / Hide Table of Contents

    Class Token

    Inheritance
    object
    Token
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.xAI
    Assembly: Glitch9.AIDevKit.Provider.XAI.dll
    Syntax
    public class Token

    Properties

    | Edit this page View Source

    StringToken

    Required. The string of the token.

    Declaration
    [JsonProperty("string_token")]
    public string StringToken { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    TokenBytes

    Required. The bytes that constituted the token.

    Declaration
    [JsonProperty("token_bytes")]
    public int[] TokenBytes { get; set; }
    Property Value
    Type Description
    int[]
    | Edit this page View Source

    TokenId

    Required. The integer representation of the token for the model.

    Declaration
    [JsonProperty("token_id")]
    public int TokenId { get; set; }
    Property Value
    Type Description
    int

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation