Wardrik. Spend
(wardrik_protocol v0.1.0-rc.1)
Copy Markdown
What an org's agents have spent against one ceiling in its current period.
See Wardrik.Ceiling.
:ceiling- the ceiling's name.:limit- its limit, as aWardrik.Amount.:spent- what the agents have spent.:granted- what approvals added.:per- the period::day,:week,:monthor:total.:on_exhausted- what the next call does once it's spent::ask,:denyor:continue.:starts_over- the day the period resets.nilfor:total.
Summary
Functions
Builds one from the protocol's JSON.
Returns it as the protocol's JSON, without fields that are nil.