mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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
This commit is contained in:
committed by
Copybara-Service
parent
e568558674
commit
52db15f133
@@ -583,25 +583,6 @@ class Runner:
|
||||
|
||||
return rewind_artifact_delta
|
||||
|
||||
async def _run_compaction_default(self, session: Session):
|
||||
"""Runs compaction for other types of compactors.
|
||||
|
||||
This method calls `maybe_compact_events` on the compactor with all
|
||||
events in the session.
|
||||
|
||||
Args:
|
||||
session: The session containing events to compact.
|
||||
"""
|
||||
compaction_event = (
|
||||
await self.app.events_compaction_config.compactor.maybe_compact_events(
|
||||
events=session.events
|
||||
)
|
||||
)
|
||||
if compaction_event:
|
||||
await self.session_service.append_event(
|
||||
session=session, event=compaction_event
|
||||
)
|
||||
|
||||
def _should_append_event(self, event: Event, is_live_call: bool) -> bool:
|
||||
"""Checks if an event should be appended to the session."""
|
||||
# Don't append audio response from model in live mode to session.
|
||||
|
||||
Reference in New Issue
Block a user