Skip to content

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

lint

A-Vamshi2c0412be609e
diff --git a/deepteam/frameworks/constants.py b/deepteam/frameworks/constants.py
index 95eac144..07a6f927 100644
--- a/deepteam/frameworks/constants.py
+++ b/deepteam/frameworks/constants.py
@@ -5,28 +5,10 @@ from .nist.nist import NIST
from .mitre.mitre import MITRE
-FRAMEWORKS_MAP = {
- f.name: f
- for f in [
- OWASPTop10,
- NIST,
- MITRE
- ]
-}
+FRAMEWORKS_MAP = {f.name: f for f in [OWASPTop10, NIST, MITRE]}
FRAMEWORK_RISK_CATEGORIES_MAP = {
- f.name: f.ALLOWED_TYPES
- for f in [
- OWASPTop10,
- NIST,
- MITRE
- ]
+ f.name: f.ALLOWED_TYPES for f in [OWASPTop10, NIST, MITRE]
}
-DATASET_FRAMEWORKS_MAP = {
- f.name: f
- for f in [
- Aegis,
- BeaverTails
- ]
-}
\ No newline at end of file
+DATASET_FRAMEWORKS_MAP = {f.name: f for f in [Aegis, BeaverTails]}
diff --git a/deepteam/frameworks/mitre/mitre.py b/deepteam/frameworks/mitre/mitre.py
index 2bf56f02..533eda0e 100644
--- a/deepteam/frameworks/mitre/mitre.py
+++ b/deepteam/frameworks/mitre/mitre.py
@@ -16,6 +16,7 @@ Each category includes:
Reference: https://attack.mitre.org
"""
+
class MITRE(AISafetyFramework):
name = "MITRE"
ALLOWED_TYPES = [
diff --git a/deepteam/frameworks/nist/nist.py b/deepteam/frameworks/nist/nist.py
index ad711613..36a986a6 100644
--- a/deepteam/frameworks/nist/nist.py
+++ b/deepteam/frameworks/nist/nist.py
@@ -18,6 +18,7 @@ Each category includes:
Reference: https://www.nist.gov/itl/ai-risk-management-framework
"""
+
class NIST(AISafetyFramework):
name = "NIST"
ALLOWED_TYPES = ["measure_1", "measure_2", "measure_3", "measure_4"]
diff --git a/deepteam/frameworks/owasp/owasp.py b/deepteam/frameworks/owasp/owasp.py
index 0f192429..f8c8140f 100644
--- a/deepteam/frameworks/owasp/owasp.py
+++ b/deepteam/frameworks/owasp/owasp.py
@@ -20,6 +20,7 @@ Each category includes:
Reference: https://genai.owasp.org/llm-top-10/
"""
+
class OWASPTop10(AISafetyFramework):
name: str = "OWASP"
ALLOWED_TYPES = [