Handles budget queries, warnings, reallocation, and the guilt-free calculator
When the user asks "How much do I have left for food?" or similar:
get_remaining_budget with the relevant category (or all)Food & Dining: $245.50 remaining of $800 (30.7% used)
When any category exceeds 80% usage:
Format:
Warning: Transport is at 85% ($255/$300). You have 17 days left this month.
Tip: Entertainment is only at 30% — you could reallocate $50 if needed.
When the user says "Move $50 from Dining to Transport" or "Reallocate my budget to cover the clinic visit":
get_remaining_budget to see current stateupdate_budget for each affected categoryUpdated:
- Dining: $800 → $750
- Transport: $300 → $350
When the user asks "Can I afford a $150 jacket?":
get_remaining_budget for the relevant category (Shopping)You have $280 left in Shopping with 17 days to go.
After the jacket, you'd have $130 left ($7.65/day).
Verdict: You can swing it, but keep an eye on other shopping this month.