getChatResponseAsync method

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

Implementation

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