Skip to content

Commit

Permalink
tweak debug viz
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Nov 12, 2024
1 parent fec3083 commit a28212b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openhands/events/observation/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ def message(self) -> str:
return f'Command `{self.command}` executed with exit code {self.exit_code}.'

def __str__(self) -> str:
return f'**CmdOutputObservation (source={self.source}, exit code={self.exit_code}, metadata={json.dumps(self.metadata.model_dump(), indent=2)})**\n{self.content}'
return (
f'**CmdOutputObservation (source={self.source}, exit code={self.exit_code}, '
f'metadata={json.dumps(self.metadata.model_dump(), indent=2)})**\n--CONTENT--\n{self.content}\n--END CONTENT--'
)

def to_agent_observation(self) -> str:
ret = self.content
Expand Down

0 comments on commit a28212b

Please sign in to comment.