Create an evaluation test set (CSV for import)
cs_create_test_set_csvWrites the CSV that Copilot Studio’s Evaluation page imports (Question, Expected response; max 100 cases), since test sets can’t be created via API; then automate runs with cs_run_evaluation.
Instructions
Write the CSV the portal's Evaluation page imports (columns Question, Expected response; max 100 cases). Test sets cannot be created through the API, so this file is imported once in the portal; runs and results are then automated via cs_run_evaluation. suggestFromWorkspace derives cases from topics, starters and knowledge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cases | No | ||
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| outputPath | No | Default <workspace>/../<agent>-testset.csv | |
| maxSuggested | No | ||
| suggestFromWorkspace | No |