Agentic.LLM.UsageWindow (agentic v0.2.2)

Copy Markdown

A single rate-limit / quota window for one provider. Anthropic has rolling 5-hour and 7-day windows; OpenRouter has a single credit pool; Groq has per-minute RPM caps. They all map to this struct.

Summary

Types

t()

@type t() :: %Agentic.LLM.UsageWindow{
  label: String.t(),
  limit: number() | nil,
  reset_at: integer() | nil,
  unit: :tokens | :requests | :usd | atom(),
  used: number() | nil
}