evaluate_budget
Calculates total spend_intent in a window and compares to a limit, returning total_spent and within_budget. Empty ledger results in zero spent and within budget.
Instructions
Sum spend_intent amounts recorded within the last window_days and compare against limit_usd. Never raises -- an empty ledger reads as total_spent_usd=0.0, within_budget=True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit_usd | Yes | ||
| window_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||