Skip to content

Commit 52db15f

Browse files
hangfeicopybara-github
authored andcommitted
fix: Remove unused _run_compaction_default method
The `_run_compaction_default` method is no longer called and can be safely removed. Co-authored-by: Hangfei Lin <hangfei@google.com> PiperOrigin-RevId: 828760157
1 parent e568558 commit 52db15f

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/google/adk/runners.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -583,25 +583,6 @@ async def _compute_artifact_delta_for_rewind(
583583

584584
return rewind_artifact_delta
585585

586-
async def _run_compaction_default(self, session: Session):
587-
"""Runs compaction for other types of compactors.
588-
589-
This method calls `maybe_compact_events` on the compactor with all
590-
events in the session.
591-
592-
Args:
593-
session: The session containing events to compact.
594-
"""
595-
compaction_event = (
596-
await self.app.events_compaction_config.compactor.maybe_compact_events(
597-
events=session.events
598-
)
599-
)
600-
if compaction_event:
601-
await self.session_service.append_event(
602-
session=session, event=compaction_event
603-
)
604-
605586
def _should_append_event(self, event: Event, is_live_call: bool) -> bool:
606587
"""Checks if an event should be appended to the session."""
607588
# Don't append audio response from model in live mode to session.

0 commit comments

Comments
 (0)