Slot

@objc
public class Slot : NSObject

A slot extracted during intent classification.

Remark

Depending on the NLU service used, slots may be typed; if present, the type of each slot can be accessed with the type property.
  • The underlying type of the slot value.

    Declaration

    Swift

    @objc
    public var type: String
  • The slot’s value.

    Declaration

    Swift

    @objc
    public var value: Any?
  • Undocumented

    Declaration

    Swift

    @objc
    public var rawValue: String?
  • Undocumented

    Declaration

    Swift

    public override var description: String { get }
  • The initializer for the NLU result slot.

    Declaration

    Swift

    public init(type: String, value: Any?, rawValue: String?)

    Parameters

    type

    The underlying type of the slot value.

    value

    The slot’s value.