@egain/ai-agent-sdk API Reference - v0.1.1 / MessageData
Interface: MessageData
Message data structure
Indexable
▪ [key: string]: any
Table of contents
Properties
- error_code
- chat_history
- options
- escalation
- escalationData
- sources
- reasoning
- context
- feedback
- escalationEvent
- token
- workflowType
- workflowNodeType
- inputType
Properties
error_code
• Optional error_code: string
Defined in
chat_history
• Optional chat_history: any[]
Defined in
options
• Optional options: string[]
Defined in
escalation
• Optional escalation: boolean
Defined in
escalationData
• Optional escalationData: Object
Type declaration
| Name | Type |
|---|---|
live? | boolean |
phone? | boolean |
phoneNumber? | string |
sms? | boolean |
smsNumber? | string |
email? | boolean |
Defined in
sources
• Optional sources: any[]
Defined in
reasoning
• Optional reasoning: string
Defined in
context
• Optional context: object
Defined in
feedback
• Optional feedback: Object
Type declaration
| Name | Type |
|---|---|
rating | any |
answerMessageId | string |
Defined in
escalationEvent
• Optional escalationEvent: any
Defined in
token
• Optional token: string
Defined in
workflowType
• Optional workflowType: null | "preChatWorkflow" | "escalationWorkflow" | "agentWorkflow"
Defined in
workflowNodeType
• Optional workflowNodeType: null | string
Defined in
inputType
• Optional inputType: null | string