TrainingPhrase class

Represents an example that the agent is trained on.

Constructors

TrainingPhrase({String name, @required String type, @required List<Part> parts, int timesAddedCount})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Output only. The unique identifier of this training phrase.
final
parts List<Part>
The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timesAddedCount int
Indicates how many times this example was added to the intent. Each time a developer adds an existing sample by editing an intent or training, this counter is increased.
final
type String
The type of the training phrase.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromJson(Map<String, dynamic> json) TrainingPhrase