getLangChainTemplate
method returns a PromptTemplate
object for simple templates, which can be used directly in chains or to format prompts.getLangChainTemplate
function directly returns a ChatPromptTemplate
object for chat messages templates, which can be used to format messages.