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 – The template string.

  • input_variables – The input variables.