mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 02:50:00 +08:00
Ship lighter isolated runtimes, richer Books and Mastery flows, Reading/session polish, and explicit model API capabilities. Release notes: assets/releases/ver1-6-4.md
29 lines
757 B
Python
29 lines
757 B
Python
"""Runtime orchestration and registry helpers.
|
|
|
|
Importing a leaf module such as :mod:`deeptutor.runtime.memory_probe` must not
|
|
bootstrap the agent, tool, and capability graphs. ``ChatOrchestrator`` is a
|
|
compatibility export, resolved only when a caller asks for it.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .mode import RunMode, get_mode, is_cli, is_server, set_mode
|
|
|
|
__all__ = [
|
|
"ChatOrchestrator",
|
|
"RunMode",
|
|
"get_mode",
|
|
"is_cli",
|
|
"is_server",
|
|
"set_mode",
|
|
]
|
|
|
|
|
|
def __getattr__(name: str):
|
|
if name == "ChatOrchestrator":
|
|
from .orchestrator import ChatOrchestrator
|
|
|
|
globals()[name] = ChatOrchestrator
|
|
return ChatOrchestrator
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|