<HTML>
<HEAD>
<meta charset="UTF-8">
<title>BotBus.changeEntityValue - tock</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">tock</a>&nbsp;/&nbsp;<a href="../index.html">ai.tock.bot.engine</a>&nbsp;/&nbsp;<a href="index.html">BotBus</a>&nbsp;/&nbsp;<a href="./change-entity-value.html">changeEntityValue</a><br/>
<br/>
<h1>changeEntityValue</h1>
<a name="ai.tock.bot.engine. BotBus$changeEntityValue(kotlin. String, ai.tock.bot.engine.dialog. EntityValue)"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">changeEntityValue</span><span class="symbol">(</span><span class="identifier" id="ai.tock.bot.engine. BotBus$changeEntityValue(kotlin. String, ai.tock.bot.engine.dialog. EntityValue)/role">role</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="ai.tock.bot.engine. BotBus$changeEntityValue(kotlin. String, ai.tock.bot.engine.dialog. EntityValue)/newValue">newValue</span><span class="symbol">:</span>&nbsp;<a href="../../ai.tock.bot.engine.dialog/-entity-value/index.html"><span class="identifier">EntityValue</span></a><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code> <a href="https://github.com/theopenconversationkit/tock/blob/master/bot/engine/src/main/kotlin/engine/BotBus.kt#L229">(source)</a>
<p>Updates the current entity value in the dialog.</p>
<h3>Parameters</h3>
<p><a name="role"></a>
<code>role</code> - entity role</p>
<p><a name="newValue"></a>
<code>newValue</code> - the new entity value</p>
<a name="ai.tock.bot.engine. BotBus$changeEntityValue(ai.tock.nlp.api.client.model. Entity, ai.tock.nlp.entity. Value)"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">changeEntityValue</span><span class="symbol">(</span><span class="identifier" id="ai.tock.bot.engine. BotBus$changeEntityValue(ai.tock.nlp.api.client.model. Entity, ai.tock.nlp.entity. Value)/entity">entity</span><span class="symbol">:</span>&nbsp;<span class="identifier">Entity</span><span class="symbol">, </span><span class="identifier" id="ai.tock.bot.engine. BotBus$changeEntityValue(ai.tock.nlp.api.client.model. Entity, ai.tock.nlp.entity. Value)/newValue">newValue</span><span class="symbol">:</span>&nbsp;<span class="identifier">Value</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code> <a href="https://github.com/theopenconversationkit/tock/blob/master/bot/engine/src/main/kotlin/engine/BotBus.kt#L238">(source)</a><br/>
<a name="ai.tock.bot.engine. BotBus$changeEntityValue(ai.tock.nlp.api.client.model. Entity, ai.tock.bot.engine.dialog. EntityValue)"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">changeEntityValue</span><span class="symbol">(</span><span class="identifier" id="ai.tock.bot.engine. BotBus$changeEntityValue(ai.tock.nlp.api.client.model. Entity, ai.tock.bot.engine.dialog. EntityValue)/entity">entity</span><span class="symbol">:</span>&nbsp;<span class="identifier">Entity</span><span class="symbol">, </span><span class="identifier" id="ai.tock.bot.engine. BotBus$changeEntityValue(ai.tock.nlp.api.client.model. Entity, ai.tock.bot.engine.dialog. EntityValue)/newValue">newValue</span><span class="symbol">:</span>&nbsp;<a href="../../ai.tock.bot.engine.dialog/-entity-value/index.html"><span class="identifier">EntityValue</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code> <a href="https://github.com/theopenconversationkit/tock/blob/master/bot/engine/src/main/kotlin/engine/BotBus.kt#L247">(source)</a>
<p>Updates the current entity value in the dialog.</p>
<h3>Parameters</h3>
<p><a name="entity"></a>
<code>entity</code> - the entity definition</p>
<p><a name="newValue"></a>
<code>newValue</code> - the new entity value</p>
</BODY>
</HTML>
