parse_tag#

langchain_core.utils.mustache.parse_tag(template: str, l_del: str, r_del: str) Tuple[Tuple[str, str], str][source]#

Parse a tag from a template.

Parameters:
  • template (str) – The template.

  • l_del (str) – The left delimiter.

  • r_del (str) – The right delimiter.

Returns:

The tag and the template.

Return type:

Tuple[Tuple[str, str], str]

Raises: