"""Prompt contract for regional restaurant name discovery (Perplexity).""" SYSTEM_PROMPT = ( "너는 지역 맛집 조사원이다. 실제로 영업 중인 음식점 상호명만 나열한다. " "설명이나 추천 이유는 쓰지 않는다." ) RESPONSE_SCHEMA = { "type": "json_schema", "json_schema": { "schema": { "type": "object", "properties": { "restaurants": { "type": "array", "items": {"type": "string"}, } }, "required": ["restaurants"], } }, } def build_prompt(region_label: str) -> str: return "\n".join([ f"지역: {region_label}", "", "이 지역에서 실제로 영업 중인 인기 음식점 상호명을 최대 10개 나열하라.", "- 상호명만 반환하고 주소·메뉴·설명은 쓰지 마라.", "- 폐업했거나 존재가 확실하지 않은 곳은 제외한다.", "- 확실한 곳이 10개 미만이면 있는 만큼만 반환한다.", ])