Raise max_iterations from 15 to 200; text loop detector is the real termination mechanism
- SHA
4545623ce4b66506b2da14a6c96e308d5802b1c8- Parents
-
c252d07 - Tree
42b4144
4545623
4545623ce4b66506b2da14a6c96e308d5802b1c8c252d07
42b4144| Status | File | + | - |
|---|---|---|---|
| M |
src/loader/agent/loop.py
|
1 | 1 |
src/loader/agent/loop.pymodified@@ -75,7 +75,7 @@ class ReasoningConfig: | ||
| 75 | 75 | @dataclass |
| 76 | 76 | class AgentConfig: |
| 77 | 77 | """Configuration for the agent.""" |
| 78 | - max_iterations: int = 15 # Reduced from 20 | |
| 78 | + max_iterations: int = 200 # High cap; text loop detector is the real termination mechanism | |
| 79 | 79 | temperature: float = 0.3 # Low for better instruction following |
| 80 | 80 | max_tokens: int = 2048 # Reduced from 4096, most responses are shorter |
| 81 | 81 | force_react: bool = False # Force ReAct even if model supports native tools |