Spaces:
Runtime error
Runtime error
| """Local REST endpoints and tool API stub.""" | |
| from __future__ import annotations | |
| from jenaai.core.module import BaseModule | |
| class Module(BaseModule): | |
| """Expose tool APIs and plugin endpoints.""" | |
| async def start(self) -> None: | |
| await self.event_bus.publish( | |
| "system.log", | |
| {"message": "API handlers ready", "module": self.metadata.name}, | |
| ) | |
| async def start_server(self) -> None: | |
| await self.event_bus.publish( | |
| "system.log", | |
| {"message": "API server started", "module": self.metadata.name}, | |
| ) | |