Repository navigation
fix(gooddata-eval): show alert proposal filters, score created alerts only #1984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ def _extract_metric_id(metric_str: str) -> str | None: | |
| def _extract_automation_id(tool_event) -> str | None: | ||
| """Real server-assigned id of the automation this call created. | ||
|
|
||
| Mirrors ``core/agentic/alert_skill.py``'s ``_extract_alert_call`` — the id | ||
| Mirrors ``core/agentic/alert_skill.py``'s ``_created_alert_id`` — the id | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: "Mirrors
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, this is a follow-up for a separate PR. The nightly runs in gdc-nas use only the agentic path ( |
||
| lives in the tool *result* (what the server assigned), not the tool call | ||
| *arguments* (what the agent asked for). | ||
| """ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When every
create_metric_alertcall in a turn fails and the agent writes no text, the simulated user is asked to reply to an empty message:calls.calledis True andcalls.createdis False, so the loop goes on (L1126–1131).render_turn_for_simulated_userrenders only the answer text and the last proposal. It does not render tool results, soresponse_textis"".chat_result.tool_call_eventsis not empty.generate_simulated_alert_responseis called with an empty agent message. The reply is unpredictable, and it spends one of the run's turns.Before this PR, that turn ended the run, so this path is new. Could you handle it? Either option works for me:
Whichever you choose, a test like
_run_turns(_turn(_create_call(_REGISTRY_ERROR), text=""), _turn(...), max_iterations=2)would pin the behaviour. It could assert that the simulated user is not called, or that it receives the error.Related, optional: a run whose create calls all failed currently ends as
BUDGET_EXHAUSTED, the same label as a run that simply ran out of turns. A dedicated exit reason (e.g.CREATE_FAILED) would let reports separate "the tool rejected the alert" from "the agent never got there".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3001fd5 with the first option. When every create call failed and the agent wrote no text, the run now ends as
AGENT_SILENT. The simulated user is not called, so no turn is spent on an empty message. I also updated theAGENT_SILENTdocstring inmodels.py.test_the_run_ends_when_the_agent_says_nothing_after_every_create_call_failedpins it: the simulated user is not called, only one turn is sent, and nothing is deleted.I left the dedicated exit reason out of this PR. A new
LoopExitvalue changes how runs are labelled and what the gdc-nas reports read, so it fits better in a separate change. For now a run whose create calls all failed can be told apart from one that ran out of turns: it has non-emptyactual_alert_argumentswithalert_created=False, and the failed calls are in itstool_call_events.