Skip to content

Variable: GenieDatasetChartSchema

const GenieDatasetChartSchema: ZodObject<{ chartId: ZodString; chartType: ZodUnion<readonly [ZodLiteral<"bar">, ZodLiteral<"horizontalBar">, ZodLiteral<"line">, ZodLiteral<"area">, ZodLiteral<"combo">, ZodLiteral<"waterfall">, ZodLiteral<"scatter">, ZodLiteral<"heatmap">, ZodLiteral<"radar">, ZodLiteral<"pie">, ZodLiteral<"funnel">, ZodLiteral<"treemap">, ZodLiteral<"custom">]>; }, $strip>

Slim chart reference attached to a visualize dataset. Only present when planning succeeded.

option is intentionally NOT included. The resolved Echarts spec lives off-band in the chart cache: the host UI fetches it by chartId from the plugin’s embed route (derived from basePath + MASTRA_ROUTES.embed, i.e. /embed/chart/:id; see Chart). Embedding the full spec inline would inflate every dataset by several KB per chart and round-trip through the LLM context for zero benefit (the model only needs the chartId to place a [chart:<chartId>] marker in its reply).