formatMessages method
Format the prompt with the inputs returning a list of messages.
values
- Any arguments to be passed to the prompt template.
Implementation
@override
List<ChatMessage> formatMessages([
final Map<String, dynamic> values = const {},
]) {
return values[variableName] as List<ChatMessage>? ?? const [];
}