feat(agent): connect agents to real BOC data
- Add AgentDataProvider with real DB queries for finance, CRM, sales, HR - Inject live data into Anthropic prompts for context-aware responses - Reuse existing ledgerDB connection for agent data access - Agents now respond with actual numbers from the system
This commit is contained in:
+3
-3
@@ -118,9 +118,9 @@ func main() {
|
||||
autoEngine := automation.NewEngine(database, logger)
|
||||
autoH := handlers.NewAutomationHandler(database, autoEngine)
|
||||
|
||||
// Agent Orchestrator
|
||||
agentOrchestrator := handlers.NewAgentOrchestrator()
|
||||
logger.Info().Msg("Agent Orchestrator initialized")
|
||||
// Agent Orchestrator — med datakoppling till ledger (återanvänd befintlig ledgerDB)
|
||||
agentOrchestrator := handlers.NewAgentOrchestrator(database, ledgerDB)
|
||||
logger.Info().Msg("Agent Orchestrator initialized with real-time data")
|
||||
|
||||
// Auth: JWTService med förbättrad validering
|
||||
jwtService := auth.NewJWTService(cfg.JWTSecret, "boc-auth", "boc")
|
||||
|
||||
Reference in New Issue
Block a user