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]
Merge remote-tracking branch 'refs/remotes/origin/swerex-integration' into swerex-integration
carlosejimenez73f13b98c7a5
diff --cc sweagent/tools/tools.pyindex 8576ff01,6af83bc4..3fb12b56--- a/sweagent/tools/tools.py+++ b/sweagent/tools/tools.py@@@ -236,9 -222,11 +237,11 @@@ class ToolHandler"""If a state command is defined, execute it in the environment parse it as json and return the result.This can be used to extract environment variables etc. from the environment."""+ if self.mock_state is not None:+ return self.mock_stateif not self.config.state_command:return {}- output = env.communicate(self.config.state_command.name, check=True).strip()+ output = env.communicate(self.config.state_command, check=True).strip()if not output:self.logger.warning("State command %s returned empty output", self.config.state_command.name)return {}