Class ChartAITools

java.lang.Object
com.vaadin.flow.component.ai.chart.ChartAITools

public final class ChartAITools extends Object
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
  • Method Details

    • createAll

      public static List<LLMProvider.ToolSpec> createAll(ChartAITools.Callbacks callbacks)
      Creates all chart tools for the given callbacks.
      Parameters:
      callbacks - the callbacks for chart state access and mutation; not null
      Returns:
      a list of all chart tools, never null