Update intelligence
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user