跳到主要内容

openhands.memory.condenser.impl.llm_summarizing_condenser

LLMSummarizingCondenser Objects

class LLMSummarizingCondenser(RollingCondenser)

A condenser that summarizes forgotten events.

Maintains a condensed history and forgets old events when it grows too large, keeping a special summarization event after the prefix that summarizes all previous summarizations and newly forgotten events.

condense

def condense(events: list[Event]) -> list[Event]

Apply the amortized forgetting strategy with LLM summarization to the given list of events.