feat: Enhance FAQ management and search functionality
- Added a new menu item for searching FAQs directly from the menu, improving user accessibility. - Implemented batch action options for selected FAQs, allowing users to perform bulk operations such as enabling, disabling, and deleting entries. - Updated localization strings to support new features and improve user experience across multiple languages. - Enhanced the handling of FAQ selection changes to dynamically update the UI based on user interactions.
This commit is contained in:
@@ -171,10 +171,7 @@ func (s *agentService) registerTools(
|
||||
sessionService interfaces.SessionService,
|
||||
) error {
|
||||
// If no specific tools allowed, register default tools
|
||||
allowedTools := config.AllowedTools
|
||||
if len(allowedTools) == 0 {
|
||||
allowedTools = tools.DefaultAllowedTools()
|
||||
}
|
||||
allowedTools := tools.DefaultAllowedTools()
|
||||
// If web search is enabled, add web_search to allowedTools
|
||||
if config.WebSearchEnabled {
|
||||
allowedTools = append(allowedTools, "web_search")
|
||||
@@ -206,6 +203,9 @@ func (s *agentService) registerTools(
|
||||
chatModel,
|
||||
s.cfg,
|
||||
))
|
||||
case "grep_chunks":
|
||||
registry.RegisterTool(tools.NewGrepChunksTool(s.db, tenantID, config.KnowledgeBases))
|
||||
logger.Infof(ctx, "Registered grep_chunks tool for tenant: %d", tenantID)
|
||||
case "list_knowledge_chunks":
|
||||
registry.RegisterTool(tools.NewListKnowledgeChunksTool(tenantID, s.knowledgeService, s.chunkService))
|
||||
case "query_knowledge_graph":
|
||||
|
||||
Reference in New Issue
Block a user