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.
Inherited Members
Namespace: Glitch9.AIDevKit.LMStudio
Assembly: Glitch9.AIDevKit.Provider.LMStudio.dll
Syntax
public class NativeConversationSession
Properties
| Edit this page View SourceConversationId
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 |
IsActive
Declaration
public bool IsActive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceClear()
Drops the session reference client-side. The server-side session will expire automatically.
Declaration
public void Clear()
Initialize(string)
Records the conversation ID from the server's first response.
Declaration
public void Initialize(string conversationId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | conversationId |