From df141b6ef3b864da586e0c32a1fcd8f6b2ce6351 Mon Sep 17 00:00:00 2001 From: Sarthak Deshpande <60317842+cheesecake100201@users.noreply.github.com> Date: Fri, 25 Oct 2024 07:06:27 +0530 Subject: [PATCH] Fix for get_agents_session (#300) --- llama_stack/providers/impls/meta_reference/agents/agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/providers/impls/meta_reference/agents/agents.py b/llama_stack/providers/impls/meta_reference/agents/agents.py index ca5a00359..13d9044fd 100644 --- a/llama_stack/providers/impls/meta_reference/agents/agents.py +++ b/llama_stack/providers/impls/meta_reference/agents/agents.py @@ -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: