Skip to content

Commit 3fe376a

Browse files
committed
fix
1 parent 5076b2d commit 3fe376a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/agentlab/experiments/loop.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -932,13 +932,8 @@ def as_tape(steps_info: list[StepInfo]) -> Tape:
932932
steps: list[Step] = []
933933
for step_info in steps_info:
934934
if step_info.obs is not None:
935-
try:
936-
obs_json = json.dumps(step_info.obs, cls=DataclassJSONEncoder)
937-
except Exception as e:
938-
logger.warning(f"Error while converting observation to JSON: {e}")
939-
logger.warning(f"Observation: {step_info.obs}")
940-
raise e
941-
steps.append(DictObservation(content=obs_json))
935+
json_obs = json.dumps(step_info.obs, cls=DataclassJSONEncoder)
936+
steps.append(DictObservation(content=json_obs))
942937
if thought := step_info.agent_info.get("think"):
943938
steps.append(AssistantThought(content=thought))
944939
if step_info.action is not None:

0 commit comments

Comments
 (0)