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 CreateIntent with member variables.

    Declaration

    Swift

    public init(
        intent: String,
        description: String? = nil,
        examples: [Example]? = nil
    )

    Parameters

    intent

    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-.

    description

    The description of the intent. This string cannot contain carriage return, newline, or tab characters.

    examples

    An array of user input examples for the intent.

    Return Value

    An initialized CreateIntent.