Skip to content

Commit e9e6139

Browse files
committed
feat(chat): agent add API ResetAgentCharConfig
1 parent ede87ab commit e9e6139

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chat/agent.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ func ResetAgents() {
8080
}
8181
}
8282

83+
// ResetAgentCharConfig resert agent char & sex
84+
func ResetAgentCharConfig() {
85+
AC.AgentChar = agentcharcfg.Char
86+
AC.AgentSex = agentcharcfg.Sex
87+
}
88+
8389
var checkgids = map[string]struct{}{
8490
"send_group_msg": {},
8591
"set_group_kick": {},

0 commit comments

Comments
 (0)