DeepTeam is a framework to red team LLMs and AI agents.
Framework constants
A-Vamshif2a12d3bfedf
diff --git a/deepteam/frameworks/aegis/aegis.py b/deepteam/frameworks/aegis/aegis.pyindex 00b18e3c..d13f0c27 100644--- a/deepteam/frameworks/aegis/aegis.py+++ b/deepteam/frameworks/aegis/aegis.py@@ -29,6 +29,7 @@ Reference: https://huggingface.co/datasets/nvidia/Aegis-AI-Content-Safety-Dataseclass Aegis(AISafetyFramework):_DATASET = "nvidia/Aegis-AI-Content-Safety-Dataset-1.0"+ name = "Aegis"def __init__(self,diff --git a/deepteam/frameworks/beavertails/beavertails.py b/deepteam/frameworks/beavertails/beavertails.pyindex dcbc6478..b912c18e 100644--- a/deepteam/frameworks/beavertails/beavertails.py+++ b/deepteam/frameworks/beavertails/beavertails.py@@ -30,6 +30,7 @@ Reference: https://huggingface.co/datasets/PKU-Alignment/BeaverTailsclass BeaverTails(AISafetyFramework):_DATASET = "PKU-Alignment/BeaverTails"+ name = "BeaverTails"def __init__(self,diff --git a/deepteam/frameworks/constants.py b/deepteam/frameworks/constants.pynew file mode 100644index 00000000..95eac144--- /dev/null+++ b/deepteam/frameworks/constants.py@@ -0,0 +1,32 @@+from .aegis.aegis import Aegis+from .beavertails.beavertails import BeaverTails+from .owasp.owasp import OWASPTop10+from .nist.nist import NIST+from .mitre.mitre import 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+ ]+}++DATASET_FRAMEWORKS_MAP = {+ f.name: f+ for f in [+ Aegis,+ BeaverTails+ ]+}\ No newline at end of filediff --git a/deepteam/frameworks/mitre/mitre.py b/deepteam/frameworks/mitre/mitre.pyindex d2472627..2bf56f02 100644--- a/deepteam/frameworks/mitre/mitre.py+++ b/deepteam/frameworks/mitre/mitre.py@@ -16,17 +16,17 @@ Each category includes:Reference: https://attack.mitre.org"""-ALLOWED_TYPES = [- "reconnaissance",- "resource_development",- "initial_access",- "ml_attack_staging",- "exfiltration",- "impact",-]--class MITRE(AISafetyFramework):+ name = "MITRE"+ ALLOWED_TYPES = [+ "reconnaissance",+ "resource_development",+ "initial_access",+ "ml_attack_staging",+ "exfiltration",+ "impact",+ ]+def __init__(self,categories: List[diff --git a/deepteam/frameworks/nist/nist.py b/deepteam/frameworks/nist/nist.pyindex 79c3208d..ad711613 100644--- a/deepteam/frameworks/nist/nist.py+++ b/deepteam/frameworks/nist/nist.py@@ -18,10 +18,10 @@ Each category includes:Reference: https://www.nist.gov/itl/ai-risk-management-framework"""-ALLOWED_TYPES = ["measure_1", "measure_2", "measure_3", "measure_4"]--class NIST(AISafetyFramework):+ name = "NIST"+ ALLOWED_TYPES = ["measure_1", "measure_2", "measure_3", "measure_4"]+def __init__(self,categories: List[diff --git a/deepteam/frameworks/owasp/owasp.py b/deepteam/frameworks/owasp/owasp.pyindex 432c7f05..0f192429 100644--- a/deepteam/frameworks/owasp/owasp.py+++ b/deepteam/frameworks/owasp/owasp.py@@ -20,21 +20,20 @@ Each category includes:Reference: https://genai.owasp.org/llm-top-10/"""-ALLOWED_TYPES = [- "LLM_01",- "LLM_02",- "LLM_03",- "LLM_04",- "LLM_05",- "LLM_06",- "LLM_07",- "LLM_08",- "LLM_09",- "LLM_10",-]--class OWASPTop10(AISafetyFramework):+ name: str = "OWASP"+ ALLOWED_TYPES = [+ "LLM_01",+ "LLM_02",+ "LLM_03",+ "LLM_04",+ "LLM_05",+ "LLM_06",+ "LLM_07",+ "LLM_08",+ "LLM_09",+ "LLM_10",+ ]def __init__(self,