mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-29 03:11:51 +02:00
Merge pull request #345 from Anai-Guo/fix/hybrid-classifier-self-annotation
fix(refusal_classifier): quote self-referential annotation to fix import NameError
This commit is contained in:
@@ -86,7 +86,7 @@ class HybridRefusalClassifier:
|
|||||||
detector: RefusalDetector,
|
detector: RefusalDetector,
|
||||||
weight: float = 1.0,
|
weight: float = 1.0,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
) -> HybridRefusalClassifier:
|
) -> "HybridRefusalClassifier":
|
||||||
"""Add a detection method with specified weight.
|
"""Add a detection method with specified weight.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
Reference in New Issue
Block a user