Skip to content

NotificationSystemMessage

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: BaseSystemMessage

Loop-side text notification.

Mirrors the interactive REPL notification queue (key/priority/timeout). JSX notifications are not emitted on this channel.

Source code in src/clawd_code_sdk/models/system_messages.py
class NotificationSystemMessage(BaseSystemMessage):
    """Loop-side text notification.

    Mirrors the interactive REPL notification queue (key/priority/timeout).
    JSX notifications are not emitted on this channel.
    """

    subtype: Literal["notification"] = "notification"
    key: str
    text: str
    priority: Literal["low", "medium", "high", "immediate"]
    color: str | None = None
    timeout_ms: int | None = None

:fa-brands-github: Show source on GitHub