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]
Update traj_to_demo to save replay_configs properly when stored as strings
carlosejimenez4c9b32c74c7b
diff --git a/sweagent/run/run_traj_to_demo.py b/sweagent/run/run_traj_to_demo.pyindex 60757e02..f9cc5c19 100644--- a/sweagent/run/run_traj_to_demo.py+++ b/sweagent/run/run_traj_to_demo.py@@ -36,6 +36,8 @@ def convert_traj_to_action_demo(traj_path: Path, output_file: Path, include_userwith open(traj_path) as file:traj = json.load(file)replay_config = traj["replay_config"]+ if isinstance(traj["replay_config"], str):+ replay_config = json.loads(traj["replay_config"])history = traj["history"]copy_fields = {"content", "role", "tool_calls", "agent", "message_type", "tool_call_ids"}