@egain/ai-agent-sdk API Reference - v0.1.1 / AgentEvent
Interface: AgentEvent<T>
Wrapped agent event structure
Type parameters
| Name | Type |
|---|---|
T | extends AgentEventType = AgentEventType |
Table of contents
Properties
Properties
type
• type: T
Event type identifier
Defined in
timestamp
• timestamp: number
Timestamp when the event occurred (milliseconds since epoch)
Defined in
sessionId
• Optional sessionId: string | number
Session ID associated with the event
Defined in
agentId
• Optional agentId: string | number
Agent ID associated with the event
Defined in
payload
• payload: AgentEventPayloadMap[T]
Event-specific payload data Type varies based on the event type