Search Results for

    Show / Hide Table of Contents

    Class ChatCompletionChoice

    Inheritance
    object
    ChatCompletionChoiceBase
    ChatCompletionChoice
    Implements
    ITextSource
    Inherited Members
    ChatCompletionChoiceBase.Index
    ChatCompletionChoiceBase.Logprobs
    ChatCompletionChoiceBase.FinishReason
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class ChatCompletionChoice : ChatCompletionChoiceBase, ITextSource

    Properties

    | Edit this page View Source

    Annotations

    OpenAI has annotations inside Message > Content > TextContent > Annotations. But other providers don't usually have annotations on every message content and they rather have it on choice level. There is no safe way to map annotations inside message content for all providers, so we put it here on choice level.

    Declaration
    [JsonIgnore]
    public List<Annotation> Annotations { get; set; }
    Property Value
    Type Description
    List<Annotation>
    | Edit this page View Source

    Message

    A chat completion message generated by the model.

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

    Text

    Only used for legacy model requests.

    Declaration
    [JsonProperty("text")]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetTextSource()

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    ITextSource

    Extension Methods

    ChatCompletionExtensions.ToChatChoice(ChatCompletionChoice)
    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