feat(agent): add redis short-term user context cache and align tests
This commit is contained in:
@@ -33,7 +33,9 @@ class AgentRepository:
|
||||
except ValueError as exc:
|
||||
raise HTTPException(status_code=422, detail="Invalid user_id") from exc
|
||||
|
||||
session = AgentChatSession(user_id=user_uuid)
|
||||
session = AgentChatSession(
|
||||
user_id=user_uuid,
|
||||
)
|
||||
self._session.add(session)
|
||||
await self._session.flush()
|
||||
await self._session.refresh(session)
|
||||
|
||||
Reference in New Issue
Block a user