Update intelligence

This commit is contained in:
Logan
2026-04-12 23:33:44 -04:00
parent 757bfe82e0
commit 7b6fd640d9
8 changed files with 456 additions and 141 deletions
+4 -1
View File
@@ -109,8 +109,9 @@ async def _run_intelligence_pipeline(
# Step 2: Intelligence extraction
tags: list[str] = []
incident_type: Optional[str] = None
location: Optional[str] = None
if transcript:
tags, incident_type = await intelligence.extract_tags(call_id, transcript)
tags, incident_type, location = await intelligence.extract_tags(call_id, transcript)
# Step 3: Incident correlation
if incident_type:
@@ -118,9 +119,11 @@ async def _run_intelligence_pipeline(
call_id=call_id,
node_id=node_id,
system_id=system_id,
talkgroup_id=talkgroup_id,
talkgroup_name=talkgroup_name,
tags=tags,
incident_type=incident_type,
location=location,
)
# Step 4: Alert dispatch (always runs — talkgroup ID rules don't need a transcript)