parse_tag#
- langchain_core.utils.mustache.parse_tag(
- template: str,
- l_del: str,
- r_del: str,
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:
ChevronError – If the tag is unclosed.
ChevronError – If the set delimiter tag is unclosed.