Add quick reply, skill definition, and tag seeds for multilingual support

- Implemented QuickReplySeed structure and seeds for both English and Chinese languages.
- Created SkillDefinitionSeed structure with detailed instructions and examples for the "After-sales Escalation" skill in both languages.
- Added TagSeed structure and corresponding seeds for categorizing inquiries in English and Chinese.
- Refactored skill and tag initialization to utilize the new seed structures, ensuring proper data handling and multilingual support.
- Updated tests to verify that English seeds do not contain Chinese text, ensuring data integrity.
This commit is contained in:
mlogclub
2026-06-01 12:15:41 +08:00
parent b743639731
commit 031855935d
22 changed files with 683 additions and 707 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package channel
import (
"agent-desk/cmd/testdata/seedlang"
"agent-desk/cmd/testdata/seeds"
"regexp"
"testing"
)
@@ -9,7 +10,7 @@ import (
var hanTextPattern = regexp.MustCompile(`\p{Han}`)
func TestEnglishChannelSeedDoesNotContainChineseText(t *testing.T) {
for _, item := range buildSeedItems(seedlang.English, 1) {
for _, item := range seeds.ChannelSeeds(seedlang.English) {
values := []string{item.Name, item.ConfigJSON, item.Remark}
for _, value := range values {
if hanTextPattern.MatchString(value) {