Skip to content

UsageWindow

Sub classes

Name Children Inherits
ModelScopedUsageWindow
clawd_code_sdk.models.context_usage
Per-model weekly window.

    Base classes

    Name Children Inherits
    ClaudeCodeBaseModel
    clawd_code_sdk.models.base
    Base model for all Claude Code Pydantic models.

    ⋔ Inheritance diagram

    graph TD
      1396065550["context_usage.UsageWindow"]
      2604142835["base.ClaudeCodeBaseModel"]
      3879467795["main.BaseModel"]
      2751680898["builtins.object"]
      2604142835 --> 1396065550
      3879467795 --> 2604142835
      2751680898 --> 3879467795

    🛈 DocStrings

    Bases: ClaudeCodeBaseModel

    Utilization of one plan rate-limit window.

    Source code in src/clawd_code_sdk/models/context_usage.py
    class UsageWindow(ClaudeCodeBaseModel):
        """Utilization of one plan rate-limit window."""
    
        model_config = ConfigDict(extra="ignore")  # server-defined, see UsageReportExtraUsage
    
        utilization: float | None
        """Percentage of the window used, 0-100."""
        resets_at: str | None
        """ISO 8601 timestamp of the window's reset."""
    

    resets_at instance-attribute

    resets_at: str | None
    

    ISO 8601 timestamp of the window's reset.

    utilization instance-attribute

    utilization: float | None
    

    Percentage of the window used, 0-100.

    :fa-brands-github: Show source on GitHub