-
Notifications
You must be signed in to change notification settings - Fork 143
feat(weave): add Widget types and extend set_view for complex items #6009
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: feat/view-spec-ref-schema
Are you sure you want to change the base?
feat(weave): add Widget types and extend set_view for complex items #6009
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
dc9c1d9 to
e1075a7
Compare
2fd6678 to
1ce2762
Compare
667e7b8 to
c64edba
Compare
4e4ebb6 to
e5ce748
Compare
9e92d48 to
3487713
Compare
e5ce748 to
f4d4fb4
Compare
Introduces Widget types for custom call views and extends set_view to accept more complex view specifications including Widgets, Tables, and lists of items. Changes: - Add weave/trace/widgets.py with Widget base class and ScoreSummaryWidget, ChildPredictionsWidget types for evaluation views - Export Widget, ScoreSummaryWidget, ChildPredictionsWidget, and Table from weave package - Extend set_view to accept ViewSpec (Content, string, Widget, Table, or list) - Add serialize_view_item and serialize_view_spec helpers Views are still stored in summary.weave.views for backward compatibility.
f4d4fb4 to
204c277
Compare
|
❌ Documentation Reference Check Failed No documentation reference found in the PR description. Please add either:
This check is required for all PRs that start with "feat(weave)" unless they explicitly state "docs are not required". Please update your PR description and this check will run again automatically. |

Summary
Introduces Widget types for custom call views and extends
set_viewto accept more complex view specifications including Widgets, Tables, and lists of items. Views are still stored insummary.weave.viewsfor backward compatibility.Changes
weave/trace/widgets.pywith:Widgetbase classScoreSummaryWidgetfor displaying evaluation score summariesChildPredictionsWidgetfor displaying child prediction callsWidget,ScoreSummaryWidget,ChildPredictionsWidget, andTablefrom weave packageset_viewto acceptViewSpectype (Content, string, Widget, Table, or list of these)serialize_view_itemandserialize_view_spechelpers