Skip to content

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

lint

A-Vamshi1ef460bd738d
diff --git a/deepteam/red_teamer/red_teamer.py b/deepteam/red_teamer/red_teamer.py
index fdc40a7d..76a1398f 100644
--- a/deepteam/red_teamer/red_teamer.py
+++ b/deepteam/red_teamer/red_teamer.py
@@ -73,7 +73,7 @@ class RedTeamer:
raise ValueError(
"You must either provide a 'framework' or 'vulnerabilities'"
)
-
+
if framework and (vulnerabilities or attacks):
raise ValueError(
"You can only pass either 'framework' or 'attacks' and 'vulnerabilities' at the same time"
@@ -246,7 +246,7 @@ class RedTeamer:
raise ValueError(
"You must either provide a 'framework' or 'vulnerabilities'"
)
-
+
if framework and (vulnerabilities or attacks):
raise ValueError(
"You can only pass either 'framework' or 'attacks' and 'vulnerabilities' at the same time"