Commit a59766c
feat: add OHLC volume series guidance to chart AI tools (#9114)
## Summary
- Adds LLM guidance for the OHLC/candlestick + volume series pattern to
the `update_chart_data_source` tool description
- Instructs the LLM to use `_x`, `_y`, and `_series` aliases for the
volume query so the series gets proper datetime X values and a name for
per-series config matching
### Testing
- The fix can be tested using branch
`fix/chart-ai-controller-candlestick-volume-test`
Before:
<img width="888" height="631" alt="candlestick-before"
src="https://github.com/user-attachments/assets/7f22c7ad-efbe-45f0-aede-94bb24af46bf"
/>
After:
<img width="889" height="632" alt="candlestick-after"
src="https://github.com/user-attachments/assets/4d669be5-29df-41ab-b5ba-31748f2217ef"
/>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9b2e44e commit a59766c
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- vaadin-ai-components-flow-parent/vaadin-ai-components-flow/src/main/java/com/vaadin/flow/component/ai/chart
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
577 | 581 | | |
578 | 582 | | |
579 | 583 | | |
| |||
0 commit comments