(locale: string)
| 125 | } |
| 126 | |
| 127 | function 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 | |
| 141 | export function buildSkillMenuWithBuiltinChart( |
| 142 | baseMenu: string | null | undefined, |
no test coverage detected