tock / ai.tock.bot.engine.dialog / Snapshot

Snapshot

data class Snapshot (source)

A "snapshot" is a readonly view of the state in the dialog, usually after a bot reply.

Constructors

<init>

Snapshot(dialog: Dialog)

A "snapshot" is a readonly view of the state in the dialog, usually after a bot reply.

Snapshot(storyDefinitionId: String?, intentName: String?, step: String?, entityValues: List<EntityValue>, storyType: AnswerConfigurationType?, storyName: String? = storyDefinitionId, date: Instant = now())

Properties

date

val date: Instant

entityValues

val entityValues: List<EntityValue>

intentName

val intentName: String?

step

val step: String?

storyDefinitionId

val storyDefinitionId: String?

storyName

val storyName: String?

storyType

val storyType: AnswerConfigurationType?

Functions

getValue

Returns the value if it exists.

fun getValue(entity: Entity): EntityValue?

hasValue

Does this value exist in the snapshot?

fun hasValue(entity: Entity): Boolean