Skip to content

AgentHookHandler

Base classes

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

⋔ Inheritance diagram

graph TD
  292338150["hooks.AgentHookHandler"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 292338150
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Agent hook handler with multi-turn tool access.

See https://code.claude.com/docs/en/hooks#agent-based-hooks

Source code in src/clawd_code_sdk/models/hooks.py
class AgentHookHandler(TypedDict):
    """Agent hook handler with multi-turn tool access.

    See https://code.claude.com/docs/en/hooks#agent-based-hooks
    """

    type: Literal["agent"]
    prompt: str
    model: NotRequired[str]
    timeout: NotRequired[float]
    statusMessage: NotRequired[str]

:fa-brands-github: Show source on GitHub