mustache_formatter#

langchain_core.prompts.string.mustache_formatter(template: str, **kwargs: Any) str[source]#

Format a template using mustache.

Parameters:
  • template (str) – The template string.

  • **kwargs (Any) – The variables to format the template with.

Returns:

The formatted string.

Return type:

str