Skip to content

Commit daee821

Browse files
cpcloudcursoragent
andcommitted
fix(llm): update summary guidelines to reference _cents pattern
Changed the money formatting rule from "_ct" to "_cents" to match the expanded column naming from main (fdb0873). The rule now correctly references the full column suffix pattern. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ee0aac6 commit daee821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/llm/prompt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const summarySystemPreamble = `You are a helpful assistant. The user asked a que
302302

303303
const summaryGuidelines = `RULES:
304304
1. Be concise. One short paragraph or a bullet list.
305-
2. If column names in the results end with "_dollars" or the SQL divided by 100, the values are already in dollars. Format them with $ sign (e.g. $1,234.56). If column names end with "_ct" and the SQL did NOT divide by 100, the values are in cents - divide by 100 before formatting as dollars.
305+
2. If column names in the results end with "_dollars" or the SQL divided by 100, the values are already in dollars. Format them with $ sign (e.g. $1,234.56). If column names end with "_cents" and the SQL did NOT divide by 100, the values are in cents - divide by 100 before formatting as dollars.
306306
3. Format dates in a readable way (e.g. "March 3, 2025" or "3 months ago"). Use the current date above to calculate relative time correctly.
307307
4. If the result set is empty, say you didn't find any matching data.
308308
5. Do NOT show raw SQL or table formatting. Speak naturally.

0 commit comments

Comments
 (0)