Loading...
; // Only show login for managed auth — other modes handle auth externally if (!isAuthenticated && authMode === "managed") { returnLoading...
; return (| {col} | ))}
|---|
| {String(row[col] ?? "")} | ))}
{result.explanation}
)}
{result}
Execution failed
{result.error}
{result.output && {result.output}}
{result.output}
)}
{/* Static chart images */}
{result.charts?.map((chart, i) => (
{chart.type} chart — {chart.categoryKey} vs {chart.valueKeys.join(", ")}
{/* Plug in your own chart component here */}{JSON.stringify(chart.data.slice(0, 3), null, 2)}
| {col} | ))}
|---|
| {String(cell ?? "")} | ))}
{part.text}
; if (part.type === "tool-invocation") { // Access tool name, args, and result from the part const { toolName, args, result, state } = part.toolInvocation; const isLoading = state !== "result"; if (toolName === "executeSQL" && result) { const sqlResult = result as SQLToolResult; // Render your custom SQL table here } } return null; }), )}{{ part.text }}
| {{ col }} |
|---|
| {{ row[col] == null ? "\u2014" : row[col] }} |
{{ output }}
{part.text}
{/if} {/each}| {col} | {/each}
|---|
| {row[col] == null ? "\u2014" : row[col]} | {/each}
{output}