from fastapi import FastAPI from core_shared.observability import add_observability from app.api.routes import router from app.bootstrap.settings import CodeRunnerServiceSettings def create_app() -> FastAPI: settings = CodeRunnerServiceSettings() app = FastAPI( title="agent-platform code-runner-service", version="0.1.0", ) app.state.settings = settings add_observability(app, settings.service_name) app.include_router(router, prefix="/code", tags=["code"]) return app