history property
Iterable<ChatMessage>
get
history
Returns an iterable of ChatMessage objects representing the chat history.
This getter provides access to the conversation history maintained by the LLM provider. The history typically includes both user messages and LLM responses in chronological order.
Returns an Iterable of ChatMessage objects.
Implementation
Iterable<ChatMessage> get history;
set
history
(Iterable<ChatMessage> history)
Sets the chat history to the provided messages.
This setter allows updating the conversation history maintained by the LLM
provider. The provided history replaces the existing history with a new
set of messages.
history is an Iterable of ChatMessage objects representing the new
chat history.
Implementation
set history(Iterable<ChatMessage> history);