Skip to content

Conversation

@bcsherma
Copy link
Member

@bcsherma bcsherma commented Jan 29, 2026

Summary

Introduces Widget types for custom call views and extends set_view to accept more complex view specifications including Widgets, Tables, and lists of items. Views are still stored in summary.weave.views for backward compatibility.

Changes

  • Add weave/trace/widgets.py with:
    • Widget base class
    • ScoreSummaryWidget for displaying evaluation score summaries
    • ChildPredictionsWidget for displaying child prediction calls
  • Export Widget, ScoreSummaryWidget, ChildPredictionsWidget, and Table from weave package
  • Extend set_view to accept ViewSpec type (Content, string, Widget, Table, or list of these)
  • Add serialize_view_item and serialize_view_spec helpers

Copy link
Member Author

bcsherma commented Jan 29, 2026

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.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 71.87500% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/trace/view_utils.py 52.63% 5 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

@bcsherma bcsherma force-pushed the feat/view-spec-ref-schema branch from dc9c1d9 to e1075a7 Compare January 29, 2026 01:20
@bcsherma bcsherma force-pushed the feat/widget-types-extended-set-view branch 2 times, most recently from 2fd6678 to 1ce2762 Compare January 29, 2026 01:43
@bcsherma bcsherma force-pushed the feat/view-spec-ref-schema branch 2 times, most recently from 667e7b8 to c64edba Compare January 29, 2026 01:46
@bcsherma bcsherma force-pushed the feat/widget-types-extended-set-view branch 2 times, most recently from 4e4ebb6 to e5ce748 Compare January 29, 2026 02:30
@bcsherma bcsherma force-pushed the feat/view-spec-ref-schema branch 2 times, most recently from 9e92d48 to 3487713 Compare January 29, 2026 03:35
@bcsherma bcsherma force-pushed the feat/widget-types-extended-set-view branch from e5ce748 to f4d4fb4 Compare January 29, 2026 03:35
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.
@bcsherma bcsherma force-pushed the feat/widget-types-extended-set-view branch from f4d4fb4 to 204c277 Compare January 29, 2026 03:49
@github-actions
Copy link
Contributor

❌ 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.

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.

2 participants