MessageContext
public struct MessageContext : Codable, Equatable
MessageContext.
-
Session context data that is shared by all skills used by the Assistant.
Declaration
Swift
public var global: MessageContextGlobal? -
Information specific to particular skills used by the assistant. Note: Currently, only a single child property is supported, containing variables that apply to the dialog skill used by the assistant.
Declaration
Swift
public var skills: [String : MessageContextSkill]? -
Initialize a
MessageContextwith member variables.Declaration
Swift
public init( global: MessageContextGlobal? = nil, skills: [String: MessageContextSkill]? = nil )Parameters
globalSession context data that is shared by all skills used by the Assistant.
skillsInformation specific to particular skills used by the assistant. Note: Currently, only a single child property is supported, containing variables that apply to the dialog skill used by the assistant.
Return Value
An initialized
MessageContext.
View on GitHub
MessageContext Structure Reference