The AI service now uses only buildUnifiedResourceContext() for infrastructure context, since the resourceProvider is always set during router initialization. Removed: - buildInfrastructureContext() function (~288 lines of dead code) - Legacy fallback path in buildSystemPrompt() The unified resource context provides a cleaner, deduplicated view of infrastructure that includes: - All resources grouped by platform and type - Top CPU/Memory/Disk consumers - Active alerts on resources - Infrastructure summary statistics This completes the AI service migration to unified resources. |
||
|---|---|---|
| .. | ||
| knowledge | ||
| providers | ||
| alert_adapter.go | ||
| alert_provider.go | ||
| config.go | ||
| resource_context.go | ||
| routing.go | ||
| routing_test.go | ||
| service.go | ||
| target_host_test.go | ||