Add judge_language config plumbing (settings + scenario + ScoreRequest)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
wangwei
2026-07-01 17:47:21 +08:00
co-authored by Copilot
parent 03e682b89c
commit 4a646b6b9c
6 changed files with 95 additions and 0 deletions
+3
View File
@@ -79,6 +79,9 @@ class Scenario:
optimization_advisor: bool = False
metric_weights: dict[str, float] = field(default_factory=dict)
doc_weights: dict[str, float] = field(default_factory=dict)
# Language used for judge prompts: 'en' (default, English) or 'zh' (Chinese).
# None means "use the global settings default".
judge_language: str | None = None
def snapshot(self) -> dict[str, Any]:
"""Serialize the scenario into a reporting-friendly dictionary snapshot."""