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:
@@ -456,6 +456,18 @@ func (s *agentService) registerTools(
|
||||
toolToRegister = tools.NewWikiReadSourceDocTool(s.knowledgeService, s.chunkService)
|
||||
case tools.ToolWikiFlagIssue:
|
||||
toolToRegister = tools.NewWikiFlagIssueTool(s.wikiPageService, wikiKBIDs)
|
||||
case tools.ToolWikiReadIssue:
|
||||
toolToRegister = tools.NewWikiReadIssueTool(s.wikiPageService, wikiKBIDs)
|
||||
case tools.ToolWikiUpdateIssue:
|
||||
toolToRegister = tools.NewWikiUpdateIssueTool(s.wikiPageService, wikiKBIDs)
|
||||
case tools.ToolWikiWritePage:
|
||||
toolToRegister = tools.NewWikiWritePageTool(s.wikiPageService, wikiKBIDs)
|
||||
case tools.ToolWikiReplaceText:
|
||||
toolToRegister = tools.NewWikiReplaceTextTool(s.wikiPageService, wikiKBIDs)
|
||||
case tools.ToolWikiRenamePage:
|
||||
toolToRegister = tools.NewWikiRenamePageTool(s.wikiPageService, wikiKBIDs)
|
||||
case tools.ToolWikiDeletePage:
|
||||
toolToRegister = tools.NewWikiDeletePageTool(s.wikiPageService, wikiKBIDs)
|
||||
|
||||
default:
|
||||
logger.Warnf(ctx, "Unknown tool: %s", toolName)
|
||||
|
||||
Reference in New Issue
Block a user