Skip to content

Commit

Permalink
Added defaut resets for the AgentBrain.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaa committed May 10, 2021
1 parent dcb3dcd commit e3456d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions matrx/agents/agent_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ def initialize(self):
the instance of your agent brain will have attributes with values from
the previous run. This method can be used to reset them.
"""
self.previous_action = None
self.previous_action_result = None
self.messages_to_send = []
self.received_messages = []
self._state = None

def filter_observations(self, state):
""" Filters the world state before deciding on an action.
Expand Down

0 comments on commit e3456d7

Please sign in to comment.