mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
- 将 Rust 核心从 astrbot/rust/ 迁移至 rust/ - 新增 a2a.rs: Agent-to-Agent 通信协议 - 新增 abp.rs: ABP 插件协议客户端 - 新增 server.rs: WebSocket/HTTP 服务器 - 更新 Cargo.toml 依赖 (futures-util) - 重构 config.rs, orchestrator.rs, protocol.rs 等核心模块
17 lines
658 B
Python
17 lines
658 B
Python
from typing import Any
|
|
|
|
class AstrbotOrchestrator:
|
|
def start(self) -> None: ...
|
|
def stop(self) -> None: ...
|
|
def is_running(self) -> bool: ...
|
|
def register_star(self, name: str, handler: str) -> None: ...
|
|
def unregister_star(self, name: str) -> None: ...
|
|
def list_stars(self) -> list[str]: ...
|
|
def record_activity(self) -> None: ...
|
|
def get_stats(self) -> dict[str, Any]: ...
|
|
def set_protocol_connected(self, protocol: str, connected: bool) -> None: ...
|
|
def get_protocol_status(self, protocol: str) -> dict[str, Any] | None: ...
|
|
|
|
def get_orchestrator() -> AstrbotOrchestrator: ...
|
|
def cli(args: list[str]) -> None: ...
|