getChatResponseAsync method

Stream<String?> getChatResponseAsync({
  1. required Iterable<Message> messages,
  2. int chatContextLength = 4,
})

Implementation

Stream<String?> getChatResponseAsync(
    {required Iterable<Message> messages, int chatContextLength = 4}) {
  return getResponseAsync(
      prompt:
          messages.transformToChatPrompt(contextLength: chatContextLength));
}