Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

red teamer utils updated to use the new RTTestCase

A-Vamshib81e9eb76c71
diff --git a/deepteam/red_teamer/utils.py b/deepteam/red_teamer/utils.py
index ea962565..db85fee6 100644
--- a/deepteam/red_teamer/utils.py
+++ b/deepteam/red_teamer/utils.py
@@ -1,14 +1,14 @@
from typing import List, Dict
-from deepteam.attacks.attack_simulator import SimulatedAttack
+from deepteam.test_case import RTTestCase
from deepteam.vulnerabilities.types import VulnerabilityType
def group_attacks_by_vulnerability_type(
- simulated_attacks: List[SimulatedAttack],
-) -> Dict[VulnerabilityType, List[SimulatedAttack]]:
+ simulated_attacks: List[RTTestCase],
+) -> Dict[VulnerabilityType, List[RTTestCase]]:
vulnerability_type_to_attacks_map: Dict[
- VulnerabilityType, List[SimulatedAttack]
+ VulnerabilityType, List[RTTestCase]
] = {}
for simulated_attack in simulated_attacks: