MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getChartMenuLine

Function getChartMenuLine

packages/node-runtime/src/ai/chart-runtime.ts:127–139  ·  view source on GitHub ↗
(locale: string)

Source from the content-addressed store, hash-verified

125}
126
127function getChartMenuLine(locale: string): string {
128 const skill = getChartCapabilitySkill(locale)
129 const isZh = locale.startsWith('zh')
130 const guidance = isZh
131 ? '用户明确要求图表、画图、占比、趋势、分布、饼图、柱状图、折线图或热力图时优先激活;不要输出 Python/JS 绘图代码'
132 : 'Activate first when the user explicitly asks for charts, visualization, ratios, trends, distributions, pie, bar, line, or heatmap charts; do not output Python/JS chart code'
133 return formatSkillMenuLine({
134 id: skill.id,
135 name: skill.name,
136 description: skill.description,
137 guidance,
138 })
139}
140
141export function buildSkillMenuWithBuiltinChart(
142 baseMenu: string | null | undefined,

Callers 1

Calls 2

formatSkillMenuLineFunction · 0.90
getChartCapabilitySkillFunction · 0.85

Tested by

no test coverage detected