Search Results for

    Show / Hide Table of Contents

    Class JambaStreamEvent

    Inheritance
    object
    JambaStreamEvent
    Implements
    IProjector<ChatCompletionEvent>
    ICompletableEvent
    IEvent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AI21Labs
    Assembly: Glitch9.AIDevKit.Provider.AI21.dll
    Syntax
    public sealed class JambaStreamEvent : IProjector<ChatCompletionEvent>, ICompletableEvent, IEvent

    Properties

    | Edit this page View Source

    Choices

    Required. An array with one object containing the following fields.

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

    Id

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

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

    Usage

    Optional. The token counts for this request. Will be null except for the last chunk which contains the usage statistics.

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

    Methods

    | Edit this page View Source

    FirstOutputText()

    Declaration
    public string FirstOutputText()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetGeneratedTexts()

    Declaration
    public List<string> GetGeneratedTexts()
    Returns
    Type Description
    List<string>
    | Edit this page View Source

    IsDone()

    Declaration
    public bool IsDone()
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsValid()

    Declaration
    public bool IsValid()
    Returns
    Type Description
    bool
    | Edit this page View Source

    Project()

    Declaration
    public ChatCompletionEvent Project()
    Returns
    Type Description
    ChatCompletionEvent

    Implements

    IProjector<TOut>
    ICompletableEvent
    IEvent

    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