mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-06 07:44:04 +08:00
docs(develop): list all six plugin component types (add KnowledgeEngine/Parser/Page)
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user