Enhance evaluation runner with transcript handling and new case formats

- Updated the evaluation runner to support live dialogue printing and transcript saving in both Markdown and JSON formats.
- Introduced new data classes for managing transcripts and their components, improving structure and readability.
- Modified existing YAML case files to align with the new direct client mode and updated stage codes.
- Added new test cases for the direct client mode, ensuring comprehensive coverage of user interactions.
This commit is contained in:
Xin Wang
2026-07-29 11:13:07 +08:00
parent e6437ab332
commit 4e621e2f0c
5 changed files with 406 additions and 34 deletions

View File

@@ -2,6 +2,102 @@ name: direct_initial_stage
clientMode: direct
steps:
- input: hi
- input: 新对话
expect:
stageCode: "1001"
- input: 继续办理
expect:
stageCode: "1002"
- input: 十分钟之前两车追尾
expect:
stageCode: "1002"
- input: 没有
expect:
stageCode: "1002"
- input: 没有
expect:
stageCode: "1002"
- input: 十分钟之前
expect:
stageCode: "1002"
- input:
expect:
stageCode: "1002"
- input: 是的
expect:
stageCode: "1002"
- input:
expect:
stageCode: "2010"
- input: 【拍摄完成】
expect:
stageCode: "2011"
- input: 【拍摄完成】
expect:
stageCode: "2012"
- input: 【拍摄完成】
expect:
stageCode: "2013"
- input: 【拍摄完成】
expect:
stageCode: "2014"
- input: 【拍摄完成】
expect:
stageCode: "2015"
- input: 【拍摄完成】
expect:
stageCode: "2016"
- input: 没错
expect:
stageCode: "1002"
- input:
expect:
stageCode: "1002"
- input: 李四
expect:
stageCode: "1002"
- input:
expect:
stageCode: "1002"
- input:
expect:
stageCode: "1002"
- input: 移交完毕
expect:
stageCode: "1002"
- input:
expect:
stageCode: "1002"
- input: 刘云
expect:
stageCode: "1002"
- input: 对的
expect:
stageCode: "1002"
- input:
expect:
stageCode: "0000"