Commit e50041e
feat!: remove evaluation_metric_keys plural field from AIJudgeConfig and AIJudgeConfigDefault
The plural `evaluation_metric_keys` field is removed from both
`AIJudgeConfig` and `AIJudgeConfigDefault`. Defaults should only set
the singular `evaluation_metric_key`. The client read path still
accepts the plural `evaluationMetricKeys` from a variation payload and
falls back to its first element when the singular is not set, so older
flag values continue to resolve a metric key.
BREAKING CHANGE: `evaluation_metric_keys` is no longer a field on
`AIJudgeConfig` or `AIJudgeConfigDefault`. Construct these dataclasses
with `evaluation_metric_key` (singular) instead. The wire-format
`evaluationMetricKeys` plural is still read from variations for
backward compatibility with older AI configs and is mapped onto the
singular field on the returned `AIJudgeConfig`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d65f30c commit e50041e
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
| |||
345 | 343 | | |
346 | 344 | | |
347 | 345 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 346 | | |
352 | 347 | | |
353 | 348 | | |
| |||
356 | 351 | | |
357 | 352 | | |
358 | 353 | | |
359 | | - | |
360 | | - | |
361 | 354 | | |
362 | 355 | | |
363 | 356 | | |
| |||
0 commit comments