MCPcopy Create free account
hub / github.com/google/adk-python / _has_sliding_window_config

Function _has_sliding_window_config

src/google/adk/apps/compaction.py:214–220  ·  view source on GitHub ↗

Returns whether sliding-window compaction is fully configured.

(config: EventsCompactionConfig | None)

Source from the content-addressed store, hash-verified

212
213
214def _has_sliding_window_config(config: EventsCompactionConfig | None) -> bool:
215 """Returns whether sliding-window compaction is fully configured."""
216 return bool(
217 config
218 and config.compaction_interval is not None
219 and config.overlap_size is not None
220 )
221
222
223def _ensure_compaction_summarizer(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected