Fix for get_agents_session (#300)

This commit is contained in:
Sarthak Deshpande 2024-10-25 07:06:27 +05:30 committed by GitHub
parent b6d8246b82
commit df141b6ef3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,7 @@ class MetaReferenceAgentsImpl(Agents):
turn_ids: Optional[List[str]] = None,
) -> Session:
session = await self.persistence_store.get(f"session:{agent_id}:{session_id}")
session = Session(**json.loads(session))
session = Session(**json.loads(session), turns=[])
turns = []
if turn_ids:
for turn_id in turn_ids: