Package ai.tock.bot.engine.dialog
Class Snapshot
-
- All Implemented Interfaces:
public final class SnapshotA "snapshot" is a readonly view of the state in the dialog, usually after a bot reply.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringstoryDefinitionIdprivate final StringintentNameprivate final Stringstepprivate final List<EntityValue>entityValuesprivate final AnswerConfigurationTypestoryTypeprivate final StringstoryNameprivate final Instantdate
-
Method Summary
Modifier and Type Method Description final StringgetStoryDefinitionId()final StringgetIntentName()final StringgetStep()final List<EntityValue>getEntityValues()final AnswerConfigurationTypegetStoryType()final StringgetStoryName()final InstantgetDate()final BooleanhasValue(Entity entity)Does this value exist in the snapshot? final EntityValuegetValue(Entity entity)Returns the value if it exists. -
-
Constructor Detail
-
Snapshot
Snapshot(Dialog dialog)
-
Snapshot
Snapshot(String storyDefinitionId, String intentName, String step, List<EntityValue> entityValues, AnswerConfigurationType storyType, String storyName, Instant date)
-
-
Method Detail
-
getStoryDefinitionId
final String getStoryDefinitionId()
-
getIntentName
final String getIntentName()
-
getEntityValues
final List<EntityValue> getEntityValues()
-
getStoryType
final AnswerConfigurationType getStoryType()
-
getStoryName
final String getStoryName()
-
getValue
final EntityValue getValue(Entity entity)
Returns the value if it exists.
-
-
-
-