(self)
| 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) |
no outgoing calls
no test coverage detected