getChatResponseFromMessage method

Future<ChatResponse> getChatResponseFromMessage(
  1. ChatMessage message, {
  2. ChatOptions? options,
  3. CancellationToken? cancellationToken,
})

Sends a single message and returns the response.

Implementation

Future<ChatResponse> getChatResponseFromMessage(
  ChatMessage message, {
  ChatOptions? options,
  CancellationToken? cancellationToken,
}) =>
    getChatResponse(
      messages: [message],
      options: options,
      cancellationToken: cancellationToken,
    );