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
text
parameter.Declaration
Swift
public var user: String?
-
Initialize a
Utterance
with member variables.Declaration
Swift
public init( text: String, user: String? = nil )
Parameters
text
An utterance contributed by a user in the conversation that is to be analyzed. The utterance can contain multiple sentences.
user
A string that identifies the user who contributed the utterance specified by the
text
parameter.Return Value
An initialized
Utterance
.