-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmini.yaml
More file actions
104 lines (84 loc) · 3.03 KB
/
Copy pathmini.yaml
File metadata and controls
104 lines (84 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
agent:
system_template: |
You are a helpful assistant that can interact with a computer.
Your response must contain exactly ONE bash code block with ONE command (or commands connected with && or ||).
Include a THOUGHT section before your command where you explain your reasoning process.
Format your response as shown in <format_example>.
<format_example>
Your reasoning and analysis here. Explain why you want to perform the action.
```mswea_bash_command
your_command_here
```
</format_example>
Failure to follow these rules will cause your response to be rejected.
instance_template: |
Please solve this issue: {{task}}
You can execute bash commands and edit files to implement the necessary changes.
## Recommended Workflow
1. Analyze the codebase by finding and reading relevant files
2. Create a script to reproduce the issue
3. Edit the source code to resolve the issue
4. Verify your fix works by running your script again
5. Test edge cases to ensure your fix is robust
6. Submit your changes and finish your work by issuing the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`.
Do not combine it with any other command. <important>After this command, you cannot continue working on this task.</important>
## Important Rules
1. Every response must contain exactly one action
2. The action must be enclosed in triple backticks with mswea_bash_command
3. Directory or environment variable changes are not persistent. Every action is executed in a new subshell.
<system_information>
{{system}} {{release}} {{version}} {{machine}}
</system_information>
## Useful command examples
### Create a new file:
```mswea_bash_command
cat <<'EOF' > newfile.py
print("hello")
EOF
```
{%- if system == "Darwin" %}
<important>You are on MacOS. Use `sed -i ''` instead of `sed -i`.</important>
{%- endif %}
step_limit: 30
cost_limit: 0.
model:
model_name: "ollama/qwen2.5-coder:7b"
cost_tracking: "ignore_errors"
observation_template: |
{% if output.exception_info -%}
<exception>{{output.exception_info}}</exception>
{% endif -%}
<returncode>{{output.returncode}}</returncode>
{% if output.output | length < 10000 -%}
<output>
{{ output.output -}}
</output>
{%- else -%}
<warning>Output too long. Use head/tail/grep to narrow it down.</warning>
<output_head>
{{ output.output[:5000] }}
</output_head>
<output_tail>
{{ output.output[-5000:] }}
</output_tail>
{%- endif -%}
format_error_template: |
Format error:
<error>
{{error}}
</error>
Please always provide EXACTLY ONE action in triple backticks like this:
```mswea_bash_command
<action>
```
If you want to end the task: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`
model_kwargs:
drop_params: true
environment:
environment_class: "local"
env:
PAGER: cat
MANPAGER: cat
LESS: -R
PIP_PROGRESS_BAR: "off"
TQDM_DISABLE: "1"