Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### **Description** - Enhanced the `SubmitPatchRequest` and `SubmitPatch` class descriptions to include details about the diff format. - Simplified `CoderAgentArgs` initialization and updated method calls across multiple files. - Introduced `BaseSWEAgent` abstract class. - Added `REVIEWER_BACKSTORY_TMPL` template for reviewer agent. - Refactored `CoderAgent` to inherit from `BaseSWEAgent` and added reviewer agent to the workflow. - Added utility functions for logger setup and LLM retrieval. - Updated README to include additional setup steps and environment variables. - Changed the patch generated to be static instead of agentic. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement </strong></td><td><details><summary>8 files</summary><table> <tr> <td> <details> <summary><strong>submit_patch.py</strong><dd><code>Improve patch submission descriptions and examples</code> </dd></summary> <hr> python/composio/local_tools/local_workspace/submit_patch/actions/submit_patch.py <li>Enhanced the <code>SubmitPatchRequest</code> and <code>SubmitPatch</code> class descriptions to <br>include details about the diff format.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-eb4ff8e8a15704392fa1a2d3795544db0b1f85b04299099ca1d67bb0395a4d43">+11/-2</a> </td> </tr> <tr> <td> <details> <summary><strong>run_evaluation.py</strong><dd><code>Simplify CoderAgentArgs initialization and method call</code> </dd></summary> <hr> python/composio_swe/benchmark/run_evaluation.py <li>Simplified <code>CoderAgentArgs</code> initialization by removing redundant <br>parameters.<br> <li> Updated <code>coder.run</code> method to accept <code>issue_config</code>.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-d97c3a8fcc8931e4bc7bd8a5fd22231faf0ffd60133f65afb29ce91ee372ca87">+2/-6</a> </td> </tr> <tr> <td> <details> <summary><strong>base_swe_agent.py</strong><dd><code>Add BaseSWEAgent abstract class</code> </dd></summary> <hr> python/composio_swe/composio_swe/agent/base_swe_agent.py <li>Introduced <code>BaseSWEAgent</code> abstract class with an abstract <code>run</code> method.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-8b58d3656c4f5dce0d84109cfd9952e5d55c3c3075c4bb18bd26e2840896100b">+12/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>prompts.py</strong><dd><code>Add reviewer backstory template</code> </dd></summary> <hr> python/composio_swe/composio_swe/agent/prompts.py - Added `REVIEWER_BACKSTORY_TMPL` template for reviewer agent. </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-a95507b8fd735f05687d8673e16728d15b6099e5f5a3ec9313f1afb3d3ec0a27">+12/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>swe.py</strong><dd><code>Refactor CoderAgent and add reviewer agent</code> </dd></summary> <hr> python/composio_swe/composio_swe/agent/swe.py <li>Refactored <code>CoderAgent</code> to inherit from <code>BaseSWEAgent</code>.<br> <li> Moved logger setup and LLM retrieval to <code>utils.py</code>.<br> <li> Added reviewer agent and task to the workflow.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-bbb8fcd0bfdb219cf4e20ffd41e3695abb277d9a5efc2c5a315e478976655540">+59/-80</a> </td> </tr> <tr> <td> <details> <summary><strong>swe_run.py</strong><dd><code>Update CoderAgentArgs initialization and method call</code> </dd></summary> <hr> python/composio_swe/composio_swe/agent/swe_run.py <li>Updated <code>CoderAgentArgs</code> initialization to remove redundant parameters.<br> <li> Updated <code>coder_agent.run</code> method to accept <code>issue_config</code>.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-784e85fde02b297e5d9c252831add5cfe880f537076facd0cd3f90ac62121e86">+4/-5</a> </td> </tr> <tr> <td> <details> <summary><strong>utils.py</strong><dd><code>Add utility functions for logger and LLM</code> </dd></summary> <hr> python/composio_swe/composio_swe/agent/utils.py - Added utility functions for logger setup and LLM retrieval. </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-ebba6012e3781136b15802f8496f063323a2d11aba51c645d1d8a5819486dab2">+34/-0</a> </td> </tr> <tr> <td> <details> <summary><strong>cli.py</strong><dd><code>Simplify solve command initialization and method call</code> </dd></summary> <hr> python/composio_swe/composio_swe/cli/cli.py <li>Updated <code>solve</code> command to simplify <code>CoderAgentArgs</code> initialization and <br>method call.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-9cb2bb57d930a1d094b58d1dba3b28334c6b806db91bb30ad984da874a046322">+5/-6</a> </td> </tr> </table></details></td></tr><tr><td><strong>Documentation </strong></td><td><details><summary>1 files</summary><table> <tr> <td> <details> <summary><strong>README.md</strong><dd><code>Update README with additional setup steps</code> </dd></summary> <hr> python/composio_swe/composio_swe/agent/README.md <li>Updated README to include additional setup steps and environment <br>variables.<br> </details> </td> <td><a href="https://github.com/ComposioHQ/composio/pull/204/files#diff-3ee62cdba3c5db57de103a824f94d873c44d8a03368853305b126b5d5e665ec0">+14/-6</a> </td> </tr> </table></details></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
- Loading branch information