Skip to content

@sqlrooms/mosaic / createDashboardAgentTool

Function: createDashboardAgentTool() ​

createDashboardAgentTool<TState>(options): Tool

Creates an AI agent tool for populating dashboards with charts and interactive panels. The agent explores data through queries and creates multiple panels showing different aspects.

Type Parameters ​

Type ParameterDescription
TState extends MosaicDashboardStoreStateStore state type extending MosaicDashboardStoreState

Parameters ​

ParameterTypeDescription
optionsCreateDashboardAgentToolOptions<TState>Configuration options for the dashboard agent

Returns ​

Tool

Tool instance that orchestrates multi-turn dashboard creation via a ToolLoopAgent