Skip to content

Commit 740a5da

Browse files
committed
Fix links to mini-swe-agent
1 parent d423689 commit 740a5da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ while True:
483483
...
484484
```
485485

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:
487487

488488
```python
489489
class TerminatingException(RuntimeError): ...
@@ -530,7 +530,7 @@ def parse_action(action: str) -> str:
530530
### Environment variables
531531

532532
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)):
534534

535535
```python
536536
env_vars = {
@@ -559,7 +559,7 @@ def execute_action(command: str) -> str:
559559
[`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.
560560
The only important thing to note is that it is built more modular, so that you can swap out all components.
561561

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
563563

564564
```python
565565
class Agent:
@@ -573,15 +573,15 @@ class Agent:
573573
...
574574
```
575575

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
577577

578578
```python
579579
class Model:
580580
def query(messages: list[dict[str, str]]):
581581
...
582582
```
583583

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:
585585

586586
```python
587587
class Environment:

0 commit comments

Comments
 (0)