Search Results for

    Show / Hide Table of Contents

    Class CohereChatEvent

    Inheritance
    object
    CohereChatEvent
    Implements
    IEventItem
    ITypedEvent
    ICompletableEvent
    IEvent
    IUsageProvider
    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 CohereChatEvent : IEventItem, ITypedEvent, ICompletableEvent, IEvent, IUsageProvider

    Fields

    | Edit this page View Source

    CitationEnd

    Declaration
    public const string CitationEnd = "citation-end"
    Field Value
    Type Description
    string
    | Edit this page View Source

    CitationStart

    Declaration
    public const string CitationStart = "citation-start"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentDelta

    Declaration
    public const string ContentDelta = "content-delta"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentEnd

    Declaration
    public const string ContentEnd = "content-end"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ContentStart

    Declaration
    public const string ContentStart = "content-start"
    Field Value
    Type Description
    string
    | Edit this page View Source

    Debug

    Declaration
    public const string Debug = "debug"
    Field Value
    Type Description
    string
    | Edit this page View Source

    MessageEnd

    Declaration
    public const string MessageEnd = "message-end"
    Field Value
    Type Description
    string
    | Edit this page View Source

    MessageStart

    Declaration
    public const string MessageStart = "message-start"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ToolCallDelta

    Declaration
    public const string ToolCallDelta = "tool-call-delta"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ToolCallEnd

    Declaration
    public const string ToolCallEnd = "tool-call-end"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ToolCallStart

    Declaration
    public const string ToolCallStart = "tool-call-start"
    Field Value
    Type Description
    string
    | Edit this page View Source

    ToolPlanDelta

    Declaration
    public const string ToolPlanDelta = "tool-plan-delta"
    Field Value
    Type Description
    string

    Properties

    | Edit this page View Source

    Delta

    Optional. The delta payload depending on the event type.

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

    Id

    Optional. Unique ID of the stream message.

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

    Type

    Required. The type of stream event.

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

    Methods

    | Edit this page View Source

    GetEventItemKey()

    Declaration
    public EventItemKey GetEventItemKey()
    Returns
    Type Description
    EventItemKey
    | Edit this page View Source

    GetEventType()

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

    GetUsage()

    Declaration
    public Usage GetUsage()
    Returns
    Type Description
    Usage
    | Edit this page View Source

    IsDone()

    Optional. Debug info for development. Prompt used during debug stream.

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

    IsValid()

    Declaration
    public bool IsValid()
    Returns
    Type Description
    bool

    Implements

    IEventItem
    ITypedEvent
    ICompletableEvent
    IEvent
    IUsageProvider

    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