Build an evaluation test set from real conversations
cs_test_set_from_transcriptsCreate an import-ready CSV from actual Copilot transcripts, prioritizing the most frequent failed sessions to generate regression test cases for evaluation.
Instructions
Write the portal's import CSV from questions people actually asked, most frequent first, instead of guessing from the workspace. onlyFailed (default true) keeps the sessions that escalated, went unanswered or were abandoned, which are the ones worth turning into regression cases. Read-only apart from writing the file; import it once in the portal, then cs_run_evaluation automates the runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum sessions to read (default 100, max 500) | |
| days | No | Only sessions from the last N days | |
| botId | No | Agent (bot) id. Defaults to workspace sync metadata or CPS_AGENT_ID. | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| maxCases | No | Maximum cases in the CSV (portal limit is 100) | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| onlyFailed | No | Default true: only sessions that escalated, went unresolved or were abandoned | |
| outputPath | No | Default <workspace>/../<agent>-transcript-testset.csv | |
| environmentId | No | Power Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID. |