> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hook Input • AI Agent SDK

> HookInput: Base hook input - common fields for all events.

# HookInput

> Defined in the [**types**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/types.md) module.

AI Agent

Base hook input - common fields for all events.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph TD
    event["Event Trigger"] --> hook["Hook: HookInput"]
    hook --> decision{"Decision"}
    decision -- "Allow" --> proc["Process"]
    decision -- "Deny" --> block["Block"]
    style hook fill:#189AB4,color:#fff
    style event fill:#8B0000,color:#fff
    style proc fill:#8B0000,color:#fff
    style block fill:#8B0000,color:#fff
```

## Properties

**session\_id** `str`

No description available.

**cwd** `str`

No description available.

**event\_name** `str`

No description available.

**timestamp** `str`

No description available.

**agent\_name** `Optional[str]`

No description available.

**extra** `Dict[str, Any]`

No description available.

> [accordion] Internal & Generic Methods
>
> * **to\_dict**: Convert to dictionary for JSON serialization.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/hooks/types.py#L197)
>
> `praisonaiagents/hooks/types.py` at line 197

***

## Related Documentation

> [card] [Hooks Concept](https://praison.ai/docs/docs/concepts/hooks)

> [card] [Hook Events](https://praison.ai/docs/docs/features/hook-events)

> [card] [Callbacks](https://praison.ai/docs/docs/features/callbacks)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.