Skip to content

Commit 7da4c00

Browse files
author
Carlos Freund
committed
fix structured summary condenser to use new interface.
removed import that lead to circular import.
1 parent ae8f0b7 commit 7da4c00

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

openhands/memory/condenser/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import openhands.memory.condenser.impl # noqa F401 (we import this to get the condensers registered)
21
from openhands.memory.condenser.condenser import (
32
Condensation,
43
Condenser,

openhands/memory/condenser/impl/structured_summary_condenser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _truncate(self, content: str) -> str:
196196
"""Truncate the content to fit within the specified maximum event length."""
197197
return truncate_content(content, max_chars=self.max_event_length)
198198

199-
def get_condensation(self, view: View) -> Condensation:
199+
def get_condensation(self, view: View, state=None, agent=None) -> Condensation:
200200
head = view[: self.keep_first]
201201
target_size = self.max_size // 2
202202
# Number of events to keep from the tail -- target size, minus however many

0 commit comments

Comments
 (0)