Search Results for

    Show / Hide Table of Contents

    Class LMStudioNativeStreamEvent

    Stream event from native /api/v1/chat (Track B, stream=true). The final event includes "stats"; intermediate events contain delta content.

    Inheritance
    object
    LMStudioNativeStreamEvent
    Implements
    IProjector<MessageDelta>
    ICompletableEvent
    IEvent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.LMStudio
    Assembly: Glitch9.AIDevKit.Provider.LMStudio.dll
    Syntax
    public sealed class LMStudioNativeStreamEvent : IProjector<MessageDelta>, ICompletableEvent, IEvent

    Properties

    | Edit this page View Source

    Choices

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

    ConversationId

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

    Stats

    Declaration
    [JsonProperty("stats")]
    public LMStudioResponseStats Stats { get; set; }
    Property Value
    Type Description
    LMStudioResponseStats

    Methods

    | Edit this page View Source

    IsDone()

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

    IsValid()

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

    Project()

    Declaration
    public MessageDelta Project()
    Returns
    Type Description
    MessageDelta

    Implements

    IProjector<TOut>
    ICompletableEvent
    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