Skip to content

@sqlrooms/mosaic / createWorksheetAgentTool

Function: createWorksheetAgentTool()

createWorksheetAgentTool<TState>(options): Tool

Creates an AI agent tool for building interactive data analysis worksheets with charts, text, and dashboard blocks.

Type Parameters

Type ParameterDescription
TState extends MosaicDashboardStoreStateStore state type extending MosaicDashboardStoreState

Parameters

ParameterTypeDescription
optionsCreateWorksheetAgentToolOptions<TState>Configuration options for the worksheet agent

Returns

Tool

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