Skip to content

Commit c26514b

Browse files
authored
Merge pull request #1867 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-ai-docs (branch main)
2 parents 943089b + d207de8 commit c26514b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

articles/ai-studio/how-to/develop/simulator-interaction-data.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ The `AdversarialSimulator` supports a range of scenarios, hosted in the service,
398398
| Grounded Content Generation (single turn only) | `ADVERSARIAL_CONTENT_GEN_GROUNDED` |475 |Hateful and unfair content, Sexual content, Violent content, Self-harm-related content, Direct Attack (UPIA) Jailbreak |
399399
| Protected Material (single turn only) | `ADVERSARIAL_PROTECTED_MATERIAL` | 306 | Protected Material |
400400

401-
- For testing groundedness scenarios (single or multi-turn), see the section on [simulating and evaluating for groundendess](#simulating-and-evaluating-for-groundendess).
401+
- For testing groundedness scenarios (single or multi-turn), see the section on [simulating and evaluating for groundedness](#simulating-and-evaluating-for-groundendess).
402402
- For simulating direct attack (UPIA) and indirect attack (XPIA) scenarios, see section on [simulating jailbreak attacks](#simulating-jailbreak-attacks).
403403

404404
### Simulating jailbreak attacks
@@ -510,13 +510,17 @@ Using the [ISO standard](https://www.andiamo.co.uk/resources/iso-language-codes/
510510
| Simplified Chinese | zh-cn |
511511
| German | de |
512512

513+
The language options can be passed in as an optional parameter to the `AdversarialSimulator` class using the [`SupportedLanguages` class](/python/api/azure-ai-evaluation/azure.ai.evaluation.simulator.supportedlanguages).
514+
513515
Usage example below:
514516

515517
```python
518+
from azure.ai.evaluation.simulator import SupportedLanguages
519+
516520
outputs = await simulator(
517521
scenario=scenario, # required, adversarial scenario to simulate
518522
target=callback, # required, callback function to simulate against
519-
language=es # optional, default english
523+
language=SupportedLanguages.Spanish # optional, default english
520524
)
521525
```
522526

0 commit comments

Comments
 (0)