|
| 1 | +# Based on the default config from the SWE-agent repo: |
| 2 | +# https://github.com/SWE-agent/SWE-agent/blob/1375ec4fa69d300b432b9ca61d6b0e5d7259131c/config/default.yaml |
| 3 | +# but mentions of Python are removed to make the prompt language-agnostic. |
| 4 | + |
| 5 | +# note that this doesn't use nemo-skills prompt logic and instead is passed directly to swe-agent |
| 6 | + |
| 7 | +agent: |
| 8 | + templates: |
| 9 | + system_template: |- |
| 10 | + You are a helpful assistant that can interact with a computer to solve tasks. |
| 11 | + instance_template: |- |
| 12 | + <uploaded_files> |
| 13 | + {{working_dir}} |
| 14 | + </uploaded_files> |
| 15 | + I've uploaded a code repository in the directory {{working_dir}}. Consider the following PR description: |
| 16 | +
|
| 17 | + <pr_description> |
| 18 | + {{problem_statement}} |
| 19 | + </pr_description> |
| 20 | +
|
| 21 | + Can you help me implement the necessary changes to the repository so that the requirements specified in the <pr_description> are met? |
| 22 | + I've already taken care of all changes to any of the test files described in the <pr_description>. This means you DON'T have to modify the testing logic or any of the tests in any way! |
| 23 | + Your task is to make the minimal changes to non-tests files in the {{working_dir}} directory to ensure the <pr_description> is satisfied. |
| 24 | + Follow these steps to resolve the issue: |
| 25 | + 1. As a first step, it might be a good idea to find and read code relevant to the <pr_description> |
| 26 | + 2. Create a script to reproduce the error and execute it using the bash tool, to confirm the error |
| 27 | + 3. Edit the sourcecode of the repo to resolve the issue |
| 28 | + 4. Rerun your reproduce script and confirm that the error is fixed! |
| 29 | + 5. Think about edgecases and make sure your fix handles them as well |
| 30 | + Your thinking should be thorough and so it's fine if it's very long. |
| 31 | + next_step_template: |- |
| 32 | + OBSERVATION: |
| 33 | + {{observation}} |
| 34 | + next_step_no_output_template: |- |
| 35 | + Your command ran successfully and did not produce any output. |
| 36 | + tools: |
| 37 | + env_variables: |
| 38 | + PAGER: cat |
| 39 | + MANPAGER: cat |
| 40 | + LESS: -R |
| 41 | + PIP_PROGRESS_BAR: 'off' |
| 42 | + TQDM_DISABLE: '1' |
| 43 | + GIT_PAGER: cat |
| 44 | + bundles: |
| 45 | + - path: tools/registry |
| 46 | + - path: tools/edit_anthropic |
| 47 | + - path: tools/review_on_submit_m |
| 48 | + registry_variables: |
| 49 | + USE_FILEMAP: 'true' |
| 50 | + SUBMIT_REVIEW_MESSAGES: |
| 51 | + - | |
| 52 | + Thank you for your work on this issue. Please carefully follow the steps below to help review your changes. |
| 53 | +
|
| 54 | + 1. If you made any changes to your code after running the reproduction script, please run the reproduction script again. |
| 55 | + If the reproduction script is failing, please revisit your changes and make sure they are correct. |
| 56 | + If you have already removed your reproduction script, please ignore this step. |
| 57 | + 2. Remove your reproduction script (if you haven't done so already). |
| 58 | + 3. If you have modified any TEST files, please revert them to the state they had before you started fixing the issue. |
| 59 | + You can do this with `git checkout -- /path/to/test/file`. Use below <diff> to find the files you need to revert. |
| 60 | + 4. Run the submit command again to confirm. |
| 61 | +
|
| 62 | + Here is a list of all of your changes: |
| 63 | +
|
| 64 | + <diff> |
| 65 | + {{diff}} |
| 66 | + </diff> |
| 67 | + enable_bash_tool: true |
| 68 | + parse_function: |
| 69 | + type: function_calling |
| 70 | + history_processors: [] |
| 71 | + model: |
| 72 | + # The following parameters are overridden by Nemo-Skills: |
| 73 | + # name, api_base, temperature, top_p, completion_kwargs, per_instance_call_limit. |
| 74 | + # Specifying them here will have no effect! Use Nemo-Skills options instead. |
| 75 | + per_instance_cost_limit: 0 |
| 76 | + total_cost_limit: 0 |
| 77 | + max_input_tokens: 0 |
| 78 | + max_output_tokens: 0 |
0 commit comments