openhands.memory.condenser
MemoryCondenser Objects
class MemoryCondenser()
condense
def condense(summarize_prompt: str, llm: LLM)
Attempts to condense the memory by using the llm
Arguments:
- llm (LLM): llm to be used for summarization
Raises:
- Exception: the same exception as it got from the llm or processing the response