DialogSuggestionValue

public struct DialogSuggestionValue : Codable, Equatable

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.

  • An input object that includes the input text.

    Declaration

    Swift

    public var input: MessageInput?
  • An array of intents to be sent along with the user input.

    Declaration

    Swift

    public var intents: [RuntimeIntent]?
  • An array of entities to be sent along with the user input.

    Declaration

    Swift

    public var entities: [RuntimeEntity]?
  • Initialize a DialogSuggestionValue with member variables.

    Declaration

    Swift

    public init(
        input: MessageInput? = nil,
        intents: [RuntimeIntent]? = nil,
        entities: [RuntimeEntity]? = nil
    )

    Parameters

    input

    An input object that includes the input text.

    intents

    An array of intents to be sent along with the user input.

    entities

    An array of entities to be sent along with the user input.

    Return Value

    An initialized DialogSuggestionValue.