Skip to content

ApiErrorParams

Base classes

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

⋔ Inheritance diagram

graph TD
  1177507590["messages.ApiErrorParams"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 1177507590
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Parameters of an API error, present only for the error kinds that have any (undocumented).

Source code in src/clawd_code_sdk/models/messages.py
class ApiErrorParams(ClaudeCodeBaseModel):
    """Parameters of an API error, present only for the error kinds that have any (undocumented)."""

    effort: str | None = None
    """Effort level the API refused (effort_requires_thinking)."""
    provider: (
        Literal[
            "bedrock",
            "anthropicAws",
            "mantle",
            "anthropicGoogleCloud",
            "vertex",
            "foundry",
            "gateway",
        ]
        | None
    ) = None
    remedy: (
        Literal[
            "refresh_command",
            "refresh_credentials",
            "adc",
            "gateway_token",
            "host_managed",
            "model_access",
        ]
        | None
    ) = None
    media: Literal["image", "document"] | None = None
    """Kind of block the API refused (media_removed)."""
    media_reason: Literal["unprocessable", "unsupported_by_model", "media_budget"] | None = None
    rate_limit_info: RateLimitInfo | None = None
    cut: Literal["output_limit", "context_window"] | None = None

effort class-attribute instance-attribute

effort: str | None = None

Effort level the API refused (effort_requires_thinking).

media class-attribute instance-attribute

media: Literal['image', 'document'] | None = None

Kind of block the API refused (media_removed).

:fa-brands-github: Show source on GitHub