MCPcopy Create free account
hub / github.com/InternScience/SciReason / reset

Method reset

opencompass/models/lagent.py:36–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.agent: BaseAgent = REGISTRY.build(agent_cfg)
35
36 def reset(self):
37 self.agent._session_history = []
38 for action in self.agent._action_executor.actions:
39 if hasattr(action, 'reset'):
40 action.reset()
41
42 def set_history(self, history):
43 self.agent._session_history = deepcopy(history)

Callers 3

infer_lastMethod · 0.45
infer_everyMethod · 0.45
infer_every_with_gtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected