Toggle Menu
Prev Up Next

# `langchain_core.prompts.string`.validate_jinja2

langchain_core.prompts.string.validate_jinja2(template: str, input_variables: List[str]) → None

  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