File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments