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: docs/index.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -483,7 +483,7 @@ while True:
483
483
...
484
484
```
485
485
486
-
mini-swe-agent additionally [defines]() a `TerminatingException` class which is used instead of the `if action == "exit"` mechanism to stop the `while` loop in a graceful way:
486
+
mini-swe-agent additionally [defines](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/agents/default.py#L33-L53) a `TerminatingException` class which is used instead of the `if action == "exit"` mechanism to stop the `while` loop in a graceful way:
There's a couple of environment variables that we can set to disable interactive
533
-
elements in command line tools that avoid the agent getting stuck (you can see them being set in the [`mini-swe-agent` SWE-bench config](...)):
533
+
elements in command line tools that avoid the agent getting stuck (you can see them being set in the [`mini-swe-agent` SWE-bench config](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/config/extra/swebench.yaml)):
[`mini-swe-agent`](https://github.com/swe-agent/mini-swe-agent) is built exactly according to the blueprint of this tutorial and it should be very easy for you to understand it's source code.
560
560
The only important thing to note is that it is built more modular, so that you can swap out all components.
561
561
562
-
The `Agent` class (]full code](...)) contains the big `while` loop in the `run` function
562
+
The `Agent` class ([full code](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/agents/default.py)) contains the big `while` loop in the `run` function
563
563
564
564
```python
565
565
classAgent:
@@ -573,15 +573,15 @@ class Agent:
573
573
...
574
574
```
575
575
576
-
The model class ([full code](...)) handles different LMs
576
+
The model class ([example for litellm](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/models/litellm_model.py)) handles different LMs
577
577
578
578
```python
579
579
classModel:
580
580
defquery(messages: list[dict[str, str]]):
581
581
...
582
582
```
583
583
584
-
and the environment class ([local environment](...)) executes actions:
584
+
and the environment class ([local environment](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/environments/local.py)) executes actions:
0 commit comments