You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add missing descriptions to tool parameter schema properties (#9087)
## Summary
- Add descriptions to all tool parameter schema properties in
`ChartAITools` that were previously missing them, improving the quality
of LLM tool-calling by providing clear semantics for each property
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: vaadin-ai-components-flow-parent/vaadin-ai-components-flow/src/main/java/com/vaadin/flow/component/ai/chart/ChartAITools.java
+57-57Lines changed: 57 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -317,51 +317,51 @@ public String getParametersSchema() {
317
317
"description": "REQUIRED: Chart type - ALWAYS specify this property",
"{c:MARGIN_TOP}": { "type": "number", "description": "Fixed pixel margin between the top outer edge of the chart and the plot area" },
327
+
"{c:MARGIN_RIGHT}": { "type": "number", "description": "Fixed pixel margin between the right outer edge of the chart and the plot area" },
328
+
"{c:MARGIN_BOTTOM}": { "type": "number", "description": "Fixed pixel margin between the bottom outer edge of the chart and the plot area" },
329
+
"{c:MARGIN_LEFT}": { "type": "number", "description": "Fixed pixel margin between the left outer edge of the chart and the plot area" },
330
+
"{c:SPACING_TOP}": { "type": "number", "description": "Space between the top edge of the chart and the content" },
331
+
"{c:SPACING_RIGHT}": { "type": "number", "description": "Space between the right edge of the chart and the content" },
332
+
"{c:SPACING_BOTTOM}": { "type": "number", "description": "Space between the bottom edge of the chart and the content" },
333
+
"{c:SPACING_LEFT}": { "type": "number", "description": "Space between the left edge of the chart and the content" },
334
+
"{c:PLOT_BACKGROUND_COLOR}": { "type": "string", "description": "Background color or gradient for the plot area" },
335
+
"{c:PLOT_BORDER_COLOR}": { "type": "string", "description": "Color of the inner chart or plot area border" },
336
+
"{c:PLOT_BORDER_WIDTH}": { "type": "number", "description": "Pixel width of the plot area border" },
337
+
"{c:INVERTED}": { "type": "boolean", "description": "Whether to invert the axes so that the x axis is vertical and y axis is horizontal" },
338
+
"{c:POLAR}": { "type": "boolean", "description": "When true, cartesian charts are transformed into the polar coordinate system" },
339
+
"{c:ANIMATION}": { "type": "boolean", "description": "Overall animation for all chart updating. Does not affect initial series animation." },
340
+
"{c:STYLED_MODE}": { "type": "boolean", "description": "Whether to apply styled mode. When enabled, no presentational attributes or CSS are applied to the chart SVG." },
341
+
"{c:ZOOM_TYPE}": { "type": "string", "description": "Decides in what dimensions the user can zoom by dragging the mouse", "enum": ["x", "y", "xy"] }
"{c:TITLE}": { "type": "object", "properties": { "{c:TEXT}": { "type": "string", "description": "The axis title text" } } },
387
+
"{c:MIN}": { "type": "number", "description": "Minimum value of the axis. Auto-calculated if null." },
388
+
"{c:MAX}": { "type": "number", "description": "Maximum value of the axis. Auto-calculated if null." },
389
+
"{c:OPPOSITE}": { "type": "boolean", "description": "Whether to display the axis on the opposite side of the normal (right for vertical axes, top for horizontal)" }
390
390
}
391
391
}
392
392
}
393
393
]
394
394
},
395
395
"{c:Z_AXIS}": {
396
396
"type": "object",
397
-
"description": "Z-axis configuration (for 3D and bubble charts)",
397
+
"description": "Z-axis configuration (for 3D charts)",
"{c:TITLE}": { "type": "object", "properties": { "{c:TEXT}": { "type": "string", "description": "The axis title text" } } },
401
+
"{c:MIN}": { "type": "number", "description": "Minimum value of the axis. Auto-calculated if null." },
402
+
"{c:MAX}": { "type": "number", "description": "Maximum value of the axis. Auto-calculated if null." }
403
403
}
404
404
},
405
405
"{c:COLOR_AXIS}": {
406
406
"type": "object",
407
407
"description": "Color axis for heatmaps",
408
408
"properties": {
409
-
"{c:MIN}": { "type": "number" },
410
-
"{c:MAX}": { "type": "number" },
411
-
"{c:MIN_COLOR}": { "type": "string" },
412
-
"{c:MAX_COLOR}": { "type": "string" }
409
+
"{c:MIN}": { "type": "number", "description": "Minimum value of the color axis" },
410
+
"{c:MAX}": { "type": "number", "description": "Maximum value of the color axis" },
411
+
"{c:MIN_COLOR}": { "type": "string", "description": "Color to represent the minimum value" },
412
+
"{c:MAX_COLOR}": { "type": "string", "description": "Color to represent the maximum value" }
413
413
}
414
414
},
415
415
"{c:TOOLTIP}": {
416
416
"type": "object",
417
417
"description": "Tooltip configuration",
418
418
"properties": {
419
-
"{c:POINT_FORMAT}": { "type": "string" },
420
-
"{c:HEADER_FORMAT}": { "type": "string" },
421
-
"{c:SHARED}": { "type": "boolean" },
422
-
"{c:VALUE_SUFFIX}": { "type": "string" },
423
-
"{c:VALUE_PREFIX}": { "type": "string" }
419
+
"{c:POINT_FORMAT}": { "type": "string", "description": "HTML for the point's line in the tooltip. Variables like {point.y}, {series.name} are enclosed in curly brackets." },
420
+
"{c:HEADER_FORMAT}": { "type": "string", "description": "HTML of the tooltip header line. Variables like {point.key}, {series.name} are enclosed in curly brackets." },
421
+
"{c:SHARED}": { "type": "boolean", "description": "When true, the entire plot area captures mouse movement and tooltip texts for all series are shown in a single bubble" },
422
+
"{c:VALUE_SUFFIX}": { "type": "string", "description": "A string to append to each series' y value in the tooltip" },
423
+
"{c:VALUE_PREFIX}": { "type": "string", "description": "A string to prepend to each series' y value in the tooltip" }
0 commit comments