You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/develop/simulator-interaction-data.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -507,13 +507,15 @@ Using the [ISO standard](https://www.andiamo.co.uk/resources/iso-language-codes/
507
507
| Simplified Chinese | zh-cn |
508
508
| German | de |
509
509
510
+
The language options can be passed in as an optional parameter to the `AdversarialSimulator` class using the [`SupportedLanguages` class](https://learn.microsoft.com/python/api/azure-ai-evaluation/azure.ai.evaluation.simulator.supportedlanguages?view=azure-python-preview).
511
+
510
512
Usage example below:
511
513
512
514
```python
513
515
outputs =await simulator(
514
516
scenario=scenario, # required, adversarial scenario to simulate
515
517
target=callback, # required, callback function to simulate against
516
-
language=es# optional, default english
518
+
language=SupportedLanguages.Spanish# optional, default english
0 commit comments