Table of Contents

Method SaveSession

Namespace
LMKit.TextGeneration
Assembly
LM-Kit.NET.dll

SaveSession()

Saves the current chat session state and returns it as a byte array.

public byte[] SaveSession()

Returns

byte[]

A byte array representing the saved state of the chat session.

Exceptions

InvalidOperationException

Thrown when the conversation history is empty.

SaveSession(string)

Saves the current chat session state to a specified file path.

public void SaveSession(string path)

Parameters

path string

The file path where the chat session state will be saved.

Exceptions

InvalidOperationException

Thrown when the conversation history is empty.