The MessageCount property returns the number of messages
currently stored in the client conversation history. Each message
represents a single prompt 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 control.
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 the GetMessage
method.
It is possible to disable the conversation history by setting the
HistorySize property to zero. In this case, this property
will always return zero.