| 1234567891011121314 |
- from fastapi import FastAPI
- from app.api.routes import router
- from app.bootstrap.settings import SkillServiceSettings
- from app.db.session import build_session_factory
- def create_app() -> FastAPI:
- settings = SkillServiceSettings()
- app = FastAPI(title="agent-platform skill-service", version="0.1.0")
- app.state.settings = settings
- app.state.session_factory = build_session_factory(settings)
- app.include_router(router, prefix="/skills", tags=["skills"])
- return app
|