genai.extensions.langchain.template module#

genai.extensions.langchain.template.from_langchain_template(template)[source]#

Convert langchain template variables to mustache template variables

Parameters:

template (str) –

Return type:

str

genai.extensions.langchain.template.to_langchain_template(template)[source]#

Convert mustache template variables to langchain template variables

Parameters:

template (str) –

Return type:

str