Search Results for

    Show / Hide Table of Contents

    Class NativeConversationSession

    Holds stateful session data for LM Studio native /api/v1/chat. Lifecycle: Create (first request, no id) ??Continue (pass id) ??Clear (drop reference). Server-side sessions expire automatically; no explicit delete endpoint exists.

    Inheritance
    object
    NativeConversationSession
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.LMStudio
    Assembly: Glitch9.AIDevKit.Provider.LMStudio.dll
    Syntax
    public class NativeConversationSession

    Properties

    | Edit this page View Source

    ConversationId

    The conversation ID returned by the server on the first chat request. Pass this in subsequent requests to maintain conversation context.

    Declaration
    public string ConversationId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    IsActive

    Declaration
    public bool IsActive { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Clear()

    Drops the session reference client-side. The server-side session will expire automatically.

    Declaration
    public void Clear()
    | Edit this page View Source

    Initialize(string)

    Records the conversation ID from the server's first response.

    Declaration
    public void Initialize(string conversationId)
    Parameters
    Type Name Description
    string conversationId

    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