fix: 处理未map未初始化问题

This commit is contained in:
fuzhongyun 2025-11-14 11:49:53 +08:00
parent adcc078174
commit b1724ba6f6
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ type BotTool struct {
// NewBotTool 创建直连天下订单详情工具
func NewBotTool(config *config.Config, llm *utils_ollama.Client, sessionImpl *impl.SessionImpl) *BotTool {
return &BotTool{config: config, llm: llm, sessionImpl: sessionImpl}
return &BotTool{config: config, llm: llm, sessionImpl: sessionImpl, taskMap: make(map[string]string)}
}
// BugOptimizationSubmitForm 工单提交表单参数