We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f488d01 commit 07b029aCopy full SHA for 07b029a
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_utils/metric_mapping.py
@@ -63,4 +63,8 @@ def get_attack_objective_from_risk_category(risk_category: Union[RiskCategory])
63
:return: The corresponding attack objective string
64
:rtype: str
65
"""
66
- return "isa" if risk_category == RiskCategory.UngroundedAttributes else risk_category.value
+ return (
67
+ "isa"
68
+ if risk_category == RiskCategory.UngroundedAttributes
69
+ else "xpia" if risk_category == RiskCategory.IndirectAttack else risk_category.value
70
+ )
0 commit comments