MCPcopy Create free account
hub / github.com/microsoft/data-formulator / genTableId

Function genTableId

src/views/SimpleChartRecBox.tsx:623–631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

621 let lastAgentInputTables: string[] = [];
622
623 const genTableId = () => {
624 let tableSuffix = Number.parseInt((Date.now() - Math.floor(Math.random() * 10000)).toString().slice(-6));
625 let tId = `table-${tableSuffix}`;
626 while (tables.find(t => t.id === tId) !== undefined || createdTables.some(t => t.id === tId)) {
627 tableSuffix += 1;
628 tId = `table-${tableSuffix}`;
629 }
630 return tId;
631 };
632
633 // Accumulate thinking phase steps for progressive display
634 // Steps are joined with \x1E (Record Separator) to avoid splitting multi-line content

Callers 1

processStreamingResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected