> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-agui.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post-hooks

## Parameters

Running a post-hook is handled automatically during the Agent or Team run. These are the parameters that will be injected:

| Parameter       | Type                           | Default  | Description                                                                  |
| --------------- | ------------------------------ | -------- | ---------------------------------------------------------------------------- |
| `agent`         | `Agent`                        | Required | The Agent that is running the post-hook. Only present in Agent runs.         |
| `team`          | `Team`                         | Required | The Team that is running the post-hook. Only present in Team runs.           |
| `run_output`    | `RunOutput` or `TeamRunOutput` | Required | The output of the current Agent or Team run.                                 |
| `session`       | `AgentSession`                 | Required | The `AgentSession` or `TeamSession` object representing the current session. |
| `session_state` | `Optional[Dict[str, Any]]`     | `None`   | The session state of the current session.                                    |
| `dependencies`  | `Optional[Dict[str, Any]]`     | `None`   | The dependencies of the current run.                                         |
| `metadata`      | `Optional[Dict[str, Any]]`     | `None`   | The metadata of the current run.                                             |
| `user_id`       | `Optional[str]`                | `None`   | The contextual user ID, if any.                                              |
| `debug_mode`    | `Optional[bool]`               | `None`   | Whether the debug mode is enabled.                                           |
