Search Results for

    Show / Hide Table of Contents

    Class JambaChoice

    Inheritance
    object
    JambaChoice
    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 JambaChoice

    Properties

    | Edit this page View Source

    FinishReason

    Required. Why the message ended.

    stop ??The response ended naturally as a complete answer (due to end-of-sequence token) or because the model generated a stop sequence provided in the request.

    length ??The response ended by reaching max_tokens.

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

    Index

    Required. Zero-based index of the message in the list of messages. Note that this might not correspond with the position in the response list.

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

    Message

    Required. The message generated by the model. Includes two fields: role and content.

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

    ToolCalls

    Optional. Tool calls only occur if a tools parameter was specified in the request. These tool calls apply solely to the current message, and returned values should be added to the message thread in both the assistant message tool_calls fields and the tool message.

    Declaration
    [JsonProperty("tool_calls")]
    public ToolCall[] ToolCalls { get; set; }
    Property Value
    Type Description
    ToolCall[]

    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