call method
Runs the chat model on the given messages and returns a chat message.
messages
The messages to pass into the model.options
Generation options to pass into the Chat Model.
Example:
final result = await chat([ChatMessage.humanText('say hi!')]);
Implementation
Future<AIChatMessage> call(
final List<ChatMessage> messages, {
final Options? options,
}) async {
final result = await invoke(PromptValue.chat(messages), options: options);
return result.output;
}