Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Doc: Expand on documentation for max obs length

Kilian Lieretf085ae1ff333
diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.py
index 4d5befa9..7ae25090 100644
--- a/sweagent/agent/agents.py
+++ b/sweagent/agent/agents.py
@@ -77,7 +77,9 @@ class TemplateConfig(BaseModel):
"""
max_observation_length: int = 100_000
- """Truncate observation to this length if it exceeds it."""
+ """Truncate observation to this length if it exceeds it.
+ This in measured in characters, i.e., as `len(observation)`.
+ """
next_step_no_output_template: str = None # type: ignore
"""Template for the next step when the last output was empty. Defaults to next_step_template."""