Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix typo omitted (#45)

Ikko Eltociear Ashiminebc0308b57b21
diff --git a/sweagent/agent/history_processors.py b/sweagent/agent/history_processors.py
index f6421198..08215053 100644
--- a/sweagent/agent/history_processors.py
+++ b/sweagent/agent/history_processors.py
@@ -61,7 +61,7 @@ def last_n_history(history, n):
if user_msg_idx == 1 or user_msg_idx in range(user_messages - n + 1, user_messages + 1):
new_history.append(entry)
else:
- data['content'] = f'Old output ommitted ({len(entry["content"].splitlines())} lines)'
+ data['content'] = f'Old output omitted ({len(entry["content"].splitlines())} lines)'
new_history.append(data)
return new_history
@@ -114,10 +114,10 @@ class ClosedWindowHistoryProcessor(HistoryProcessor):
end = matches[-1].end()
data['content'] = (
entry['content'][:start] +\
- f'Outdated window with {len(matches)} lines ommitted...\n' +\
+ f'Outdated window with {len(matches)} lines omitted...\n' +\
entry['content'][end:]
)
windows.add(file)
new_history.append(data)
history = list(reversed(new_history))
- return history
\ No newline at end of file
+ return history