> ## 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.

# events • AI Agent SDK

> Event-specific input types for the hook system.

# events

<Badge color="blue">AI Agent</Badge>

Event-specific input types for the hook system.

Each event type has its own input class with relevant fields.

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.hooks import events
```

## Classes

<CardGroup cols={2}>
  <Card title="BeforeToolInput" icon="brackets-curly" href="../classes/BeforeToolInput">
    Input for BeforeTool hooks.
  </Card>

  <Card title="AfterToolInput" icon="brackets-curly" href="../classes/AfterToolInput">
    Input for AfterTool hooks.
  </Card>

  <Card title="BeforeAgentInput" icon="brackets-curly" href="../classes/BeforeAgentInput">
    Input for BeforeAgent hooks.
  </Card>

  <Card title="AfterAgentInput" icon="brackets-curly" href="../classes/AfterAgentInput">
    Input for AfterAgent hooks.
  </Card>

  <Card title="SessionStartInput" icon="brackets-curly" href="../classes/SessionStartInput">
    Input for SessionStart hooks.
  </Card>

  <Card title="SessionEndInput" icon="brackets-curly" href="../classes/SessionEndInput">
    Input for SessionEnd hooks.
  </Card>

  <Card title="BeforeLLMInput" icon="brackets-curly" href="../classes/BeforeLLMInput">
    Input for BeforeLLM hooks.
  </Card>

  <Card title="AfterLLMInput" icon="brackets-curly" href="../classes/AfterLLMInput">
    Input for AfterLLM hooks.
  </Card>

  <Card title="OnErrorInput" icon="brackets-curly" href="../classes/OnErrorInput">
    Input for OnError hooks.
  </Card>

  <Card title="OnRetryInput" icon="brackets-curly" href="../classes/OnRetryInput">
    Input for OnRetry hooks.
  </Card>
</CardGroup>
