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 thetype 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
typeThe underlying type of the slot value.
valueThe slot’s value.
View on GitHub
Slot Class Reference