UNPKG

mlld

Version:

mlld: llm scripting language

23 lines (18 loc) 687 B
--- id: modules-import-templates title: Template Collections brief: Import directories of template files category: modules parent: importing tags: [modules, imports, templates, collections] related: [modules-import-types, templates-basics] related-code: [interpreter/eval/import.ts, core/resolvers/TemplateCollectionResolver.ts] updated: 2026-01-05 --- **Template collections:** ```mlld import templates from "@base/agents" as @agents(message, context) show @agents["alice"](@msg, @ctx) >> agents/alice.att show @agents.support["helper"](@msg, @ctx) >> agents/support/helper.att ``` Template collections require parameters. All templates in directory share the signature.