{
  "schema": "leumas.docs.page/1",
  "id": "pkg:@leumas/chatbots",
  "slug": "engines/chatbots",
  "kind": "capabilities",
  "bucket": "package",
  "title": "@leumas/chatbots",
  "name": "@leumas/chatbots",
  "eyebrow": null,
  "chip": null,
  "summary": "Programmable chatbots — persona + toolbanks + functioncalls (like leumas-cursor-agent-mvp). Programmed & priced in Studio, run on the Leviathan runtime.",
  "keywords": [
    "chatbots",
    "leumas-cursor-agent-mvp",
    "toolbanks",
    "programmable",
    "persona",
    "chatbots api",
    "leumas chatbots",
    "functioncalls"
  ],
  "audience": "both",
  "funnel": {
    "product": null,
    "cta": null
  },
  "body": "# @leumas/chatbots\n\nProgrammable chatbots — **persona + toolbanks + functioncalls**, like the leumas-cursor-agent-mvp,\nbuilt into Studio. Stored as the dynamic `chatbots` collection (CRUD via `/db/chatbots`), run on the\n**Leviathan** runtime.\n\n- **functioncalls** — capability adapters / MCP tools a bot may call (from `a.functioncalls`).\n- **toolbanks** — named groups of functioncalls you assign to a bot.\n- **Studio → Chatbots** — create, program (persona + banks + tools + memory), price, assign.\n\n```js\nimport { defineChatbot, createChatbotRouter } from '@leumas/chatbots';\n// mounted in leumas-api:\napp.use('/api/chatbots', createChatbotRouter({ getBot: (id) => connector.get().getById('chatbots', id), complete }));\n// run:  POST /api/chatbots/:id/run  { messages:[{role,content}] } -> { reply, tokens, cost }\n```\n\n`complete` is the LLM adapter — a stub today; wire `a.ollama` / a provider next (roadmap §6). Price a\nturn by passing `gate: requirePassNode()`.\n",
  "source": {
    "path": "shared/engines/chatbots/README.md",
    "blobSha": "",
    "commit": "",
    "committedAt": "",
    "provenance": "no-git",
    "bytes": 1174,
    "hash": "e483fea7c77c85bebed80a99e678bdbf5d06c195"
  },
  "urls": {
    "html": "/p/engines/chatbots",
    "json": "/docs/engines/chatbots.json",
    "md": "/docs/engines/chatbots.md"
  },
  "links": {
    "composes": [
      "pkg:@leumas/capability-sdk",
      "pkg:@leumas/providers",
      "pkg:@leumas/schemas"
    ],
    "usedBy": [
      "pkg:@leumas/leviathan-runtime",
      "pkg:@leumas/studio"
    ],
    "product": [
      "pkg:@leumas/studio"
    ],
    "howTo": [
      "how-to:programmability"
    ],
    "skills": [
      "skill:leumas-lmx#lmai"
    ]
  },
  "exports": null
}
