Search Results for

    Show / Hide Table of Contents

    Class CohereMessageDelta

    Inheritance
    object
    CohereMessageDelta
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Cohere
    Assembly: Glitch9.AIDevKit.Provider.Cohere.dll
    Syntax
    public sealed class CohereMessageDelta

    Properties

    | Edit this page View Source

    Error

    Optional. Error message if stream failed.

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

    FinishReason

    Optional. Reason the chat request finished.

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

    Index

    Optional. Index for certain streamed blocks (e.g., content, citation, tool).

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

    LogProbs

    Optional. Log probabilities for this content delta.

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

    Message

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

    Usage

    Optional. Usage data for the streamed response.

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

    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