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]
Inspector: Display tool calls
Kilian Lieret0bd5d044022a
diff --git a/sweagent/inspector/fileViewer.js b/sweagent/inspector/fileViewer.jsindex cfbad69b..987ae301 100644--- a/sweagent/inspector/fileViewer.js+++ b/sweagent/inspector/fileViewer.js@@ -69,11 +69,15 @@ function viewFile(fileName) {let delay = 200; // Initial delayconst delayIncrement = 50; // Delay between each message, in milliseconds+ // Step through the history and add each message to the containercontent.history.forEach((item, index) => {const timeoutId = setTimeout(() => {- const contentText = item.content+ let contentText = item.content? item.content.replace(/</g, "<").replace(/>/g, ">"): "";+ if (item.tool_calls && item.tool_calls.length > 0) {+ contentText = `${item.thought}\n\`\`\`\n${item.action}\n\`\`\``;+ }let roleClass =item.agent && item.agent !== "primary"? "subroutine"