Search Results for

    Show / Hide Table of Contents

    Class ResponseEventBase

    Base class for all response stream events.

    Inheritance
    object
    ResponseEventBase
    KeepaliveEvent
    OutputItemEventBase
    ResponseError
    ResponseLifecycleEvent
    Implements
    ISequencableEvent
    IEvent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Responses
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public abstract class ResponseEventBase : ISequencableEvent, IEvent

    Properties

    | Edit this page View Source

    SequenceNumber

    The sequence number for this event.

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

    Type

    The type of the event.

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

    Methods

    | Edit this page View Source

    BuildSequenceKey()

    Returns the logical ordering key for this event. If null/empty -> sequencer should treat it as "no sequencing key".

    Declaration
    protected virtual string BuildSequenceKey()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetSequenceInfo()

    Declaration
    public StreamSequenceInfo GetSequenceInfo()
    Returns
    Type Description
    StreamSequenceInfo
    | Edit this page View Source

    IsValid()

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

    ResolveDone()

    Determines whether this event represents a logical completion for its key stream.

    Declaration
    protected virtual bool ResolveDone()
    Returns
    Type Description
    bool

    Implements

    ISequencableEvent
    IEvent

    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