RuntimeIntent

public struct RuntimeIntent : Codable, Equatable

An intent identified in the user input.

  • The name of the recognized intent.

    Declaration

    Swift

    public var intent: String
  • A decimal percentage that represents Watson’s confidence in the intent.

    Declaration

    Swift

    public var confidence: Double
  • Initialize a RuntimeIntent with member variables.

    Declaration

    Swift

    public init(
        intent: String,
        confidence: Double
    )

    Parameters

    intent

    The name of the recognized intent.

    confidence

    A decimal percentage that represents Watson’s confidence in the intent.

    Return Value

    An initialized RuntimeIntent.