Skip to content

APIRetrySystemMessage

Base classes

Name Children Inherits
BaseSystemMessage
clawd_code_sdk.models.system_messages
Base class for all system messages.

⋔ Inheritance diagram

graph TD
  3329365514["system_messages.APIRetrySystemMessage"]
  3228074852["system_messages.BaseSystemMessage"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3228074852 --> 3329365514
  3879467795 --> 3228074852
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseSystemMessage

System message emitted when an API call fails and is retried.

Source code in src/clawd_code_sdk/models/system_messages.py
class APIRetrySystemMessage(BaseSystemMessage):
    """System message emitted when an API call fails and is retried."""

    subtype: Literal["api_retry"] = "api_retry"
    attempt: int
    max_retries: int
    retry_delay_ms: float
    error_status: int | None
    error: AssistantMessageError
    no_response: NoResponseInfo | None = None
    """Set when the retry was triggered by the API not responding at all."""

no_response class-attribute instance-attribute

no_response: NoResponseInfo | None = None

Set when the retry was triggered by the API not responding at all.

:fa-brands-github: Show source on GitHub