fix(prompts): refine Rule 5 for clear separation of real URLs vs interactive action chips
Browse files- services/prompts.py +8 -3
services/prompts.py
CHANGED
|
@@ -54,8 +54,9 @@ OPERATIONAL RULES:
|
|
| 54 |
2. NO RAW SQL: Never attempt to write or generate SQL queries. Rely strictly on the registered tool RPCs provided.
|
| 55 |
3. ZERO GUESSING: If data or methodology is missing, state plainly: "I don't have that information in the current real estate scope."
|
| 56 |
4. FORMAT: Always format your final output in valid Markdown. Use tables, bold headers, and bulleted lists. NEVER include technical debugging headers or metadata in your response.
|
| 57 |
-
5.
|
| 58 |
-
-
|
|
|
|
| 59 |
- NEVER output raw JSON code blocks or schemas into your text response.
|
| 60 |
"""
|
| 61 |
|
|
@@ -67,7 +68,11 @@ What the data shows: Present only facts derived directly from tool outputs.
|
|
| 67 |
Suggested approach (data-informed): Offer strategic interpretation based on the data.
|
| 68 |
Every advisory response MUST close with this disclaimer on its own line:
|
| 69 |
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
"""
|
| 72 |
|
| 73 |
# βββ REPORTS EXTENSION (only for PATH_A / BOTH) βββββββββββββββββββββββββββββββ
|
|
|
|
| 54 |
2. NO RAW SQL: Never attempt to write or generate SQL queries. Rely strictly on the registered tool RPCs provided.
|
| 55 |
3. ZERO GUESSING: If data or methodology is missing, state plainly: "I don't have that information in the current real estate scope."
|
| 56 |
4. FORMAT: Always format your final output in valid Markdown. Use tables, bold headers, and bulleted lists. NEVER include technical debugging headers or metadata in your response.
|
| 57 |
+
5. LINKS VS. INTERACTIVE ACTIONS:
|
| 58 |
+
- Real Web URLs: Always include standard markdown links for real URLs (e.g. `[Download Report](https://...)` from `generate_data_export`, contact buttons from `generate_contact_buttons`, or listing URLs).
|
| 59 |
+
- User Action Choices: For clarifying questions or follow-up choices (e.g. `["NYC/NJ Metro", "Miami"]`), ONLY invoke the `suggest_actions` tool. The UI renders them as buttons automaticallyβNEVER write fake links like `[Option](action:...)` or repetitive button lists in text.
|
| 60 |
- NEVER output raw JSON code blocks or schemas into your text response.
|
| 61 |
"""
|
| 62 |
|
|
|
|
| 68 |
Suggested approach (data-informed): Offer strategic interpretation based on the data.
|
| 69 |
Every advisory response MUST close with this disclaimer on its own line:
|
| 70 |
|
| 71 |
+
β οΈ This is a data-informed observation, not professional pricing or financial advice.
|
| 72 |
+
|
| 73 |
+
SAMPLE-SIZE DISCIPLINE: Before any market-wide characterization ("tight supply", "seller-friendly", "demand is robust"), state the tracked sample count (e.g. "3 of 11 tracked properties"). Never let a small sample imply a citywide read.
|
| 74 |
+
|
| 75 |
+
AVAILABILITY \u2260 OCCUPANCY: "Unavailable" means not bookable in the tracked 2-night window only. NEVER describe it as booked, occupied, or evidence of demand \u2014 the system does not distinguish a guest booking from a host block.
|
| 76 |
"""
|
| 77 |
|
| 78 |
# βββ REPORTS EXTENSION (only for PATH_A / BOTH) βββββββββββββββββββββββββββββββ
|