Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c1dd47f
Remove Optional type annotation from get() methods
diondrapeck Mar 4, 2024
48961be
Remove duplicate overloads
diondrapeck Mar 4, 2024
a2ed582
Resolve merge conflict
diondrapeck Apr 23, 2024
2e6be22
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Apr 24, 2024
4e1fc5c
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Apr 25, 2024
dc352b9
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Apr 30, 2024
a33d587
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Apr 30, 2024
771a72c
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck May 1, 2024
c2c450e
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck May 1, 2024
4dd2ffd
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck May 2, 2024
6f8c818
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck May 20, 2024
2a3d3a6
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jun 26, 2024
05fd6a6
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 2, 2024
bbeffa8
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 2, 2024
62750ce
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 5, 2024
f4fd48b
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 15, 2024
78965ad
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 22, 2024
f741f55
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 23, 2024
452f8a6
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Jul 24, 2024
4e05d17
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Sep 11, 2024
8629de8
Include xpia in handled_metrics for evaluation aggregation
diondrapeck Sep 11, 2024
9f27fa2
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python
diondrapeck Sep 12, 2024
0ac7524
Remove jailbreak_type param from logging attributes
diondrapeck Sep 12, 2024
58517d6
Rename xpia_simulator.py to indirect_attack_simulator.py'
diondrapeck Sep 12, 2024
a98e3c1
Remove old commits
diondrapeck Sep 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .adversarial_scenario import AdversarialScenario
from .adversarial_simulator import AdversarialSimulator
from .direct_attack_simulator import DirectAttackSimulator
from .xpia_simulator import IndirectAttackSimulator
from .indirect_attack_simulator import IndirectAttackSimulator

__all__ = ["AdversarialSimulator", "AdversarialScenario", "DirectAttackSimulator", "IndirectAttackSimulator"]
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ def wrapper(*args, **kwargs):
scenario = str(kwargs.get("scenario", None))
max_conversation_turns = kwargs.get("max_conversation_turns", None)
max_simulation_results = kwargs.get("max_simulation_results", None)
_jailbreak_type = kwargs.get("_jailbreak_type", None)
decorated_func = monitor_operation(
activity_name="adversarial.simulator.call",
activity_type=ActivityType.PUBLICAPI,
custom_dimensions={
"scenario": scenario,
"max_conversation_turns": max_conversation_turns,
"max_simulation_results": max_simulation_results,
"_jailbreak_type": _jailbreak_type,
},
)(func)

Expand Down