MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / summarizeChart

Function summarizeChart

packages/tools/src/definitions/render-chart.ts:94–99  ·  view source on GitHub ↗
(type: string, title: string, rowCount: number, truncated: boolean, locale?: string)

Source from the content-addressed store, hash-verified

92}
93
94function summarizeChart(type: string, title: string, rowCount: number, truncated: boolean, locale?: string): string {
95 if (locale?.startsWith('zh')) {
96 return `已生成图表「${title}」(${type},${rowCount} 行数据${truncated ? ',已截断' : ''})。`
97 }
98 return `Generated chart "${title}" (${type}, ${rowCount} rows${truncated ? ', truncated' : ''}).`
99}
100
101function summarizeChartForModel(
102 type: string,

Callers 1

summarizeChartForModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected