Skip to content

Commit 1a91bb2

Browse files
hangfeicopybara-github
authored andcommitted
chore: Update comments in Compaction to clarify timestamp-based ranges
The docstrings for `compaction_range` and `compacted_content` are updated to reflect that compaction is based on timestamp ranges rather than sequence IDs, and to use consistent terminology ("compacted" instead of "summarized"). PiperOrigin-RevId: 808770610
1 parent 9c2b709 commit 1a91bb2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/google/adk/events/event_actions.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ class EventCompaction(BaseModel):
3636
)
3737
"""The pydantic model config."""
3838

39-
compaction_range: Optional[tuple[float, float]] = None
40-
"""The sequence ID range of the events that are summarized, in the form(start_sequence_id, end_sequence_id)`"""
39+
start_timestamp: float
40+
"""The start timestamp of the compacted events, in seconds."""
41+
42+
end_timestamp: float
43+
"""The end timestamp of the compacted events, in seconds."""
4144

4245
compacted_content: Content
43-
"""The summarized content of the events."""
46+
"""The compacted content of the events."""
4447

4548

4649
class EventActions(BaseModel):

0 commit comments

Comments
 (0)