getChatResponse method

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

Implementation

Future<String?> getChatResponse(
        {required Iterable<Message> messages, int chatContextLength = 3}) =>
    getResponse(
        prompt:
            messages.transformToChatPrompt(contextLength: chatContextLength));