DialogSuggestion
public struct DialogSuggestion : Codable, Equatable
DialogSuggestion.
-
The user-facing label for the disambiguation option. This label is taken from the title or user_label property of the corresponding dialog node.
Declaration
Swift
public var label: String
-
An object defining the message input, intents, and entities to be sent to the Watson Assistant service if the user selects the corresponding disambiguation option.
Declaration
Swift
public var value: DialogSuggestionValue
-
The dialog output that will be returned from the Watson Assistant service if the user selects the corresponding option.
Declaration
Swift
public var output: [String : JSON]?
-
The unique ID of the dialog node that the label property is taken from. The label property is populated using the value of the dialog node’s title or user_label property.
Declaration
Swift
public var dialogNode: String?
-
Initialize a
DialogSuggestion
with member variables.Declaration
Swift
public init( label: String, value: DialogSuggestionValue, output: [String: JSON]? = nil, dialogNode: String? = nil )
Parameters
label
The user-facing label for the disambiguation option. This label is taken from the title or user_label property of the corresponding dialog node.
value
An object defining the message input, intents, and entities to be sent to the Watson Assistant service if the user selects the corresponding disambiguation option.
output
The dialog output that will be returned from the Watson Assistant service if the user selects the corresponding option.
dialogNode
The unique ID of the dialog node that the label property is taken from. The label property is populated using the value of the dialog node’s title or user_label property.
Return Value
An initialized
DialogSuggestion
.