Skip to content

agents / Exports / EventEmitterPluginOptions

Interface: EventEmitterPluginOptions

Event emitter configuration

Hierarchy

Table of contents

Properties

Properties

enabled

Optional enabled: boolean

Whether the plugin is enabled

Inherited from

BasePluginOptions.enabled

Defined in

packages/agents/src/abstracts/base-plugin.ts:125


category

Optional category: PluginCategory

Plugin category for classification

Inherited from

BasePluginOptions.category

Defined in

packages/agents/src/abstracts/base-plugin.ts:127


priority

Optional priority: number

Plugin priority for execution order

Inherited from

BasePluginOptions.priority

Defined in

packages/agents/src/abstracts/base-plugin.ts:129


moduleEvents

Optional moduleEvents: EventType[]

Events to subscribe to from modules

Inherited from

BasePluginOptions.moduleEvents

Defined in

packages/agents/src/abstracts/base-plugin.ts:131


subscribeToAllModuleEvents

Optional subscribeToAllModuleEvents: boolean

Whether to subscribe to all module events

Inherited from

BasePluginOptions.subscribeToAllModuleEvents

Defined in

packages/agents/src/abstracts/base-plugin.ts:133


events

Optional events: EventType[]

Events to listen for

Defined in

packages/agents/src/plugins/event-emitter-plugin.ts:130


maxListeners

Optional maxListeners: number

Maximum number of listeners per event type

Defined in

packages/agents/src/plugins/event-emitter-plugin.ts:132


async

Optional async: boolean

Whether to emit events asynchronously

Defined in

packages/agents/src/plugins/event-emitter-plugin.ts:134


catchErrors

Optional catchErrors: boolean

Whether to catch and log listener errors

Defined in

packages/agents/src/plugins/event-emitter-plugin.ts:136


filters

Optional filters: Record<EventType, (event: EventData) => boolean>

Custom event filters

Defined in

packages/agents/src/plugins/event-emitter-plugin.ts:138


buffer

Optional buffer: Object

Event buffering options

Type declaration

NameType
enabledboolean
maxSizenumber
flushIntervalnumber

Defined in

packages/agents/src/plugins/event-emitter-plugin.ts:140

Released under the MIT License.