feat: add metric_weights and doc_weights to Scenario schema and dataclass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-18 16:50:33 +08:00
parent e0b064587f
commit 8617eaa5aa
4 changed files with 64 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ class Scenario:
app_adapter: AppAdapterConfig | None = None
source_path: Path | None = None
optimization_advisor: bool = False
metric_weights: dict[str, float] = field(default_factory=dict)
doc_weights: dict[str, float] = field(default_factory=dict)
def snapshot(self) -> dict[str, Any]:
"""Serialize the scenario into a reporting-friendly dictionary snapshot."""