Skip to content

Commit a267897

Browse files
committed
Update language param to use SupportedLanguages enum
1 parent ec569af commit a267897

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,13 +507,15 @@ Using the [ISO standard](https://www.andiamo.co.uk/resources/iso-language-codes/
507507
| Simplified Chinese | zh-cn |
508508
| German | de |
509509

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+
510512
Usage example below:
511513

512514
```python
513515
outputs = await simulator(
514516
scenario=scenario, # required, adversarial scenario to simulate
515517
target=callback, # required, callback function to simulate against
516-
language=es # optional, default english
518+
language=SupportedLanguages.Spanish # optional, default english
517519
)
518520
```
519521

0 commit comments

Comments
 (0)