check_valid_template#
- langchain_core.prompts.string.check_valid_template(template: str, template_format: str, input_variables: List[str]) None [source]#
Check that template string is valid.
- Parameters:
template (str) β The template string.
template_format (str) β The template format. Should be one of βf-stringβ or βjinja2β.
input_variables (List[str]) β The input variables.
- Raises:
ValueError β If the template format is not supported.
ValueError β If the prompt schema is invalid.
- Return type:
None