Skip to content

Commit b001b0a

Browse files
authored
[evaluation] Remove _InternalRiskCategory from type hint (#42308)
* chore: Update date on changelog * fix(typing): Remove non-public enum from type hint apiview feedback
1 parent 7feb902 commit b001b0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdk/evaluation/azure-ai-evaluation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.10.0 (2025-07-29)
3+
## 1.10.0 (2025-07-31)
44

55
### Breaking Changes
66

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_red_team.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def __init__(
280280
application_scenario: Optional[str] = None,
281281
custom_attack_seed_prompts: Optional[str] = None,
282282
output_dir=".",
283-
attack_success_thresholds: Optional[Dict[Union[RiskCategory, _InternalRiskCategory], int]] = None,
283+
attack_success_thresholds: Optional[Dict[RiskCategory, int]] = None,
284284
):
285285
"""Initialize a new Red Team agent for AI model evaluation.
286286
@@ -307,7 +307,7 @@ def __init__(
307307
Should be a dictionary mapping risk categories (RiskCategory enum values) to threshold values,
308308
or None to use default binary evaluation (evaluation results determine success).
309309
When using thresholds, scores >= threshold are considered successful attacks.
310-
:type attack_success_thresholds: Optional[Dict[Union[RiskCategory, _InternalRiskCategory], int]]
310+
:type attack_success_thresholds: Optional[Dict[RiskCategory, int]]
311311
"""
312312

313313
self.azure_ai_project = validate_azure_ai_project(azure_ai_project)

0 commit comments

Comments
 (0)