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: