will be compared against the variables present in the template string during instantiation, raising an exception if
there is a mismatch. For example:from langchain.prompts import PromptTemplateinvalid_prompt = PromptTemplate(    input_variables=["adjective"],    template="Tell me a {adjective} joke about {content}.")    ---------------------------------------------------------------------------    ValidationError                           Traceback (most recent call last)    Cell In[19], line 3          1 from langchain.prompts import PromptTemplate    ----> 3 invalid_prompt = PromptTemplate(          4     input_variables=["adjective"],          5     template="Tell me a {adjective} joke about {content}."          6 )    File ~/langchain/libs/langchain/langchain/load/serializable.py:97, in Serializable.__init__(self, **kwargs)         96 def __init__(self, **kwargs: Any) -> None:    ---> 97     super().__init__(**kwargs)         98     self._lc_kwargs = kwargs    File ~/langchain/.venv/lib/python3.9/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__()    ValidationError: 1 validation error for PromptTemplate    __root__      Invalid prompt schema; check for mismatched or missing input parameters. 'content' (type=value_error)You can create custom prompt templates that format the prompt in any way you want.
For more information, see Custom Prompt Templates.ChatPromptTemplate‚ÄãThe prompt to chat models is a list of chat messages.Each chat message is associated with content, and an additional parameter called role.
Prompt templates are pre-defined recipes for generating prompts for language models.
Prompt templates are pre-defined recipes for generating prompts for language models. ->: will be compared against the variables present in the template string during instantiation, raising an exception if
there is a mismatch. For example:from langchain.prompts import PromptTemplateinvalid_prompt = PromptTemplate(    input_variables=["adjective"],    template="Tell me a {adjective} joke about {content}.")    ---------------------------------------------------------------------------    ValidationError                           Traceback (most recent call last)    Cell In[19], line 3          1 from langchain.prompts import PromptTemplate    ----> 3 invalid_prompt = PromptTemplate(          4     input_variables=["adjective"],          5     template="Tell me a {adjective} joke about {content}."          6 )    File ~/langchain/libs/langchain/langchain/load/serializable.py:97, in Serializable.__init__(self, **kwargs)         96 def __init__(self, **kwargs: Any) -> None:    ---> 97     super().__init__(**kwargs)         98     self._lc_kwargs = kwargs    File ~/langchain/.venv/lib/python3.9/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__()    ValidationError: 1 validation error for PromptTemplate    __root__      Invalid prompt schema; check for mismatched or missing input parameters. 'content' (type=value_error)You can create custom prompt templates that format the prompt in any way you want.
For more information, see Custom Prompt Templates.ChatPromptTemplate‚ÄãThe prompt to chat models is a list of chat messages.Each chat message is associated with content, and an additional parameter called role.