diff --git a/agent-office/app/service_proxy.py b/agent-office/app/service_proxy.py index 58a24dc..8e63382 100644 --- a/agent-office/app/service_proxy.py +++ b/agent-office/app/service_proxy.py @@ -131,3 +131,26 @@ async def realestate_mark_read(match_id: int) -> Dict[str, Any]: resp = await _client.patch(f"{REALESTATE_LAB_URL}/api/realestate/matches/{match_id}/read") resp.raise_for_status() return resp.json() + + +# --- lotto-backend --- + +async def lotto_candidates(n: int = 20) -> Dict[str, Any]: + from .config import LOTTO_BACKEND_URL + resp = await _client.get(f"{LOTTO_BACKEND_URL}/api/lotto/curator/candidates", params={"n": n}) + resp.raise_for_status() + return resp.json() + + +async def lotto_context() -> Dict[str, Any]: + from .config import LOTTO_BACKEND_URL + resp = await _client.get(f"{LOTTO_BACKEND_URL}/api/lotto/curator/context") + resp.raise_for_status() + return resp.json() + + +async def lotto_save_briefing(payload: dict) -> Dict[str, Any]: + from .config import LOTTO_BACKEND_URL + resp = await _client.post(f"{LOTTO_BACKEND_URL}/api/lotto/briefing", json=payload) + resp.raise_for_status() + return resp.json()