Skip to content

Fix #85: Pass metric_scores from error entries in _compute_failure_analysis#155

Merged
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix-85-metric-scores-failure-analysis
Jul 15, 2026
Merged

Fix #85: Pass metric_scores from error entries in _compute_failure_analysis#155
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix-85-metric-scores-failure-analysis

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Description

This fixes issue #85 - _compute_failure_analysis() in reports/base.py constructs FailureInfo objects from error entries but silently ignores any metric_scores that may be present in those entries. The FailureInfo dataclass has a metric_scores field (defaulting to {}), but it was never populated even when the error entry contains metric score data.

Changes

  • Added metric_scores=error_entry.get("metric_scores", {}) to the FailureInfo constructor call

Related

Fixes #85


Support open-source contributions: https://buymeacoffee.com/muhamedfazalps

@himanshu231204 himanshu231204 merged commit 16c6c1c into OpenAgentHQ:main Jul 15, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @fazalpsinfo-cmyk!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reports(base): _compute_failure_analysis silently drops metric_scores from error entries

2 participants