agents / Exports / EventEmitterPluginOptions
Interface: EventEmitterPluginOptions
Event emitter configuration
Hierarchy
↳
EventEmitterPluginOptions
Table of contents
Properties
- enabled
- category
- priority
- moduleEvents
- subscribeToAllModuleEvents
- events
- maxListeners
- async
- catchErrors
- filters
- buffer
Properties
enabled
• Optional enabled: boolean
Whether the plugin is enabled
Inherited from
Defined in
packages/agents/src/abstracts/base-plugin.ts:125
category
• Optional category: PluginCategory
Plugin category for classification
Inherited from
Defined in
packages/agents/src/abstracts/base-plugin.ts:127
priority
• Optional priority: number
Plugin priority for execution order
Inherited from
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:131
maxListeners
• Optional maxListeners: number
Maximum number of listeners per event type
Defined in
packages/agents/src/plugins/event-emitter-plugin.ts:133
async
• Optional async: boolean
Whether to emit events asynchronously
Defined in
packages/agents/src/plugins/event-emitter-plugin.ts:135
catchErrors
• Optional catchErrors: boolean
Whether to catch and log listener errors
Defined in
packages/agents/src/plugins/event-emitter-plugin.ts:137
filters
• Optional filters: Record<EventType, (event: EventData) => boolean>
Custom event filters
Defined in
packages/agents/src/plugins/event-emitter-plugin.ts:139
buffer
• Optional buffer: Object
Event buffering options
Type declaration
| Name | Type |
|---|---|
enabled | boolean |
maxSize | number |
flushInterval | number |