openhands.memory.condenser.impl.recent_events_condenser
RecentEventsCondenser Objects
class RecentEventsCondenser(Condenser)
A condenser that only keeps a certain number of the most recent events.
condense
def condense(events: list[Event]) -> list[Event]
Keep only the most recent events (up to max_events
).