<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[agents](../../) / [Exports](../modules) / EventEmitterPluginOptions

# Interface: EventEmitterPluginOptions

Event emitter configuration

## Hierarchy

- [`IPluginOptions`](IPluginOptions)

  ↳ **`EventEmitterPluginOptions`**

## Table of contents

### Properties

- [enabled](EventEmitterPluginOptions#enabled)
- [category](EventEmitterPluginOptions#category)
- [priority](EventEmitterPluginOptions#priority)
- [moduleEvents](EventEmitterPluginOptions#moduleevents)
- [subscribeToAllModuleEvents](EventEmitterPluginOptions#subscribetoallmoduleevents)
- [events](EventEmitterPluginOptions#events)
- [maxListeners](EventEmitterPluginOptions#maxlisteners)
- [async](EventEmitterPluginOptions#async)
- [catchErrors](EventEmitterPluginOptions#catcherrors)
- [filters](EventEmitterPluginOptions#filters)
- [buffer](EventEmitterPluginOptions#buffer)

## Properties

### enabled

• `Optional` **enabled**: `boolean`

Whether the plugin is enabled

#### Inherited from

[IPluginOptions](IPluginOptions).[enabled](IPluginOptions#enabled)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:126](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L126)

---

### category

• `Optional` **category**: [`PluginCategory`](../enums/PluginCategory)

Plugin category for classification

#### Inherited from

[IPluginOptions](IPluginOptions).[category](IPluginOptions#category)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:128](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L128)

---

### priority

• `Optional` **priority**: `number`

Plugin priority for execution order

#### Inherited from

[IPluginOptions](IPluginOptions).[priority](IPluginOptions#priority)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:130](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L130)

---

### moduleEvents

• `Optional` **moduleEvents**: [`EventType`](../modules#eventtype)[]

Events to subscribe to from modules

#### Inherited from

[IPluginOptions](IPluginOptions).[moduleEvents](IPluginOptions#moduleevents)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:132](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L132)

---

### subscribeToAllModuleEvents

• `Optional` **subscribeToAllModuleEvents**: `boolean`

Whether to subscribe to all module events

#### Inherited from

[IPluginOptions](IPluginOptions).[subscribeToAllModuleEvents](IPluginOptions#subscribetoallmoduleevents)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:134](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L134)

---

### events

• `Optional` **events**: [`EventType`](../modules#eventtype)[]

Events to listen for

#### Defined in

[packages/agents/src/plugins/event-emitter-plugin.ts:220](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/event-emitter-plugin.ts#L220)

---

### maxListeners

• `Optional` **maxListeners**: `number`

Maximum number of listeners per event type

#### Defined in

[packages/agents/src/plugins/event-emitter-plugin.ts:222](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/event-emitter-plugin.ts#L222)

---

### async

• `Optional` **async**: `boolean`

Whether to emit events asynchronously

#### Defined in

[packages/agents/src/plugins/event-emitter-plugin.ts:224](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/event-emitter-plugin.ts#L224)

---

### catchErrors

• `Optional` **catchErrors**: `boolean`

Whether to catch and log listener errors

#### Defined in

[packages/agents/src/plugins/event-emitter-plugin.ts:226](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/event-emitter-plugin.ts#L226)

---

### filters

• `Optional` **filters**: `Record`\<[`EventType`](../modules#eventtype), (`event`: [`EventData`](EventData)) => `boolean`\>

Custom event filters

#### Defined in

[packages/agents/src/plugins/event-emitter-plugin.ts:228](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/event-emitter-plugin.ts#L228)

---

### buffer

• `Optional` **buffer**: `Object`

Event buffering options

#### Type declaration

| Name            | Type      |
| :-------------- | :-------- |
| `enabled`       | `boolean` |
| `maxSize`       | `number`  |
| `flushInterval` | `number`  |

#### Defined in

[packages/agents/src/plugins/event-emitter-plugin.ts:230](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/event-emitter-plugin.ts#L230)
