feat: Introduce wiki_flag_issue tool for reporting wiki page issues
- Added a new tool, `wiki_flag_issue`, enabling users to report factual errors, mixed entities, or outdated information on wiki pages. - Updated the agent system prompt and tool definitions to include the new tool, enhancing the agent's capabilities for maintaining wiki accuracy. - Implemented backend functionality for creating, listing, and updating the status of flagged issues, ensuring effective tracking and resolution. These changes significantly improve the agent's ability to manage and report issues within the wiki, fostering a more reliable knowledge base.
This commit is contained in:
@@ -860,5 +860,9 @@ func RegisterWikiPageRoutes(r *gin.RouterGroup, wikiHandler *handler.WikiPageHan
|
||||
wiki.POST("/rebuild-links", wikiHandler.RebuildLinks)
|
||||
wiki.GET("/lint", wikiHandler.Lint)
|
||||
wiki.POST("/auto-fix", wikiHandler.AutoFix)
|
||||
|
||||
// Issues
|
||||
wiki.GET("/issues", wikiHandler.ListIssues)
|
||||
wiki.PUT("/issues/:issue_id/status", wikiHandler.UpdateIssueStatus)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user