develop #2
@@ -79,6 +79,11 @@ async def _memory_cron_tick() -> None:
|
|||||||
|
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
async def lifespan(app: FastAPI):
|
async def lifespan(app: FastAPI):
|
||||||
|
# Startup: register source connectors.
|
||||||
|
from app.scouts.connectors.gmail import GmailConnector # noqa: PLC0415
|
||||||
|
from app.scouts.connectors.registry import register_connector # noqa: PLC0415
|
||||||
|
register_connector(GmailConnector())
|
||||||
|
|
||||||
# Startup: ensure agent tool modules are loaded.
|
# Startup: ensure agent tool modules are loaded.
|
||||||
import app.agents # noqa: F401
|
import app.agents # noqa: F401
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user