Files
AstrBot/astrbot/rust/_core.pyi
LIghtJUNction bc01532e59 fix(provider): filter abort_signal from payloads to avoid JSON serialize error
`abort_signal` (asyncio.Event) is passed via **kwargs into payloads during
tool_call streaming, causing "Object of type Event is not JSON serializable"
when the OpenAI client tries to serialize the request body.

Regression test added: test_prepare_chat_payload_strips_non_json_serializable_kwargs
2026-03-28 01:15:21 +08:00

38 lines
1.3 KiB
Python

from typing import Any
class PyOrchestrator:
def __init__(self) -> None: ...
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, py: Any) -> dict[str, Any]: ...
def set_protocol_connected(self, protocol: str, connected: bool) -> None: ...
def get_protocol_status(
self, protocol: str, py: Any
) -> dict[str, Any] | None: ...
class PyAbpClient:
def __init__(self) -> None: ...
def is_connected(self) -> bool: ...
def register_in_process_plugin(self, name: str, version: str) -> None: ...
def register_out_of_process_plugin(
self,
name: str,
version: str,
command: str | None = None,
transport: str | None = None,
) -> None: ...
def unregister_plugin(self, name: str) -> None: ...
def list_plugins(self) -> list[str]: ...
def get_plugin_info(self, name: str, py: Any) -> dict[str, Any] | None: ...
def health_check(self, name: str) -> bool: ...
# Module-level functions
def get_orchestrator() -> PyOrchestrator: ...
def get_abp_client() -> PyAbpClient: ...
def cli(args: list[str]) -> None: ...