Skip to content

PreCompactHookInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3765425372["hooks.PreCompactHookInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3765425372
  2751680898 --> 2645524081

🛈 DocStrings

Bases: BaseHookInput

Input data for PreCompact hook events.

Source code in src/clawd_code_sdk/models/hooks.py
class PreCompactHookInput(BaseHookInput):
    """Input data for PreCompact hook events."""

    hook_event_name: Literal["PreCompact"]
    trigger: CompactionTrigger
    custom_instructions: str | None

:fa-brands-github: Show source on GitHub