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

Method reset

eval_heldout/hotpotQA/src/wrappers.py:221–225  ·  view source on GitHub ↗
(self, seed=None, return_info=False, options=None, idx=None)

Source from the content-addressed store, hash-verified

219
220
221 def reset(self, seed=None, return_info=False, options=None, idx=None):
222 output = self.env.reset(seed=seed, return_info=return_info, options=options, idx=idx)
223 observation = output[0] if return_info else output
224 self.traj = {"observations": [observation], "actions": []}
225 return output
226
227 def step(self, action):
228 obs, reward, done, info = self.env.step(action)

Callers 1

__init__Method · 0.95

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected