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

Method reset

eval_heldout/webarena/agent/agent.py:139–148  ·  view source on GitHub ↗
(
        self,
        test_config_file: str,
    )

Source from the content-addressed store, hash-verified

137
138 @beartype
139 def reset(
140 self,
141 test_config_file: str,
142 ) -> None:
143 with open(test_config_file) as f:
144 ref_actions = json.load(f)["reference_action_sequence"]
145 tag = ref_actions["action_set_tag"]
146 action_seq = ref_actions["action_sequence"]
147 self.set_action_set_tag(tag)
148 self.set_actions(action_seq)
149
150
151class PromptAgent(Agent):

Callers

nothing calls this directly

Calls 3

set_action_set_tagMethod · 0.95
set_actionsMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected