feat: Introduce Wiki Fixer agent and related functionalities
- Added a new built-in agent, "Wiki Fixer," designed to repair and optimize Wiki pages based on linter issues, with multilingual support for enhanced accessibility. - Implemented a corresponding system prompt detailing the agent's role, mission, and workflow for effective issue resolution. - Introduced new API functions for listing and updating wiki issues, allowing for better management of content conflicts and errors. - Enhanced the frontend with new UI elements to display pending issues and facilitate auto-fixing, improving user interaction with the Wiki content. These changes significantly enhance the agent's capabilities for maintaining the accuracy and quality of Wiki pages, fostering a more reliable knowledge base.
This commit is contained in:
@@ -24,9 +24,15 @@ const (
|
||||
ToolReadSkill = "read_skill"
|
||||
// Wiki-related tools (only available when wiki KBs are in scope)
|
||||
ToolWikiReadPage = "wiki_read_page"
|
||||
ToolWikiWritePage = "wiki_write_page"
|
||||
ToolWikiReplaceText = "wiki_replace_text"
|
||||
ToolWikiRenamePage = "wiki_rename_page"
|
||||
ToolWikiDeletePage = "wiki_delete_page"
|
||||
ToolWikiSearch = "wiki_search"
|
||||
ToolWikiReadSourceDoc = "wiki_read_source_doc"
|
||||
ToolWikiFlagIssue = "wiki_flag_issue"
|
||||
ToolWikiReadIssue = "wiki_read_issue"
|
||||
ToolWikiUpdateIssue = "wiki_update_issue"
|
||||
)
|
||||
|
||||
// AvailableTool defines a simple tool metadata used by settings APIs.
|
||||
@@ -57,6 +63,12 @@ func AvailableToolDefinitions() []AvailableTool {
|
||||
{Name: ToolWikiSearch, Label: "搜索Wiki", Description: "在Wiki中搜索页面"},
|
||||
{Name: ToolWikiReadSourceDoc, Label: "精读源文档", Description: "使用知识点深入阅读特定原始文档"},
|
||||
{Name: ToolWikiFlagIssue, Label: "标记Wiki问题", Description: "标记页面中存在的事实错误或合并冲突问题"},
|
||||
{Name: ToolWikiWritePage, Label: "创建/覆盖Wiki", Description: "创建新页面或完全覆盖已有页面"},
|
||||
{Name: ToolWikiReplaceText, Label: "局部替换Wiki", Description: "替换Wiki页面中的特定文本"},
|
||||
{Name: ToolWikiRenamePage, Label: "重命名Wiki", Description: "重命名Wiki页面并自动更新关联链接"},
|
||||
{Name: ToolWikiDeletePage, Label: "删除Wiki", Description: "删除Wiki页面并自动清理关联死链"},
|
||||
{Name: ToolWikiReadIssue, Label: "查看Wiki问题", Description: "查看特定的Wiki页面问题详情"},
|
||||
{Name: ToolWikiUpdateIssue, Label: "更新Wiki问题状态", Description: "更新特定的Wiki页面问题状态"},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user