mustache_schema#

langchain_core.prompts.string.mustache_schema(template: str) Type[BaseModel][source]#

Get the variables from a mustache template.

Parameters:

template (str) – The template string.

Returns:

The variables from the template as a Pydantic model.

Return type:

Type[BaseModel]