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 MessageContext with member variables.

    Declaration

    Swift

    public init(
        global: MessageContextGlobal? = nil,
        skills: [String: MessageContextSkill]? = nil
    )

    Parameters

    global

    Session context data that is shared by all skills used by the Assistant.

    skills

    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.

    Return Value

    An initialized MessageContext.