-
Notifications
You must be signed in to change notification settings - Fork 26
Fix Action Completion metric broken by platform change #13
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -214,10 +214,24 @@ def process_experiment(exp, model): | |
| else: | ||
| print(f"average_tool_selection_quality not found in experiment {exp.name}, proceeding without it") | ||
|
|
||
| # Look up the action completion metric by key. | ||
| # The key changed from 'average_agentic_session_success' to a | ||
| # custom metric name after a Galileo platform update (see #12). | ||
| action_completion = None | ||
| props = exp.aggregate_metrics.additional_properties | ||
| for key in ("average_action_completion___agent_leaderboard", | ||
| "average_Action Completion - Agent Leaderboard", | ||
| "average_agentic_session_success"): | ||
| if key in props: | ||
| action_completion = round(props[key], 2) | ||
| break | ||
| if action_completion is None: | ||
|
Comment on lines
+217
to
+228
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. Missing metric is reported only via Finding type: Want Baz to fix this for you? Activate Fixer Other fix methodsPrompt for AI Agents:
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. Skipping this one — the entire codebase uses print() for diagnostics, so switching just this spot to a logger would be inconsistent. Can be a separate cleanup. 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. Understood—keeping it consistent with the rest of the codebase makes sense for now, and deferring logger cleanup to a separate pass is reasonable. |
||
| print(f"Action completion metric not found in experiment {exp.name}, proceeding without it") | ||
|
|
||
| result = { | ||
| 'experiment_name': exp.name, | ||
| 'total_responses': exp.aggregate_metrics.additional_properties['total_responses'], | ||
| 'average_action_completion': round(exp.aggregate_metrics.additional_properties['average_agentic_session_success'], 2), | ||
| 'average_action_completion': action_completion, | ||
| 'average_tool_selection_quality': tool_selection_quality, | ||
| 'model': final_model_name, | ||
| 'category': category | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.