Class GridAITools

java.lang.Object
com.vaadin.flow.component.ai.grid.GridAITools

public final class GridAITools extends Object
Factory for creating reusable grid LLMProvider.ToolSpec instances.

The tools use a gridId parameter to identify which grid to operate on, allowing a single set of tools to manage multiple grids (e.g., in a dashboard). Callers provide a GridAITools.Callbacks implementation for state retrieval and mutation, keeping this class decoupled from Grid.

Intended only for internal use and can be removed in the future.

Author:
Vaadin Ltd
  • Method Details

    • createAll

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