Spaces:
Runtime error
Runtime error
"""Prompt template classes.""" | |
from langchain.prompts.base import BasePromptTemplate, StringPromptTemplate | |
from langchain.prompts.chat import ( | |
AIMessagePromptTemplate, | |
ChatMessagePromptTemplate, | |
ChatPromptTemplate, | |
HumanMessagePromptTemplate, | |
MessagesPlaceholder, | |
SystemMessagePromptTemplate, | |
) | |
from langchain.prompts.few_shot import FewShotPromptTemplate | |
from langchain.prompts.few_shot_with_templates import FewShotPromptWithTemplates | |
from langchain.prompts.loading import load_prompt | |
from langchain.prompts.prompt import Prompt, PromptTemplate | |
__all__ = [ | |
"BasePromptTemplate", | |
"StringPromptTemplate", | |
"load_prompt", | |
"PromptTemplate", | |
"FewShotPromptTemplate", | |
"Prompt", | |
"FewShotPromptWithTemplates", | |
"ChatPromptTemplate", | |
"MessagesPlaceholder", | |
"HumanMessagePromptTemplate", | |
"AIMessagePromptTemplate", | |
"SystemMessagePromptTemplate", | |
"ChatMessagePromptTemplate", | |
] | |