openhands.memory.condenser.impl.llm_attention_condenser
ImportantEventSelection Objects
class ImportantEventSelection(BaseModel)
Utility class for the LLMAttentionCondenser
that forces the LLM to return a list of integers.
LLMAttentionCondenser Objects
class LLMAttentionCondenser(RollingCondenser)
Rolling condenser strategy that uses an LLM to select the most important events when condensing the history.
condense
def condense(events: list[Event]) -> list[Event]
If the history is too long, use an LLM to select the most important events.