mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
47698448dd3993d9afdd0936cc4b37a7dac7073e
- Introduced CONVERSATION_GET_CURRENT_INPUT_SCHEMA and CONVERSATION_GET_CURRENT_OUTPUT_SCHEMA for handling current conversation requests. - Implemented _conversation_get_current method in BuiltinCapabilityRouterMixin to manage current conversation retrieval and creation. - Registered the new capability in CoreCapabilityBridge. - Enhanced HandlerDispatcher to inject provider request, LLM response, and event result payloads into the event handling process. - Updated tests to validate the new functionality and ensure proper payload handling.
AstrBot SDK
AstrBot 插件开发 SDK,提供 v4 runtime、worker protocol 和插件工具链。
安装
pip install astrbot-sdk
开发安装
# 克隆仓库后
pip install -e .
# 或使用 uv
uv sync
目录结构
astrbot-sdk/
├── src/
│ └── astrbot_sdk/ # SDK 主包
├── pyproject.toml
└── README.md
Languages
Python
61.2%
Vue
19.5%
JavaScript
13.6%
TypeScript
4.8%
HTML
0.3%
Other
0.6%