format method

  1. @override
ChatMessage format([
  1. InputValues values = const {}
])
override

Format the prompt with the inputs.

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

Implementation

@override
ChatMessage format([final InputValues values = const {}]) {
  return ChatMessage.custom(prompt.format(values), role: role);
}