tock / ai.tock.bot.engine.dialog / DialogState / setValue

# setValue

`fun setValue(role: String, value: EntityValue): Unit` (source)

Set a new entity value. Remove previous entity values history.

Role
the role of the entity

Value
the new entity value

`fun setValue(entity: Entity, value: Value): Unit` (source)

Set a new entity value. Remove previous entity values history.

Entity
the entity

Value
the new entity value