mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 09:40:30 +08:00
39 lines
751 B
Python
39 lines
751 B
Python
"""旧版 ``astrbot.api`` 导入路径兼容入口。"""
|
|
|
|
from astrbot import logger
|
|
from astrbot.core import AstrBotConfig, html_renderer, sp
|
|
from astrbot_sdk.api import (
|
|
components,
|
|
event,
|
|
message,
|
|
message_components,
|
|
star,
|
|
)
|
|
from astrbot_sdk.api.event.filter import llm_tool
|
|
|
|
from . import platform, provider, util
|
|
|
|
|
|
def agent(*args, **kwargs):
|
|
raise NotImplementedError(
|
|
"astrbot.api.agent() 尚未在 v4 兼容层实现,请改用新版 capability/handler 结构。"
|
|
)
|
|
|
|
|
|
__all__ = [
|
|
"AstrBotConfig",
|
|
"agent",
|
|
"components",
|
|
"event",
|
|
"html_renderer",
|
|
"llm_tool",
|
|
"logger",
|
|
"message",
|
|
"message_components",
|
|
"platform",
|
|
"provider",
|
|
"sp",
|
|
"star",
|
|
"util",
|
|
]
|