getChatResponseFromText method
Future<ChatResponse>
getChatResponseFromText(
- String message, {
- ChatOptions? options,
- CancellationToken? cancellationToken,
Sends a single user text message and returns the response.
Implementation
Future<ChatResponse> getChatResponseFromText(
String message, {
ChatOptions? options,
CancellationToken? cancellationToken,
}) =>
getChatResponse(
messages: [
ChatMessage.fromText(ChatRole.user, message),
],
options: options,
cancellationToken: cancellationToken,
);