mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-16 19:59:26 +00:00
PR-437-Fixed a bug where turns were getting fetched randomly
This commit is contained in:
parent
e6e49e1bc6
commit
70e30891ec
1 changed files with 1 additions and 1 deletions
|
|
@ -80,5 +80,5 @@ class AgentPersistence:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error parsing turn: {e}")
|
print(f"Error parsing turn: {e}")
|
||||||
continue
|
continue
|
||||||
|
turns.sort(key=lambda x: (x.completed_at or datetime.min))
|
||||||
return turns
|
return turns
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue