allMessages property

  1. @Deprecated("allMessages is deprecated, use messages instead")
List<GroqConversationItem> get allMessages

Returns a list of all messages in the conversation It is a list of GroqConversationItem 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

@Deprecated("allMessages is deprecated, use messages instead")

///Returns a list of all messages in the conversation
///It is a list of GroqConversationItem objects and switches from request to response
///Example:
///```dart
///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
///```
List<GroqConversationItem> get allMessages => _conversationItems;