Utterance
public struct Utterance : Codable, Equatable
An utterance for the input of the general-purpose endpoint.
-
An utterance contributed by a user in the conversation that is to be analyzed. The utterance can contain multiple sentences.
Declaration
Swift
public var text: String -
A string that identifies the user who contributed the utterance specified by the
textparameter.Declaration
Swift
public var user: String? -
Initialize a
Utterancewith member variables.Declaration
Swift
public init( text: String, user: String? = nil )Parameters
textAn utterance contributed by a user in the conversation that is to be analyzed. The utterance can contain multiple sentences.
userA string that identifies the user who contributed the utterance specified by the
textparameter.Return Value
An initialized
Utterance.
View on GitHub
Utterance Structure Reference