Interface: EmbedResolver
Resolves the embeds referenced by [chart:<id>] / [data:<id>]
markers in message prose. Satisfied by MastraPluginClient (its
chart / statement methods) - the driver passes those straight
through.
Methods
Section titled “Methods”chart()
Section titled “chart()”chart(
id):Promise<{chartId:string;error?:string;result?: {chartType:"custom"|"bar"|"horizontalBar"|"line"|"area"|"combo"|"waterfall"|"scatter"|"heatmap"|"radar"|"pie"|"funnel"|"treemap";option:Record<string,unknown>; }; } |undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<{ chartId: string; error?: string; result?: { chartType: "custom" | "bar" | "horizontalBar" | "line" | "area" | "combo" | "waterfall" | "scatter" | "heatmap" | "radar" | "pie" | "funnel" | "treemap"; option: Record<string, unknown>; }; } | undefined>
statement()
Section titled “statement()”statement(
id):Promise<{columns:string[];rowCount:number;rows:Record<string,unknown>[];truncated:boolean; } |undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<{ columns: string[]; rowCount: number; rows: Record<string, unknown>[]; truncated: boolean; } | undefined>