| 1 | from __future__ import annotations |
| 2 | |
| 3 | __all__ = ["AgentLoop", "SessionIndex", "ToolRegistry", "build_runtime"] |
| 4 | |
| 5 | |
| 6 | def build_runtime(*args, **kwargs): |
| 7 | from .loop import build_runtime as _build_runtime |
| 8 | |
| 9 | return _build_runtime(*args, **kwargs) |
| 10 | |
| 11 | |
| 12 | def __getattr__(name): |
| 13 | if name == "AgentLoop": |
| 14 | from .loop import AgentLoop |
| 15 | |
| 16 | return AgentLoop |
| 17 | if name == "SessionIndex": |
| 18 | from .session_index import SessionIndex |
| 19 | |
| 20 | return SessionIndex |
| 21 | if name == "ToolRegistry": |
| 22 | from .tools import ToolRegistry |
| 23 | |
| 24 | return ToolRegistry |
| 25 | raise AttributeError(name) |
| 26 |