system-prompts-and-models-o.../dealix/auto_client_acquisition/meeting_intelligence/deal_risk.py
Sami Assiri b13cb389cc feat(dealix): sync full Dealix package to repo
- API routers, ACA modules, integrations (draft operators)
- Docs, landing pages, scripts (launch readiness, scorecard)
- Tests and CI workflow updates for Dealix

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-01 21:01:17 +03:00

19 lines
600 B
Python

"""Deal risk hint from simple signals."""
from __future__ import annotations
from typing import Any
def assess_deal_risk(signals: dict[str, Any] | None = None) -> dict[str, Any]:
s = signals or {}
risk = "low"
reasons: list[str] = []
if s.get("no_followup_scheduled"):
risk = "medium"
reasons.append("لا يوجد موعد متابعة بعد الاجتماع.")
if s.get("ghosted_after_proposal"):
risk = "high"
reasons.append("توقف التواصل بعد العرض.")
return {"risk_level": risk, "reasons_ar": reasons, "demo": True}