Agent Budget Planner
A receipt-aware budget controller that keeps uncertain spending visible. Import execute_jobs and provide invoke(job) -> (value, actual_cost). Use unit=nano_dollars only when rates and receipts have actually been converted to that unit.
A receipt-aware budget controller that keeps uncertain spending visible.
- Import execute_jobs and provide invoke(job) -> (value, actual_cost). Use unit=nano_dollars only when rates and receipts have actually been converted to that unit.
- Python 3.10+
- functions, dictionaries, exceptions, integer arithmetic and callback functions.
- Python The standard library makes parsing, scoring, and failure handling visible without hiding the mechanism behind a framework.
Agent Budget Planner in 4 stages
A receipt-aware budget controller that keeps uncertain spending visible.
Estimate requests in integer microcredits
Validate nonnegative integer token counts and rates, then compute the worst-case cost.
starter · ~2 hours · Python
integer accountingcost estimatesReserve capacity before dispatch
Return a new ledger with a unique request reservation.
core · ~2 hours · Python
reservationsadmission controlSettle actual usage and release unused budget
Settle each request exactly once with actual cost no greater than its reservation.
core · ~2 hours · Python
settlementidempotencyimmutabilitySchedule within cost and time limits
Schedule known job estimates under integer cost and millisecond limits.
stretch · ~2 hours · Python
deadlinestrace eventsbounded execution