history property
The content that has been successfully sent to, or received from, the generative model.
If there are outstanding requests from calls to sendMessage or sendMessageStream, these will not be reflected in the history. Messages without a candidate in the response are not recorded in history, including the message sent to the model.
Implementation
Iterable<Content> get history => _history.skip(0);