AI Platform & Agentic Copilot Integration
Helix features a multi-agent decision pipeline, proactive analytics briefing engine, and interactive officer copilots powered by Gemini large language models.
Architectural Design: Provider Agnostic LLM
All AI tasks consume language models through a standard factory wrapper (LLMProvider), allowing hot-swapping between development/offline testing engines and production cloud adapters.
graph TD
AI_Service[AI Service] --> LLMProvider[LLMProvider Factory]
LLMProvider --> GeminiAdapter[GeminiAdapter]
LLMProvider --> MockProvider[MockProvider]
GeminiAdapter --> GoogleCloud[Gemini API v1 / Vertex AI]
MockProvider --> LocalMock[Deterministic Mock Briefs]
Supported Providers
gemini(Gemini API): Invokes live Google Gemini models (e.g.gemini-1.5-flashorgemini-1.5-pro) using Vertex AI/Google Cloud API Keys.mock(Offline Sandbox): Returns deterministic, structured local mock justifications, enabling fully offline UI development and high-speed CI execution.
The AI Decision Pipeline (Multi-Agent Workflow)
When a citizen submits a validated issue, the system automatically triggers a sequential multi-agent evaluation pipeline to output a comprehensive Officer Decision Brief.
- Intake Agent: Audits evidence, validates required metadata flags, and handles compliance checks.
- Classification Agent: Categorizes the issue domain (e.g., sanitation vs. roads) and maps priority urgency guidelines.
- Duplicate Agent: Performs semantic search against existing active tickets to identify duplicates.
- Context Agent: Scans nearby municipal assets (schools, hospitals, parks) to evaluate proximity risks.
- Policy Agent: Correlates the ticket with regional subsidies, bylaws, and government schemes.
- Impact Agent: Combines citizen counts and proximity scores to forecast community impact.
- Recommendation Agent: Compares resolution alternatives (Accelerated, Outsource, Defer) in a structured matrix.
Safety Guardrails & grounding
To guarantee governance safety, every input query and LLM generated output is run through a three-tiered safety guard before execution:
- Toxicity Filter: Prevents inappropriate user-submitted content.
- PII Redaction: Checks for emails, phone numbers, and identifying details to protect citizen privacy.
- Grounding Validator: Evaluates output metrics against policies to prevent model hallucinations.
Environment Variables
Configure LLM settings using these parameters in .env: