PromptCondition constructor
const
PromptCondition({
- required bool condition(),
- required BasePromptTemplate prompt,
Condition for a prompt.
The following pre-defined conditions are available:
- PromptCondition.isLlm: checks that the language model is an LLM.
- PromptCondition.isChatModel: checks that the language model is a chat model.
Implementation
const PromptCondition({
required this.condition,
required this.prompt,
});