getChatResponse method

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

Implementation

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