Skip to content

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

added RiskCategory class

A-Vamshi6179714e8343
diff --git a/deepteam/frameworks/risk_category.py b/deepteam/frameworks/risk_category.py
new file mode 100644
index 00000000..b42ba0e3
--- /dev/null
+++ b/deepteam/frameworks/risk_category.py
@@ -0,0 +1,13 @@
+from typing import List, Optional
+from deepteam.vulnerabilities import (
+ BaseVulnerability,
+)
+from deepteam.attacks import BaseAttack
+from dataclasses import dataclass
+
+
+@dataclass
+class RiskCategory:
+ name: str
+ vulnerabilities: List[BaseVulnerability]
+ attacks: List[BaseAttack]