invoke method

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

Format the prompt given the input values and return a formatted prompt value.

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

Implementation

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