Skip to main content

Module session

Module session 

Source
Expand description

TokenMaxingSession + report (RFC-031 §8).

One session per activation window (or manual run). Persisted per run via StateStore::save_json("token-maxing", &id, &session) and surfaced by the report API. The session records what ran, on which provider/model, how much quota was burned, and why the run ended.

Structs§

MaxerStatus
Live status for GET /api/token-maxing/status (RFC-031 §9).
MaxingWindow
A token-maxing activation window [start, end).
ProviderSessionRecord
Per-provider rollup within a session.
ProviderWindowRecord
One drained window on one provider (report fidelity, RFC-031 §11.5).
SessionTotals
Session-wide totals.
TaskRecord
One executed task and its outcome.
TokenMaxingSession
A complete token-maxing run.

Enums§

MaxingStart
How a session was activated.
StopReason
Why the session ended. The report distinguishes these so the user can tell “stopped: nothing to do” from “stopped: window ended” (RFC-031 §8).
TaskSource
Where a planned task was sourced from (RFC-031 §7).