system-prompts-and-models-o.../dealix/auto_client_acquisition/intelligence_layer/decision_memory.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

25 lines
588 B
Python

"""In-memory decision snippets for demos — replace with DB in production."""
from __future__ import annotations
from typing import Any
_STORE: list[dict[str, Any]] = []
def record_decision(entry: dict[str, Any]) -> dict[str, Any]:
e = {
"id": f"dec_{len(_STORE)+1}",
**entry,
}
_STORE.append(e)
return {"ok": True, "entry": e, "demo": True}
def list_decisions(*, limit: int = 20) -> dict[str, Any]:
return {"decisions": list(reversed(_STORE[-limit:])), "count": len(_STORE), "demo": True}
def reset_demo_memory() -> None:
_STORE.clear()