-
Notifications
You must be signed in to change notification settings - Fork 1.5k
en plugin dev migration
langbot-wiki-sync[bot] edited this page Jul 29, 2026
·
1 revision
This tutorial highlights certain considerations. Please read the current version plugin tutorial first, then use this document as a reference for plugin migration.
Note
Plugin characteristics:
- Main time period: 2024.2 ~ 2025.8
- Registration method: Using
@handlerdecorators to register event listeners and@llm_funcdecorators to register content functions (tools) in the plugin class inmain.py; all handler functions are asynchronous functions (async def)
- Plugin and component registration method: Changed from the previous single plugin class decorator registration method to manifest file registration method. See Manifest File; and separated different types of components independently. For details, see Adding Components.
- Message chain entities: Now refactored. The construction method of each message chain element now requires explicit passing of named parameters. See Message Platform Entities.
- Event listeners: Provides backward compatibility, but no longer provides
query: Queryobject in context. For details, see Pipeline Events. - Command components: Now refactored. See Command Components.
Note
Plugin characteristics:
- Main time period: 2023.1 ~ 2024.2
- Registration method: Using
@ondecorators to register event listeners and@funcdecorators to register content functions (tools) in the plugin class inmain.py; all handler functions are synchronous functions (def)
- Synchronous to asynchronous: Plugin runtime has now changed to fully asynchronous (based on asyncio). Please change all plugin code involving IO operations to asynchronous writing.
- For detailed content, please refer to the above 3.x asynchronous plugin migration guide.
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