openhands.events.serialization.event
truncate_content
def truncate_content(content: str, max_chars: int) -> str
Truncate the middle of the observation content if it is too long.
def truncate_content(content: str, max_chars: int) -> str
Truncate the middle of the observation content if it is too long.