Skip to content

Commit

Permalink
remove messing with history for now
Browse files Browse the repository at this point in the history
  • Loading branch information
enyst committed Jan 15, 2025
1 parent 2efc6cb commit 2b1a2eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openhands/agenthub/micro/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ def history_to_json(self, history: list[Event], max_events: int = 20, **kwargs):

# everything starts with a message
# the first message is already in the prompt as the task
# so we don't need to include it in the history
if event_count < max_events:
processed_history.pop(0)
# TODO: so we don't need to include it in the history

return json.dumps(processed_history, **kwargs)

Expand Down

0 comments on commit 2b1a2eb

Please sign in to comment.