Skip to main content

Module goal

Module goal 

Source

Structs§

GoalState

Enums§

AccountingOutcome
Result of accounting goal usage.
GoalStatus

Functions§

account_goal_usage
Atomically increment tokens_used and time_used_seconds for the session’s goal, returning whether the budget is now exceeded.
delete_goal
load_goal
new_goal_id
Generate a new random goal id (UUID v4).
now_utc
save_goal