lumen
lumen copied to clipboard
Add holoviews agent
Resolves #1231
More fixes to translate.py, prevent nested models from being streamed (since the model seems to switch between correct models then wrong models between each chunk), adds a base view between hvPlotView and HoloViewsView
HoloViewsAgent now works in Lumen after changing | to Union[..., None] in the translator while that's being fixed in instructor.
Then, I found a bunch of edge cases in the translator where pet = param.ClassSelector(class_=(Dog, Cat)) wasn't properly translating to pet: Union[Dog, Cat], handling instantiate=False and proposed that we migrate translate.py to param https://github.com/holoviz/param/issues/828#issuecomment-2878253054
Just need to wrap up translating operations and fixing those warnings
Codecov Report
Attention: Patch coverage is 67.27273% with 144 lines in your changes missing coverage. Please review.
Project coverage is 57.04%. Comparing base (
4b47e4f) to head (25d05f1).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| lumen/ai/translate.py | 71.32% | 82 Missing :warning: |
| lumen/views/base.py | 68.53% | 28 Missing :warning: |
| lumen/ai/agents.py | 20.58% | 27 Missing :warning: |
| lumen/ai/llm.py | 0.00% | 7 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #1233 +/- ##
==========================================
- Coverage 57.07% 57.04% -0.04%
==========================================
Files 113 113
Lines 17612 17810 +198
==========================================
+ Hits 10052 10159 +107
- Misses 7560 7651 +91
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.