Add files via upload

This commit is contained in:
公明
2026-04-28 14:07:01 +08:00
committed by GitHub
parent d959390e27
commit 44079674dd
3 changed files with 35 additions and 25 deletions
+1
View File
@@ -133,6 +133,7 @@ func New(cfg *config.Config, log *logger.Logger) (*App, error) {
maxIterations = 30 // 默认值
}
agent := agent.NewAgent(&cfg.OpenAI, &cfg.Agent, mcpServer, externalMCPMgr, log.Logger, maxIterations)
agent.UpdateToolDescriptionMode(cfg.Security.ToolDescriptionMode)
// 设置结果存储到Agent
agent.SetResultStorage(resultStorage)