PromptCondition.isChatModel constructor
PromptCondition.isChatModel(
- BasePromptTemplate prompt
A prompt for a language mode that is a chat model.
Implementation
factory PromptCondition.isChatModel(final BasePromptTemplate prompt) {
return PromptCondition(
condition: (final BaseLanguageModel llm) => llm is BaseChatModel,
prompt: prompt,
);
}