> For AI agents: the complete documentation index is at [llms.txt](https://reflex.dev/docs/llms.txt). Markdown versions are available by appending `.md` or sending `Accept: text/markdown`.

# Eventspec

`reflex_base.event.EventSpec`

An event specification.

Whereas an Event object is passed during runtime, a spec is used
during compile time to outline the structure of an event.

Attributes:
    handler: The event handler.
    client_handler_name: The handler on the client to process event.
    args: The arguments to pass to the function.

## Fields

| Prop | Description |
| --- | --- |
| `event_actions: dict[str, bool \| int]` |  |
| `handler: EventHandler` | The event handler. |
| `client_handler_name: str` | The handler on the client to process event. |
| `args: tuple[tuple[reflex_base.vars.base.Var, reflex_base.vars.base.Var], ...]` | The arguments to pass to the function. |

## Methods

| Signature | Description |
| --- | --- |
| `with_args(self, args: tuple[tuple[reflex_base.vars.base.Var, reflex_base.vars.base.Var], ...]) -> 'EventSpec'` | Copy the event spec, with updated args. |
| `add_args(self, *args: reflex_base.vars.base.Var) -> 'EventSpec'` | Add arguments to the event spec. |
