CreateIntent
public struct CreateIntent : Codable, Equatable
CreateIntent.
-
The name of the intent. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
- It cannot begin with the reserved prefix
sys-.
Declaration
Swift
public var intent: String -
The description of the intent. This string cannot contain carriage return, newline, or tab characters.
Declaration
Swift
public var description: String? -
The timestamp for creation of the object.
Declaration
Swift
public var created: Date? -
The timestamp for the most recent update to the object.
Declaration
Swift
public var updated: Date? -
An array of user input examples for the intent.
Declaration
Swift
public var examples: [Example]? -
Initialize a
CreateIntentwith member variables.Declaration
Swift
public init( intent: String, description: String? = nil, examples: [Example]? = nil )Parameters
intentThe name of the intent. This string must conform to the following restrictions:
- It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
- It cannot begin with the reserved prefix
sys-.
descriptionThe description of the intent. This string cannot contain carriage return, newline, or tab characters.
examplesAn array of user input examples for the intent.
Return Value
An initialized
CreateIntent.
View on GitHub
CreateIntent Structure Reference