You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/README.md
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ history_processor: Reference to functionality for controlling agent's message hi
60
60
parse_function: Parser run on agent output
61
61
```
62
62
63
-
We recommend looking at...
63
+
In this directory, we recommend looking at...
64
64
* `configs/` for examples of properly formatted configuration files. Each configuration differs in its set of commands, input/output format, demonstrations, etc.
65
65
* `commands/` for the bash implementations of the custom commands that SWE-agent uses to navigate + edit the codebase.
66
66
@@ -75,4 +75,18 @@ Possible variables that can be used in templates are:
75
75
- any variable given in `env_variables` (same spelling), e.g., `{WINDOW_SIZE}`
76
76
- any variable extracted as json as part of the `state_command` function
77
77
- the last observation `{observation}`
78
-
- ... this list will grow as we implement more features!
78
+
- ... this list will grow as we implement more features!
79
+
80
+
## Template Workflow
81
+
The following diagram illustrates where each template is shown within a single episode of solving one task instance.
* "Next Step" (`next_step_template`): Displayed if the model's action successfully runs. The output and a prompt for the next action is shown
89
+
* "Next Step (No Output)" (`next_step_no_output_template`): Displayed if the model's action successfully runs, but does not produce any standard output (e.g. `rm`, `cd`)
90
+
* "Format Error" (`format_error_template`): Displayed if the model's response is malformed. Over the next two turns...
91
+
* If one of the model's next response is correct, the message history is updated such that the "Format Error" turn is not kept. The episode continues.
92
+
* If the model's next two responses are both malformed, the episode terminates.
0 commit comments