# handle_event

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/callbacks/manager/handle_event)

Generic event handler for `CallbackManager`.

## Signature

```python
handle_event(
    handlers: list[BaseCallbackHandler],
    event_name: str,
    ignore_condition_name: str | None,
    *args: Any = (),
    **kwargs: Any = {},
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `handlers` | `list[BaseCallbackHandler]` | Yes | The list of handlers that will handle the event. |
| `event_name` | `str` | Yes | The name of the event (e.g., `'on_llm_start'`). |
| `ignore_condition_name` | `str \| None` | Yes | Name of the attribute defined on handler that if `True` will cause the handler to be skipped for the given event. |
| `*args` | `Any` | No | The arguments to pass to the event handler. (default: `()`) |
| `**kwargs` | `Any` | No | The keyword arguments to pass to the event handler (default: `{}`) |

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/core/langchain_core/callbacks/manager.py#L254)