agent-plugin-event-emitter / Exports
agent-plugin-event-emitter
Table of contents
Classes
Interfaces
- IEventEmitterMetricsSnapshot
- IEventEmitterMetrics
- IEventExecutionContextData
- IEventEmitterPluginExecutionContext
- IEventEmitterPluginExecutionResult
- IEventEmitterHierarchicalEventData
- IEventEmitterPluginOptions
- IEventEmitterPluginStats
- IEventEmitterEventData
- IEventEmitterPlugin
- IEventEmitterHandler
Type Aliases
- TEventExecutionValue
- TEventEmitterMetadata
- TExecutionEventName
- TEventName
- TEventDataValue
- TEventEmitterListener
Variables
Type Aliases
TEventExecutionValue
Ƭ TEventExecutionValue: string | number | boolean | Date | string[] | number[] | boolean[] | Record<string, string | number | boolean | null> | null | undefined
Basic event execution value types
Defined in
agent-plugin-event-emitter/src/plugin-types.ts:22
TEventEmitterMetadata
Ƭ TEventEmitterMetadata: Record<string, string | number | boolean | Date | string[] | number[] | undefined>
Event metadata
Defined in
agent-plugin-event-emitter/src/plugin-types.ts:54
TExecutionEventName
Ƭ TExecutionEventName: typeof EXECUTION_EVENT_NAMES[keyof typeof EXECUTION_EVENT_NAMES]
Defined in
agent-plugin-event-emitter/src/types.ts:34
TEventName
Ƭ TEventName: TExecutionEventName | TToolEventName | TAgentEventName | "tool.beforeExecute" | "tool.afterExecute" | "tool.success" | "conversation.start" | "conversation.complete" | "conversation.error" | "agent.destroyed" | "plugin.loaded" | "plugin.unloaded" | "plugin.error" | "error.occurred" | "warning.occurred" | "module.initialize.start" | "module.initialize.complete" | "module.initialize.error" | "module.execution.start" | "module.execution.complete" | "module.execution.error" | "module.dispose.start" | "module.dispose.complete" | "module.dispose.error" | "module.registered" | "module.unregistered" | "execution.hierarchy" | "execution.realtime" | "tool.realtime" | "custom"
Defined in
agent-plugin-event-emitter/src/types.ts:84
TEventDataValue
Ƭ TEventDataValue: string | number | boolean | Date | null | undefined | TEventDataValue[] | { [key: string]: TEventDataValue; }
Valid event data value types
Defined in
agent-plugin-event-emitter/src/types.ts:119
TEventEmitterListener
Ƭ TEventEmitterListener: (event: IEventEmitterEventData) => void | Promise<void>
Event listener function
Type declaration
▸ (event): void | Promise<void>
Parameters
| Name | Type |
|---|---|
event | IEventEmitterEventData |
Returns
void | Promise<void>
Defined in
agent-plugin-event-emitter/src/types.ts:146
Variables
EVENT_EMITTER_EVENTS
• Const EVENT_EMITTER_EVENTS: Object
Event types that can be emitted.
IMPORTANT:
- Do not use string literals for event names outside this module.
- Import and use EVENT_EMITTER_EVENTS instead.
Type declaration
| Name | Type |
|---|---|
EXECUTION_START | "execution.start" |
EXECUTION_COMPLETE | "execution.complete" |
EXECUTION_ERROR | "execution.error" |
TOOL_BEFORE_EXECUTE | "tool.beforeExecute" |
TOOL_AFTER_EXECUTE | "tool.afterExecute" |
TOOL_SUCCESS | "tool.success" |
TOOL_ERROR | "tool.call_error" |
CONVERSATION_START | "conversation.start" |
CONVERSATION_COMPLETE | "conversation.complete" |
CONVERSATION_ERROR | "conversation.error" |
AGENT_EXECUTION_START | "agent.execution_start" |
AGENT_EXECUTION_COMPLETE | "agent.execution_complete" |
AGENT_EXECUTION_ERROR | "agent.execution_error" |
AGENT_CREATED | "agent.created" |
AGENT_DESTROYED | "agent.destroyed" |
PLUGIN_LOADED | "plugin.loaded" |
PLUGIN_UNLOADED | "plugin.unloaded" |
PLUGIN_ERROR | "plugin.error" |
ERROR_OCCURRED | "error.occurred" |
WARNING_OCCURRED | "warning.occurred" |
MODULE_INITIALIZE_START | "module.initialize.start" |
MODULE_INITIALIZE_COMPLETE | "module.initialize.complete" |
MODULE_INITIALIZE_ERROR | "module.initialize.error" |
MODULE_EXECUTION_START | "module.execution.start" |
MODULE_EXECUTION_COMPLETE | "module.execution.complete" |
MODULE_EXECUTION_ERROR | "module.execution.error" |
MODULE_DISPOSE_START | "module.dispose.start" |
MODULE_DISPOSE_COMPLETE | "module.dispose.complete" |
MODULE_DISPOSE_ERROR | "module.dispose.error" |
MODULE_REGISTERED | "module.registered" |
MODULE_UNREGISTERED | "module.unregistered" |
EXECUTION_HIERARCHY | "execution.hierarchy" |
EXECUTION_REALTIME | "execution.realtime" |
TOOL_REALTIME | "tool.realtime" |
CUSTOM | "custom" |