letr c7d47add23 fix: simplify register_task completion handling (#27)
* fix: simplify register_task completion handling

Remove duplicated cancellation logging in Context.register_task while keeping Future inputs compatible with asyncio.create_task semantics. Add regression coverage for coroutine, Future, cancellation, and failure paths.

* fix: prioritize local src in tests_v4

Ensure tests_v4 always imports the working tree package by moving src to sys.path[0] even when another checkout or installed copy is already present.
2026-03-19 00:22:35 +08:00
2026-03-14 21:09:48 +08:00
2025-11-11 00:23:48 +08:00

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
S
Description
✨ 一站式 LLM 聊天机器人平台及开发框架 ✨ 支持 QQ、QQ频道、Telegram、企微、飞书、钉钉 | 知识库、MCP 服务器、OpenAI、DeepSeek、Gemini、硅基流动、月之暗面、Ollama、OneAPI、Dify
Readme AGPL-3.0
169 MiB
Languages
Python 58.9%
JavaScript 19.4%
Vue 16.9%
TypeScript 4.2%
HTML 0.2%
Other 0.4%