update method
Implementation
void update(List<ChatMessage> newMessages, ChatMessage assistantResponse) {
_history.addAll([...newMessages, assistantResponse]);
}
void update(List<ChatMessage> newMessages, ChatMessage assistantResponse) {
_history.addAll([...newMessages, assistantResponse]);
}