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:
Vendored
+4
-3
@@ -2,6 +2,7 @@ package agentteam
|
||||
|
||||
import (
|
||||
"agent-desk/cmd/testdata/seedlang"
|
||||
"agent-desk/cmd/testdata/seeds"
|
||||
"regexp"
|
||||
"testing"
|
||||
)
|
||||
@@ -9,9 +10,9 @@ import (
|
||||
var hanTextPattern = regexp.MustCompile(`\p{Han}`)
|
||||
|
||||
func TestEnglishAgentTeamTextDoesNotContainChineseText(t *testing.T) {
|
||||
values := []string{localizedTeamName(seedlang.English)}
|
||||
for _, user := range localizedAgentUsers(seedlang.English, "admin") {
|
||||
values = append(values, user.nickname)
|
||||
values := []string{seeds.AgentTeamName(seedlang.English)}
|
||||
for _, user := range seeds.AgentUsers(seedlang.English, "admin") {
|
||||
values = append(values, user.Nickname)
|
||||
}
|
||||
|
||||
for _, value := range values {
|
||||
|
||||
Reference in New Issue
Block a user