Commit e8b1608
fix: use getattr instead of isinstance for criterion check
The criterion may be deserialized as BaseCriterion (which accepts extra
fields via extra="allow") rather than RubricsBasedCriterion, so isinstance
check fails even when evaluate_full_response is present. Using getattr
with a default handles both cases.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1d0a721 commit e8b1608
1 file changed
Lines changed: 1 addition & 4 deletions
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 283 | + | |
287 | 284 | | |
288 | 285 | | |
289 | 286 | | |
| |||
0 commit comments