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: Literal['image', 'document'] | None = None
Kind of block the API refused (media_removed).