docs(develop): list all six plugin component types (add KnowledgeEngine/Parser/Page)

This commit is contained in:
RockChinQ
2026-06-07 09:02:14 -04:00
parent 2b0c43df98
commit e173af9094
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -62,11 +62,14 @@ The core backend package `src/langbot/pkg/` is split into loosely-coupled submod
| `skill` / `rag` / `vector` | Skill, retrieval-augmented generation, and vector-store capabilities. |
| `persistence` | ORM entity definitions and Alembic migrations; a single set of scripts works on both SQLite and PostgreSQL. |
On the plugin side (defined in `langbot-plugin-sdk`), components are organized around a single `BasePlugin`:
On the plugin side (defined in `langbot-plugin-sdk`, generated by `lbp comp`), components are organized around a single `BasePlugin`. Six component types are currently supported:
- **Command**: user-triggered actions (e.g. `!weather tokyo`).
- **Tool**: functions the LLM calls during Agent execution (e.g. fetch weather, query a database).
- **EventListener**: handlers for events in the message pipeline (e.g. auto-reply, content filtering).
- **KnowledgeEngine**: a custom knowledge-base retrieval/integration implementation used by RAG.
- **Parser**: custom parsing of messages/content.
- **Page**: a custom web page provided by the plugin, embeddable in the LangBot admin panel.
Each plugin runs in its own process, with its lifecycle managed by the plugin runtime (discover → install deps → load → initialize → register components → ready → terminate).