mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 07:14:20 +00:00
Added a check on turn_ids
This commit is contained in:
parent
9bcd03fe2a
commit
c2e8011175
1 changed files with 16 additions and 15 deletions
|
@ -160,6 +160,7 @@ class MetaReferenceAgentsImpl(Agents):
|
|||
f"Could not JSON decode session for {agent_id} and {session_id}"
|
||||
) from e
|
||||
turns = []
|
||||
if turn_ids:
|
||||
for turn_id in turn_ids:
|
||||
turn = await self.persistence_store.get(f"session:{agent_id}:{session_id}:{turn_id}")
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue