SocketTools .NET Edition

LlmClient.ClearHistory Method 

Removes all messages and responses from the client history.

[Visual Basic]
Public Function ClearHistory() As Boolean
[C#]
public bool ClearHistory();

Return Value

A value of true is returned if the method succeeds. If the method fails, it will return false.

Remarks

The ClearHistory method removes all messages and responses stored in the conversation history for the specified client session. This can be used to begin a new conversation while preserving the current connection, provider settings, model selection, timeout, system prompt and other session options.

After the history has been cleared, subsequent calls to SendMessage will not include any previous messages from the conversation history.

See Also