Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797

Daniel28b4d45153a8
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.go
index c2068fbb1d..80dc34f141 100644
--- a/kernel/agent/agent.go
+++ b/kernel/agent/agent.go
@@ -355,7 +355,7 @@ func AgentChat(ctx context.Context, client *openai.Client, model string, session
setCurrentTodoSession(sessionID)
var resultStr string
if tc.Function.Name == "question" {
- resultStr = handleQuestion(tc.Function.Arguments, ch, confirmTimeout)
+ resultStr = handleQuestion(tc.Function.Arguments, ch, 5*time.Minute)
doomLoop = doomLoopTracker{}
} else {
resultStr = executeTool(tc)