mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 23:09:35 +00:00
- 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>
19 lines
600 B
Python
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}
|