| # DefaultAgent | |
| !!! note "DefaultAgent class" | |
| - [Read on GitHub](https://github.com/swe-agent/mini-swe-agent/blob/main/src/minisweagent/agents/default.py) | |
| ??? note "Full source code" | |
| ```python | |
| --8<-- "src/minisweagent/agents/default.py" | |
| ``` | |
| !!! tip "Understanding the control flow" | |
| Check out the [control flow guide](../../advanced/control_flow.md) for a visual explanation of the agent's control flow following this picture: | |
| <div align="center"> | |
| <img src="../../../assets/mini_control_flow.svg" alt="Agent control flow" style="max-width: 500px;" /> | |
| </div> | |
| ::: minisweagent.agents.default.AgentConfig | |
| ::: minisweagent.agents.default.DefaultAgent | |
| ::: minisweagent.agents.default.NonTerminatingException | |
| ::: minisweagent.agents.default.TerminatingException | |
| {% include-markdown "../../_footer.md" %} |