in llm_demo/static/trace.js [18:35]
export function create_trace(toolcalls) {
let trace = '';
const toolcalls_len = toolcalls.length;
for (let i=0; i < toolcalls_len; i++) {
let toolcall = toolcalls[i];
trace += trace_section_title(toolcall.tool_call_id);
trace += trace_header("SQL Executed:");
trace += trace_sql(toolcall.sql);
trace += trace_header("Results:");
trace += trace_results(toolcall.results);
if (i < toolcalls_len-1) {
trace += '<br>';
}
}
return trace;
}