You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
379 B
Python
18 lines
379 B
Python
from fastapi import FastAPI
|
|
from app.api.routes import router
|
|
from app.api.tool_routes import router as tool_router
|
|
|
|
app = FastAPI(title="AI Orquestrador")
|
|
|
|
app.include_router(router)
|
|
app.include_router(tool_router)
|
|
|
|
|
|
@app.on_event("startup")
|
|
def seed_on_startup():
|
|
try:
|
|
from app.db.tool_seed import seed_tools
|
|
seed_tools()
|
|
except Exception:
|
|
pass
|