Example
public struct Example : Codable, Equatable
Example.
-
The text of a user input example. This string must conform to the following restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
Declaration
Swift
public var text: String
-
An array of contextual entity mentions.
Declaration
Swift
public var mentions: [Mention]?
-
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?
-
Initialize a
Example
with member variables.Declaration
Swift
public init( text: String, mentions: [Mention]? = nil )
Parameters
text
The text of a user input example. This string must conform to the following restrictions:
- It cannot contain carriage return, newline, or tab characters.
- It cannot consist of only whitespace characters.
mentions
An array of contextual entity mentions.
Return Value
An initialized
Example
.