From d4a4849943f4c3c893cec88ef90d8d52e2ad38b2 Mon Sep 17 00:00:00 2001 From: gahusb Date: Wed, 15 Apr 2026 08:26:37 +0900 Subject: [PATCH] =?UTF-8?q?feat(agent-office):=20service=5Fproxy=20lotto?= =?UTF-8?q?=20=EB=A9=94=EC=84=9C=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent-office/app/service_proxy.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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()