Class Part (2.3.0)

Part(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a part of a training phrase. .. attribute:: text

Required. The text for this part.

:type: str

Attributes

NameDescription
entity_type str
Optional. The entity type name prefixed with @. This field is required for annotated parts of the training phrase.
alias str
Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
user_defined bool
Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.