Chuyển tới nội dung chính

beam_usage

beam_usage limits what each user may run and counts what they used.

beam_usage = { path = "../riverbeam/crates/beam_usage" }
ItemRole
UsagePlanname, limits, overage_policy; UsagePlan::unlimited(name)
UsageLimitsDaily request and token limits, per-request tokens, allowed agents, modalities and models
OveragePolicyHardBlock (default), SoftWarn, Throttle
UsageGuardcheck(user_id, plan, input) -> GuardResult
GuardResultallowed, reason, overage_policy
UsageTrackerrecord(user_id, event), get_usage(user_id) -> UsageSummary
UsageEvent, UsageSummaryWhat was used; totals for the current period
UsageStoreCounter storage trait; periods are UTC days
InMemoryUsageStoreThe shipped store

There are no feature flags.

What each limit does, and which ones are not enforced yet, is in Usage quotas.