-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ja plugin dev components add
langbot-wiki-sync[bot] edited this page Jul 29, 2026
·
1 revision
プラグインは、LangBotにさまざまな機能を提供する1つ以上のコンポーネントで構成されています。現在サポートされているコンポーネントタイプには次のものがあります:
- イベントリスナー(EventListener): パイプライン実行中のイベントをリッスンし、コンテキストやパイプラインを変更します。
- コマンド(Command):
!(または他の設定されたプレフィックス)で始まるユーザーコマンドメッセージによってトリガーされます。 - ツール(Tool): LangBotの組み込みLocal Agentの実行中にLLMによって呼び出されます。
- RAGエンジン(KnowledgeEngine): LangBotにナレッジベースのインデックス作成と検索機能を提供し、ドキュメントの取り込み、検索、削除を管理します。
- パーサー(Parser): ドキュメント取り込みの前にPDF、Wordなどのバイナリファイルを構造化テキストに解析し、RAGエンジンで使用できるようにします。
- ページ(Page): LangBot WebUIのサイドバーにカスタムビジュアルページを登録し、管理パネルやデータ表示などのインタラクティブなインターフェースを提供します。
プラグインディレクトリでコマンドを実行します:
lbp comp <component_type>例えば、イベントリスナーを追加する場合:
lbp comp EventListenerプロンプトに従って、コンポーネント設定(ある場合)を入力します。
➜ HelloPlugin > lbp comp EventListener
Generating component EventListener...
Component EventListener generated successfully.
組件 EventListener 生成成功。
➜ HelloPlugin >Note
CLIはプラグインディレクトリにcomponentsディレクトリを生成し、その中に対応するコンポーネントディレクトリを作成します。
.
├── assets
│ └── icon.svg
├── components
│ ├── __init__.py
│ └── event_listener
│ ├── __init__.py
│ ├── default.py
│ └── default.yaml
├── main.py
├── manifest.yaml
├── README.md
└── requirements.txt
同時に、プラグインのmanifest.yamlにコンポーネント検出設定が追加されます:
...
components:
EventListener:
fromDirs:
- path: components/event_listener/
...コンポーネントを削除するには、対応する情報を手動で削除できます。
各コンポーネントの詳細な使用方法については、次を参照してください:
Automatically synchronized from langbot-app/langbot-wiki.
简体中文
指南
开发者
- 插件开发
- 插件 SDK API
- 核心开发
API 参考
- Service API
English
Guides
Developers
-
Plugin Development
- Plugin Development Tutorial
- Completing Plugin Configuration Information
- Plugin Directory Structure
- Component Development
- Code Style Guide
- Migration Guide
- Publish Plugin
- Plugin SDK API
- Core Development
API Reference
- Service API