BaseChatPromptTemplate constructor
const
BaseChatPromptTemplate({
- required Set<
String> inputVariables, - PartialValues? partialVariables,
Base class for chat prompt templates.
It exposes two methods:
- format: returns a String prompt given a set of input values.
- formatPrompt: returns a PromptValue given a set of input values.
- formatMessages: returns a list of ChatMessage given a set of input values.
Implementation
const BaseChatPromptTemplate({
required super.inputVariables,
super.partialVariables,
});