()
| 65 | const currentLocale = ref<string>('zh-CN') |
| 66 | |
| 67 | function getChartCapabilitySkillSummary(): SkillSummary { |
| 68 | const isZh = currentLocale.value.startsWith('zh') |
| 69 | return { |
| 70 | id: CHART_CAPABILITY_SKILL_ID, |
| 71 | name: isZh ? '绘图助手' : 'Chart Assistant', |
| 72 | description: isZh ? '按本轮问题生成灵活的聊天数据图表' : 'Generate flexible charts for this chat question', |
| 73 | tags: [isZh ? '图表' : 'chart'], |
| 74 | chatScope: 'all', |
| 75 | tools: ['render_chart', 'get_schema'], |
| 76 | builtinId: CHART_CAPABILITY_SKILL_ID, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | const activeSkill = computed(() => { |
| 81 | if (!activeSkillId.value) return null |
no outgoing calls
no test coverage detected