langchain_core.prompts.string
.validate_jinja2¶
- langchain_core.prompts.string.validate_jinja2(template: str, input_variables: List[str]) None [source]¶
Validate that the input variables are valid for the template. Issues a warning if missing or extra variables are found.
- Parameters
template (str) – The template string.
input_variables (List[str]) – The input variables.
- Return type
None