# plugin_hook_event_names

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/adapters/hooks/plugin_hook_event_names)

List the hook events a plugin declares, for display before it loads.

Only events Hooks v2 recognizes are returned, so the plugin manager never
advertises a hook that the loader will later reject.

## Signature

```python
plugin_hook_event_names(
    plugin: PluginInstance,
) -> tuple[str, ...]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `plugin` | `PluginInstance` | Yes | Plugin whose declarations should be inspected. |

## Returns

`tuple[str, ...]`

Declared event names in declaration order, deduplicated.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/plugins/adapters/hooks.py#L136)