feat(captain): gate custom tools

This commit is contained in:
2026-06-07 15:50:23 +08:00
parent 0aff792b40
commit 0d8de3be0b
7 changed files with 81 additions and 16 deletions
+1 -1
View File
@@ -584,7 +584,7 @@ func Bootstrap(env string) (*App, error) {
applogger.L().Warnf("failed to enqueue initial Captain document sync scheduler: %v", err)
}
captainScenarioService := service.NewCaptainScenarioService(captainScenarioRepo, captainAssistantRepo)
captainCustomToolService := service.NewCaptainCustomToolService(captainCustomToolRepo)
captainCustomToolService := service.NewCaptainCustomToolService(captainCustomToolRepo, accountRepo)
copilotService := service.NewCopilotService(copilotThreadRepo, copilotMessageRepo, copilotSuggestionRepo, llmProvider, captainAssistantRepo)
copilotService.SetWorkerPool(workerPool)
captainConversationService := service.NewCaptainConversationService(db, llmProvider)