MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / update_record

Method update_record

eval_heldout/hotpotQA/src/wrappers.py:235–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 return obs, reward, done, info
234
235 def update_record(self):
236 if len(self.traj) > 0:
237 self.trajs.append(self.traj)
238 self.traj = {"observations": [], "actions": []}
239
240 def write(self):
241 self.update_record()

Callers 1

writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected