subhdotsol commited on
Commit
35c659c
·
1 Parent(s): db1fcf1

feat(environment): add get_history() — returns copy of attack_history

Browse files
Files changed (1) hide show
  1. server/environment.py +3 -0
server/environment.py CHANGED
@@ -154,3 +154,6 @@ class RedTeamEnvironment:
154
  attacks_so_far = len(self.attack_history),
155
  is_active = self.is_active,
156
  )
 
 
 
 
154
  attacks_so_far = len(self.attack_history),
155
  is_active = self.is_active,
156
  )
157
+
158
+ def get_history(self) -> list[dict]:
159
+ return self.attack_history.copy()