Skip to content

Commit 8c597b7

Browse files
committed
reduce comments
1 parent 57830cc commit 8c597b7

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

codeclash/agents/minisweagent.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@
1919

2020

2121
class ClashAgentConfig(AgentConfig):
22-
"""`AgentConfig` plus an optional global observation-format override.
23-
24-
`observation_template` is a model-side field in mini-swe-agent, so putting it in the shared
25-
agent config (`configs/mini/default.yaml`) doesn't reach the model on its own. Declaring it
26-
here lets the one global config drive it; `ClashAgent` pushes it onto the model at init."""
27-
22+
"""`AgentConfig` plus an optional global observation-format override."""
2823
observation_template: str | None = None
2924

3025

@@ -43,8 +38,6 @@ def __init__(
4338
):
4439
super().__init__(model, env, config_class=config_class, **kwargs)
4540
self.logger = logger
46-
# Honor the global observation_template (agent config) by pushing it onto the model,
47-
# which is what actually renders observations. Applies to every backend uniformly.
4841
if getattr(self.config, "observation_template", None):
4942
self.model.config.observation_template = self.config.observation_template
5043

0 commit comments

Comments
 (0)