Dummy Prompt Template#

Dummy template for when you need to provide a template but don’t care for a real one.

This errors out on attempted usage so that you can be sure you’re not actually using it.

[2]:
from langchain_contrib.prompts import DummyPromptTemplate

try:
    template = DummyPromptTemplate()
    template.format(thing="one")
except Exception as e:
    print(f"Error: {e}")
Error: You're using the dummy prompt template.