swe_agentic: accept adapter kwarg in __init__ (get_env uniform signature)
Without it get_env('swe_agentic') raised TypeError at env creation --
and the swallowed exception silently degraded the run to SINGLE-TURN
prose generation (421s of model monologue, no container, empty
trajectory). This was the agentic 'run' that looked like it worked.
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
de847206e5
commit
2a2335f842
@ -111,7 +111,9 @@ def _docker(args, timeout=300):
|
|||||||
class SWEAgenticEnvironment(Environment):
|
class SWEAgenticEnvironment(Environment):
|
||||||
"""Self-running env: one persistent container per sample."""
|
"""Self-running env: one persistent container per sample."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, adapter=None, **_):
|
||||||
|
# adapter arg: get_env uniform signature (unused here; the adapter
|
||||||
|
# is passed to run_task per sample)
|
||||||
self.container = ''
|
self.container = ''
|
||||||
|
|
||||||
# ---- container lifecycle ----
|
# ---- container lifecycle ----
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user