DialogNodeOutputOptionsElementValue

public struct DialogNodeOutputOptionsElementValue : Codable, Equatable

An object defining the message input to be sent to the Watson Assistant service if the user selects the corresponding option.

  • An input object that includes the input text.

    Declaration

    Swift

    public var input: MessageInput?
  • An array of intents to be used while processing the input. Note: This property is supported for backward compatibility with applications that use the v1 Get response to user input method.

    Declaration

    Swift

    public var intents: [RuntimeIntent]?
  • An array of entities to be used while processing the user input. Note: This property is supported for backward compatibility with applications that use the v1 Get response to user input method.

    Declaration

    Swift

    public var entities: [RuntimeEntity]?
  • Initialize a DialogNodeOutputOptionsElementValue 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 used while processing the input. Note: This property is supported for backward compatibility with applications that use the v1 Get response to user input method.

    entities

    An array of entities to be used while processing the user input. Note: This property is supported for backward compatibility with applications that use the v1 Get response to user input method.

    Return Value

    An initialized DialogNodeOutputOptionsElementValue.