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 containing the session state.
Exceptions
- InvalidOperationException
Thrown if there is no conversation history to save.
SaveSession(string)
Saves the current chat session state to a specified file.
public void SaveSession(string path)
Parameters
path
stringThe file path where the session data should be written.
Exceptions
- InvalidOperationException
Thrown if there is no conversation history to save.