agent-event-service / Exports
agent-event-service
Table of contents
Classes
Interfaces
- IEventObjectValue
- IOwnerPathSegment
- IEventContext
- IBaseEventData
- IExecutionEventData
- IToolEventData
- IAgentEventData
- IEventService
- IEventServiceOwnerBinding
Type Aliases
Variables
Functions
Type Aliases
TEventUniversalValue
Ƭ TEventUniversalValue: TEventPrimitiveValue | Date | TEventUniversalValue[] | IEventObjectValue
Recursive universal value type for event payloads (JSON-like + Date).
Defined in
TEventLoggerData
Ƭ TEventLoggerData: Record<string, TEventUniversalValue | Date | Error>
Logger data type for event metadata.
Defined in
TEventExtensionValue
Ƭ TEventExtensionValue: TEventUniversalValue | TEventLoggerData | Error | IEventContext | IOwnerPathSegment[]
Allowed extension values for event payloads.
Defined in
TEventListener
Ƭ TEventListener: (eventType: string, data: IBaseEventData, context?: IEventContext) => void
Type declaration
▸ (eventType, data, context?): void
Parameters
| Name | Type |
|---|---|
eventType | string |
data | IBaseEventData |
context? | IEventContext |
Returns
void
Defined in
TUserEvent
Ƭ TUserEvent: typeof USER_EVENTS[keyof typeof USER_EVENTS]
Defined in
Variables
DEFAULT_ABSTRACT_EVENT_SERVICE
• Const DEFAULT_ABSTRACT_EVENT_SERVICE: IEventService
Singleton default event service instance.
Defined in
TASK_EVENTS
• Const TASK_EVENTS: Object
Type declaration
| Name | Type |
|---|---|
ASSIGNED | "assigned" |
COMPLETED | "completed" |
Defined in
TASK_EVENT_PREFIX
• Const TASK_EVENT_PREFIX: "task"
Defined in
USER_EVENTS
• Const USER_EVENTS: Object
Type declaration
| Name | Type |
|---|---|
MESSAGE | "message" |
INPUT | "input" |
Defined in
USER_EVENT_PREFIX
• Const USER_EVENT_PREFIX: "user"
Defined in
Functions
isDefaultEventService
▸ isDefaultEventService(service): boolean
Check if a given service is the default no-op implementation.
Parameters
| Name | Type |
|---|---|
service | IEventService |
Returns
boolean
Defined in
composeEventName
▸ composeEventName(ownerType, localName): string
Compose a full event name from owner prefix and local name. Local names must not contain dots.
Parameters
| Name | Type |
|---|---|
ownerType | string |
localName | string |
Returns
string
Defined in
bindWithOwnerPath
▸ bindWithOwnerPath(base, binding): IEventService
Bind an EventService to an explicit owner path. This is the standard entry point for scoped emission (path-only architecture).
Parameters
| Name | Type |
|---|---|
base | IEventService |
binding | IEventServiceOwnerBinding |
Returns
Defined in
bindEventServiceOwner
▸ bindEventServiceOwner(base, binding): IEventService
Alias for bindWithOwnerPath for historical call sites. Intentionally forwards to the single authoritative implementation.
Parameters
| Name | Type |
|---|---|
base | IEventService |
binding | IEventServiceOwnerBinding |