@egain/ai-agent-sdk API Reference - v0.1.1 / MessageHandlerResult
Interface: MessageHandlerResult
Result returned by message handlers
Indexable
▪ [key: string]: any
Table of contents
Properties
Properties
type
• type: string
Defined in
messageId
• Optional messageId: string | number
Defined in
timestamp
• timestamp: number
Defined in
sessionId
• Optional sessionId: string | number
Defined in
agentId
• Optional agentId: string | number
Defined in
from
• from: Object
Type declaration
| Name | Type |
|---|---|
name | string |
isAi | boolean |
Defined in
to
• to: Object
Type declaration
| Name | Type |
|---|---|
name | string |
isAi | boolean |
Defined in
message
• message: Object
Type declaration
| Name | Type |
|---|---|
persona | string |
role | string |
content? | string |
raw | any |
escalationType? | null | string |
escalationData? | any |
sources? | any[] |
reasoning? | string |
showReasoning? | boolean |
showFeedback? | boolean |
showOptions? | boolean |
Defined in
isEscalation
• Optional isEscalation: boolean