Skip to content

SDKControlGetUsageResponse

Base classes

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

⋔ Inheritance diagram

graph TD
  4260304111["control.SDKControlGetUsageResponse"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 4260304111
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Structured /usage data: session totals and plan rate-limit windows. Experimental.

Source code in src/clawd_code_sdk/models/control.py
class SDKControlGetUsageResponse(ClaudeCodeBaseModel):
    """Structured /usage data: session totals and plan rate-limit windows. Experimental."""

    session: UsageReportSession
    """Cost and usage accumulated by the current session."""
    subscription_type: str | None
    """claude.ai plan (e.g. "pro", "max"), None without a subscription."""
    rate_limits_available: bool
    """False when plan limits do not apply (API key, Bedrock, Vertex, ...)."""
    rate_limits: UsageRateLimits | None
    behaviors: dict[str, Any] | None = None
    """What contributes to usage, from a scan of local transcripts (None if skipped)."""

behaviors class-attribute instance-attribute

behaviors: dict[str, Any] | None = None

What contributes to usage, from a scan of local transcripts (None if skipped).

rate_limits_available instance-attribute

rate_limits_available: bool

False when plan limits do not apply (API key, Bedrock, Vertex, ...).

session instance-attribute

Cost and usage accumulated by the current session.

subscription_type instance-attribute

subscription_type: str | None

claude.ai plan (e.g. "pro", "max"), None without a subscription.

:fa-brands-github: Show source on GitHub