tock / ai.tock.bot.engine / BotBus / changeEntityValue

# changeEntityValue

`open fun changeEntityValue(role: String, newValue: EntityValue?): Unit` (source)

Updates the current entity value in the dialog.

### Parameters

`role` - entity role

`newValue` - the new entity value

`open fun changeEntityValue(entity: Entity, newValue: Value?): Unit` (source)
`open fun changeEntityValue(entity: Entity, newValue: EntityValue): Unit` (source)

Updates the current entity value in the dialog.

### Parameters

`entity` - the entity definition

`newValue` - the new entity value