@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 Parameter | Description |
|---|---|
TState extends MosaicDashboardStoreState | Store state type extending MosaicDashboardStoreState |
Parameters
| Parameter | Type | Description |
|---|---|---|
options | CreateDashboardAgentToolOptions<TState> | Configuration options for the dashboard agent |
Returns
Tool
Tool instance that orchestrates multi-turn dashboard creation via a ToolLoopAgent