Update src/main.py
Browse files- src/main.py +1 -1
src/main.py
CHANGED
|
@@ -17,7 +17,7 @@ DB_URI = os.getenv("DATABASE_URI")
|
|
| 17 |
async def lifespan(app: FastAPI):
|
| 18 |
async with AsyncPostgresSaver.from_conn_string(DB_URI) as checkpointer:
|
| 19 |
await checkpointer.setup()
|
| 20 |
-
app.state.agent = build_agent(
|
| 21 |
yield
|
| 22 |
|
| 23 |
app = FastAPI(
|
|
|
|
| 17 |
async def lifespan(app: FastAPI):
|
| 18 |
async with AsyncPostgresSaver.from_conn_string(DB_URI) as checkpointer:
|
| 19 |
await checkpointer.setup()
|
| 20 |
+
app.state.agent = build_agent(None)
|
| 21 |
yield
|
| 22 |
|
| 23 |
app = FastAPI(
|