langchain_core.utils.mustache
.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
ChevronError β If the tag is unclosed.
ChevronError β If the set delimiter tag is unclosed.