Window Start • AI Agent SDK
window_start: Start timestamp of the current window for a “now“ timestamp.
window_start
Method
</div>
This is a method of the WindowedSpendBudgetPolicy class in the protocols module.
Start timestamp of the current window for a `now` timestamp.
Helper for the wrapper so it can query the durable sink for `spent_usd` over the same window the policy enforces.
Signature
def window_start(now: float) -> floatParameters
ParamField
floatNo description available.
Returns
ResponseField
floatThe result of the operation.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 5341