UNPKG

@terranlabs/appflow-langchain

Version:

Use langchain in appflow

14 lines (10 loc) 262 B
const mustache = require('mustache'); class PromptTemplate { constructor({ template }) { this.template = template; } format({ context }) { return mustache.render(this.template, { context }); } } module.exports = PromptTemplate