Skip to content

Commit faeb63a

Browse files
slister1001Copilot
andauthored
[evaluation] add deprecation warning for AdversarialSimulator (#42412)
* add deprecation warning * Update sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/simulator/_adversarial_simulator.py Co-authored-by: Copilot <[email protected]> * copilot suggestion --------- Co-authored-by: Copilot <[email protected]>
1 parent 13fc916 commit faeb63a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/simulator/_adversarial_simulator.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import random
99
from typing import Any, Callable, Dict, List, Optional, Union, cast
1010
import uuid
11+
import warnings
1112

1213
from tqdm import tqdm
1314

@@ -68,6 +69,13 @@ class AdversarialSimulator:
6869

6970
def __init__(self, *, azure_ai_project: Union[str, AzureAIProject], credential: TokenCredential):
7071
"""Constructor."""
72+
warnings.warn(
73+
"DEPRECATION NOTE: Azure AI Evaluation SDK has discontinued active development on the AdversarialSimulator class."
74+
+ " While existing functionality remains available in preview, it is no longer recommended for production workloads or future integration. "
75+
+ "We recommend users migrate to the AI Red Teaming Agent for future use as it supports full parity of functionality.",
76+
DeprecationWarning,
77+
stacklevel=2,
78+
)
7179

7280
if is_onedp_project(azure_ai_project):
7381
self.azure_ai_project = azure_ai_project

0 commit comments

Comments
 (0)