If the method succeeds, the return value is the maximum size of the
conversation history for the client session. If the method fails, the return
value is LLM_ERROR. To get extended error information, call
GetLastError.
The GetHistorySize method returns the maximum number of messages
which can be stored in the client conversation history. Each message represents a
single request submitted to the model and its associated response.
The conversation history is maintained on a per-session basis and reflects the
sequence of interactions performed using the client handle. Messages are
stored in chronological order, with new messages appended to the end of the
history. To retrieve the contents of a specific message and response
from the history, use either the GetMessage or
GetMessageById methods.
It is possible to disable the conversation history by calling the
SetHistorySize method and specifying a maximum history size of
zero. In this case, this method will always return zero.