AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class ChatCompletion

    Inheritance
    object
    ModelResponse
    ChatCompletion
    Implements
    IGenerated
    Inherited Members
    ModelResponse.Id
    ModelResponse.Object
    ModelResponse.Model
    ModelResponse.CreatedAt
    ModelResponse.Metadata
    ModelResponse.Usage
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class ChatCompletion : ModelResponse, IGenerated

    Properties

    Choices

    A list of chat completion choices. Can be more than one if n is greater than 1.

    If this is 'ChatCompletionChunk' which is a streamed response, This can also be empty for the last chunk if you set stream_options: {"include_usage": true}.

    Declaration
    public ChatChoice[] Choices { get; set; }
    Property Value
    Type Description
    ChatChoice[]

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    SystemFingerprint

    This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

    Declaration
    public string SystemFingerprint { get; set; }
    Property Value
    Type Description
    string

    Methods

    GetContents()

    Declaration
    public Content[] GetContents()
    Returns
    Type Description
    Content[]

    GetToolCalls()

    Declaration
    public ToolCall[] GetToolCalls()
    Returns
    Type Description
    ToolCall[]

    ToContent()

    Declaration
    public Content ToContent()
    Returns
    Type Description
    Content

    ToDelta()

    Declaration
    public ChatDelta ToDelta()
    Returns
    Type Description
    ChatDelta

    ToMessage()

    Declaration
    public ChatMessage ToMessage()
    Returns
    Type Description
    ChatMessage

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    ToTextDelta()

    Declaration
    public string ToTextDelta()
    Returns
    Type Description
    string

    Operators

    implicit operator Content(ChatCompletion)

    Declaration
    public static implicit operator Content(ChatCompletion chat)
    Parameters
    Type Name Description
    ChatCompletion chat
    Returns
    Type Description
    Content

    implicit operator string(ChatCompletion)

    Declaration
    public static implicit operator string(ChatCompletion chat)
    Parameters
    Type Name Description
    ChatCompletion chat
    Returns
    Type Description
    string

    Implements

    IGenerated
    In this article
    Back to top Generated by DocFX