Class ChartAITools
java.lang.Object
com.vaadin.flow.component.ai.chart.ChartAITools
Factory for creating reusable chart
LLMProvider.ToolSpec instances.
The tools use a chartId parameter to identify which chart to operate
on, allowing a single set of tools to manage multiple charts (e.g., in a
dashboard). Callers provide a ChartAITools.Callbacks implementation for state
retrieval and mutation.
Intended only for internal use and can be removed in the future.
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback interface that chart tool consumers must implement to provide chart state access and mutation operations. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<LLMProvider.ToolSpec> createAll(ChartAITools.Callbacks callbacks) Creates all chart tools for the given callbacks.
-
Method Details
-
createAll
Creates all chart tools for the given callbacks.- Parameters:
callbacks- the callbacks for chart state access and mutation; notnull- Returns:
- a list of all chart tools, never
null
-