feat: add auto-injection flag for tools and filter auto-injected tools in UI

This commit is contained in:
mlogclub
2026-04-10 15:41:02 +08:00
parent 31337fa714
commit e7a600b7d5
8 changed files with 51 additions and 29 deletions
+3
View File
@@ -294,6 +294,9 @@ func (s *aIAgentService) normalizeDirectTools(input []request.AIAgentMCPToolRequ
if err != nil {
return nil, err
}
if toolx.IsAutoInjectedToolCode(strings.TrimSpace(normalized.ToolCode)) {
continue
}
if err := ToolCatalogService.ValidateToolCode(normalized.ToolCode); err != nil {
return nil, err
}