feat(agent): connect agents to real BOC data
BOC CI/CD / Test (push) Failing after 17s
BOC CI/CD / Security Scan (push) Has been skipped
BOC CI/CD / Build & Push (push) Has been skipped
BOC CI/CD / Deploy to Staging (push) Has been skipped
BOC CI/CD / Deploy to Production (push) Has been skipped

- 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:
Bernt
2026-08-12 09:24:47 +00:00
parent 0124fc0186
commit f259610f8c
5 changed files with 445 additions and 5 deletions
+3 -3
View File
@@ -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")