We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bb8df commit 3e049fcCopy full SHA for 3e049fc
1 file changed
trpc_agent_sdk/sessions/_session_summarizer.py
@@ -391,8 +391,9 @@ async def create_session_summary_by_events(
391
# Persistent services reconstruct event order from timestamps. Anchor the
392
# summary just before the retained window so its logical leading position
393
# survives a database round trip.
394
- summary_timestamp = (events[insert_index].timestamp -
395
- 0.000001 if insert_index < len(events) else time.time())
+ summary_timestamp = time.time()
+ if insert_index < len(events):
396
+ summary_timestamp = events[insert_index].timestamp - 0.000001
397
# Create summary event
398
summary_event = Event(invocation_id="summary",
399
author="system",
0 commit comments