AgentforceMessage

@Serializable data class AgentforceMessage

Data class representing a message in the Agentforce SDK with serialization support.

ConstructorSignature
AgentforceMessageconstructor(id: String, message: String? = null, text: String? = null, type: String, messageType: String? = null, feedbackId: String? = null, widget: String? = null, result: List<ResourceTypeMessage>? = null, confirm: List<ResourceTypeMessage>? = null, collect: List<CollectMessage>? = null, choices: List<ChoicesMessage>? = null, failureCode: String? = null, errors: List<String>? = null, isContentSafe: Boolean? = true, citedReferences: List<CitedReferences>? = null, lightningType: String? = null, isPartial: Boolean = false, value: String? = null, offset: Int = 0, timeStamp: Long = Date().time, language: String? = null, reason: String = "")
PropertySignature
choicesval choices: List<ChoicesMessage>? = null
citedReferencesval citedReferences: List<CitedReferences>? = null
collectval collect: List<CollectMessage>? = null
confirmval confirm: List<ResourceTypeMessage>? = null
errorsval errors: List<String>? = null
failureCodeval failureCode: String? = null
feedbackIdval feedbackId: String? = null
idval id: String
isContentSafeval isContentSafe: Boolean? = true
isPartial@Transient val isPartial: Boolean = false
languageval language: String? = null
lightningTypeval lightningType: String? = null
messagevar message: String?
messageTypeval messageType: String? = null
offsetval offset: Int = 0
reasonval reason: String
resultval result: List<ResourceTypeMessage>? = null
textval text: String? = null
timeStampval timeStamp: Long
typeval type: String
valueval value: String? = null
widgetval widget: String? = null
FunctionSignature
getComponentsfun getComponents(): List<AgentforceMessageValue>?
getMessageTypefun getMessageType(): MessageType?