Skip to content

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

fix: resolve CLI startup error with Roleplay attack initialization

karan kulshrestha87818039fd94
diff --git a/deepteam/cli/main.py b/deepteam/cli/main.py
index 60d5c1a6..2e430419 100644
--- a/deepteam/cli/main.py
+++ b/deepteam/cli/main.py
@@ -77,7 +77,8 @@ ATTACK_CLASSES = [
SequentialJailbreak,
BadLikertJudge,
]
-ATTACK_MAP = {cls().get_name(): cls for cls in ATTACK_CLASSES}
+
+ATTACK_MAP = {cls.__name__: cls for cls in ATTACK_CLASSES}
def _build_vulnerability(cfg: dict, custom: bool):