allMessages property

List<GroqConversationItem> get allMessages

Returns a list of all messages in the conversation It is a list of GroqMessage objects and switches from request to response Example:

final conversation = chat.allMessages;
print(conversation.first.request.message); //prints the first message in the conversation
print(conversation.first.response.choices.first.message); //prints the first response in the conversation

Implementation

List<GroqConversationItem> get allMessages => _conversationItems;