Skip to content

Commit 2e9481e

Browse files
authored
[evaluation] Fix xpia simulator logging warning (Azure#37351)
* Remove Optional type annotation from get() methods * Remove duplicate overloads * Include xpia in handled_metrics for evaluation aggregation * Remove jailbreak_type param from logging attributes * Rename xpia_simulator.py to indirect_attack_simulator.py' * Remove old commits
1 parent d2d638d commit 2e9481e

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .adversarial_scenario import AdversarialScenario
22
from .adversarial_simulator import AdversarialSimulator
33
from .direct_attack_simulator import DirectAttackSimulator
4-
from .xpia_simulator import IndirectAttackSimulator
4+
from .indirect_attack_simulator import IndirectAttackSimulator
55

66
__all__ = ["AdversarialSimulator", "AdversarialScenario", "DirectAttackSimulator", "IndirectAttackSimulator"]

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/synthetic/adversarial_simulator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ def wrapper(*args, **kwargs):
4444
scenario = str(kwargs.get("scenario", None))
4545
max_conversation_turns = kwargs.get("max_conversation_turns", None)
4646
max_simulation_results = kwargs.get("max_simulation_results", None)
47-
_jailbreak_type = kwargs.get("_jailbreak_type", None)
4847
decorated_func = monitor_operation(
4948
activity_name="adversarial.simulator.call",
5049
activity_type=ActivityType.PUBLICAPI,
5150
custom_dimensions={
5251
"scenario": scenario,
5352
"max_conversation_turns": max_conversation_turns,
5453
"max_simulation_results": max_simulation_results,
55-
"_jailbreak_type": _jailbreak_type,
5654
},
5755
)(func)
5856

0 commit comments

Comments
 (0)