fix(agent-office): bookmark field name + service_proxy contract + mktemp

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 09:09:05 +09:00
parent 7b3ddd1b19
commit 1d6c1b4329
4 changed files with 23 additions and 14 deletions

View File

@@ -112,13 +112,15 @@ async def realestate_collect() -> Dict[str, Any]:
async def realestate_matches(limit: int = 20) -> List[Dict[str, Any]]:
resp = await _client.get(
f"{REALESTATE_LAB_URL}/api/realestate/matches",
params={"limit": limit, "unread_only": True},
)
resp.raise_for_status()
data = resp.json()
return data if isinstance(data, list) else data.get("matches", [])
"""realestate-lab의 GET /api/realestate/matches 호출."""
async with httpx.AsyncClient(timeout=10) as client:
resp = await client.get(
f"{REALESTATE_LAB_URL}/api/realestate/matches",
params={"size": limit},
)
resp.raise_for_status()
data = resp.json()
return data.get("items", [])
async def realestate_dashboard() -> Dict[str, Any]: