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

python
def window_start(now: float) -> float

Parameters

ParamField float

No description available.

Returns

ResponseField float

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 5341