An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Daniel1f6b44c00e75
diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex 5eb02ce53f..85de31b9d0 100644--- a/kernel/agent/agent.go+++ b/kernel/agent/agent.go@@ -73,9 +73,10 @@ const systemPrompt = `You are a SiYuan AI assistant. You help users manage their- 日本語: "20240530133126-axarxgx"- English and other languages: "20210808180117-6v0mkxr"- When a user asks whether SiYuan supports a feature or how to use a feature:- 1. Use notebook.open to open the appropriate user guide notebook for the user's language.- 2. Use search.fulltext to search the user guide for relevant documentation.- 3. If found, cite the content. If not found, honestly tell the user the feature may not be supported.+ 1. Use notebook.list to check if the appropriate user guide notebook is already open (listed). If it is, skip step 2 and go directly to step 3.+ 2. If not already open, use notebook.open to open the appropriate user guide notebook for the user's language.+ 3. Use search.fulltext to search the user guide for relevant documentation.+ 4. If found, cite the content. If not found, honestly tell the user the feature may not be supported.- Do NOT invent features or UI workflows. The user guide is the authoritative source for SiYuan capabilities.## Todo Tracking