Skip to content

HookResponseSystemMessage

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: BaseSystemMessage

System message emitted when a hook completes.

Source code in src/clawd_code_sdk/models/system_messages.py
class HookResponseSystemMessage(BaseSystemMessage):
    """System message emitted when a hook completes."""

    subtype: Literal["hook_response"] = "hook_response"
    hook_id: str
    hook_name: str
    hook_event: str
    outcome: Outcome
    exit_code: int | None = None
    stderr: str
    stdout: str
    output: str

:fa-brands-github: Show source on GitHub