summarizeEvents

abstract suspend fun summarizeEvents(events: List<Event>): Event?

Compacts the given events into a single Event.

Returns null if compaction failed. Otherwise returns a new Event that must carry the summary on its com.google.adk.kt.events.EventActions.compaction field; the original events are not modified by this call.

Return

A new compacted Event or null if no summary was produced.

Parameters

events

The events to summarize.