Skip to content

Commit

Permalink
reword exit code hint
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Sep 16, 2024
1 parent e9875e6 commit 2e3e46d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agenthub/codeact_agent/codeact_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ def get_observation_message(self, obs: Observation) -> Message | None:
ansi_color_escape = re.compile(r'\x1b\[[0-9;]*m')
obs.content = ansi_color_escape.sub('', obs.content)
text = obs_prefix + truncate_content(obs.content, max_message_chars)
if obs.exit_code != 0:
text += f'\n[Command finished with exit code {obs.exit_code}. Why did you run this command?]'
# text += (
# f'\n[Command finished with exit code {obs.exit_code}]'
# )
Expand Down

0 comments on commit 2e3e46d

Please sign in to comment.