Search Results for

    Show / Hide Table of Contents

    Class JambaResponse

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

    Properties

    | Edit this page View Source

    Choices

    Required. One or more responses, depending on the n parameter from the request.

    Declaration
    [JsonProperty("choices")]
    public JambaChoice[] Choices { get; set; }
    Property Value
    Type Description
    JambaChoice[]
    | Edit this page View Source

    Id

    Required. Unique ID for each request (not message). Same ID for all responses in a streaming response.

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

    Usage

    Required. The token counts for this request. Per-token billing is based on the prompt token and completion token counts and rates.

    Declaration
    [JsonProperty("usage")]
    public Usage Usage { get; set; }
    Property Value
    Type Description
    Usage

    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