Skip to content

Commit

Permalink
fix: Make entries indices zro-based
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Jun 6, 2024
1 parent 97d265d commit 2c4ceb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agents-api/agents_api/activities/summarization.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ async def summarization(session_id: str) -> None:
session_id=session_id,
new_entry=new_entry,
old_entry_ids=[
UUID(entries[idx]["entry_id"], version=4) for idx in msg["summarizes"]
UUID(entries[idx - 1]["entry_id"], version=4)
for idx in msg["summarizes"]
],
)

0 comments on commit 2c4ceb6

Please sign in to comment.