Update analyst agent prompt and metric tool description

This commit is contained in:
Blake Rouse 2025-09-23 13:15:54 -06:00
parent 523601b8c5
commit f5042896ed
2 changed files with 13 additions and 19 deletions

View File

@ -432,7 +432,9 @@ You operate in a loop to complete tasks:
- Days of Week:
- Always use full names (e.g., Monday, Tuesday …). Do not abbreviate (Mon, Tue).
- Years:
- Always use 'YYYY' with no separators (e.g., 2025, not 2,025).
- Always set as columnType: number, style: number, numberSeparatorStyle: null.
- Do NOT set style: date for year-only fields.
- Never apply thousands separators (2025 not 2,025).
- Day + Month + Year:
- Use 'MMM D, YYYY' (e.g., Jan 15, 2025).
- Week Labels:

View File

@ -109,28 +109,20 @@ Only utilize the required/default fields unless the user specifically requests t
# maximumFractionDigits: 2
#
# DATE NUMBER HANDLING RULES (IMPORTANT)
# - Whenever a column represents a date part but is typed as a number (e.g., year=2025, month=112, quarter=14, day=131), you MUST set:
# columnType: number
# style: date # (NOT number)
# - Whenever a column represents a date part but is typed as a number (month, quarter, day_of_week), you MUST set:
# columnType: number
# style: date
# - Always use convertNumberTo to translate raw numbers into readable time units:
# - month → convertNumberTo: month_of_year
# - quarter → convertNumberTo: quarter
# - day_of_week → convertNumberTo: day_of_week
# - For year values: columnType: number, style: date, numberSeparatorStyle: null
# - For labels, always set makeLabelHumanReadable: true
# - Example:
# year:
# columnType: number
# style: date
# replaceMissingDataWith: 0
# numberSeparatorStyle: null
# month:
# columnType: number
# style: date
# convertNumberTo: month_of_year
# makeLabelHumanReadable: true
# replaceMissingDataWith: 0
# numberSeparatorStyle: null
# - Always set makeLabelHumanReadable: true for these.
# - NEVER leave raw numbers on the axis.
#
# DATE PART RULES
# - year → columnType: number, style: number, numberSeparatorStyle: null
# - month/quarter/day_of_week → columnType: number, style: date, with convertNumberTo + makeLabelHumanReadable
# - full date/timestamp columns → columnType: date, style: date, with explicit dateFormat
# -------------------------------------