Skip to content

BaseHookInput

Base classes

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

⋔ Inheritance diagram

graph TD
  1772810293["hooks.BaseHookInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1772810293
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Base hook input fields present across many hook events.

Source code in src/clawd_code_sdk/models/hooks.py
class BaseHookInput(TypedDict):
    """Base hook input fields present across many hook events."""

    session_id: str
    transcript_path: str
    cwd: str
    prompt_id: NotRequired[str]
    """ID of the user prompt that started the current turn."""
    permission_mode: NotRequired[str]
    effort: NotRequired[HookEffort]

prompt_id instance-attribute

prompt_id: NotRequired[str]

ID of the user prompt that started the current turn.

:fa-brands-github: Show source on GitHub