invoke method

  1. @override
Future<List<ChatMessage>> invoke(
  1. InputValues input, {
  2. BaseLangChainOptions? options,
})
override

Format the prompt with the inputs returning a list of messages.

  • input - Any arguments to be passed to the prompt template.

Implementation

@override
Future<List<ChatMessage>> invoke(
  final InputValues input, {
  final BaseLangChainOptions? options,
}) {
  return Future.value(formatMessages(input));
}