Skip to content

Commit 35f697a

Browse files
huyenthanh09claude
andcommitted
feat(gooddata-eval): any_of alert expectations and first-proposal checks
- `any_of`: complete alternatives for an alert item. Each option replaces some fields (every spelling of them) and keeps the rest, and a run passes when it matches one option in full, so a threshold and the period it is measured over are matched together - `check_first_proposal: [filters, recipients]`: also score the first proposal the user saw, before the simulated user could correct it (`alert_initial_filters_correct`, `alert_initial_recipients_correct`) - The simulated user is told every combination (rule 9) and accepts a proposal only when it matches one of them in full - Cleanup also deletes an alert the agent named in a proposal or create call when it exists after the run but not before it, for creates whose event never reached the harness; the listing reads every page and an incomplete listing deletes nothing - Current-user lookup covers options that name "me" jira: QA-30232 risk: low Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 78f0ab9 commit 35f697a

4 files changed

Lines changed: 796 additions & 17 deletions

File tree

‎packages/gooddata-eval/src/gooddata_eval/core/agentic/_catalog.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ class CatalogMetricAlert:
8383
"""Date dataset an ANOMALY alert detects on; ``None`` means unasserted."""
8484
setup_turns: tuple[str, ...] = ()
8585
"""Messages sent in the same conversation before the question, not scored."""
86+
alternatives: tuple[CatalogMetricAlert, ...] = ()
87+
"""Complete expectations any one of which passes (``any_of``); empty means this one alone."""
88+
check_first_proposal: tuple[str, ...] = ()
89+
"""Fields (``filters``, ``recipients``) also scored on the first proposal, before the simulated user replies."""
8690

8791
@classmethod
8892
def from_dict(cls, d: dict) -> CatalogMetricAlert:

0 commit comments

Comments
 (0)