This commit is contained in:
narawat lamaiin
2024-06-01 08:22:33 +07:00
parent dc7c12e903
commit de51dfd69d

View File

@@ -335,7 +335,8 @@ function makeNewState(currentstate::T1, thoughtDict::T4, response::T2, select::U
currentstate_latestThoughtKey, currentstate_latestThoughtIndice = currentstate_latestThoughtKey, currentstate_latestThoughtIndice =
GeneralUtils.findHighestIndexKey(currentstate[:thoughtHistory], "thought") GeneralUtils.findHighestIndexKey(currentstate[:thoughtHistory], "thought")
currentstate_nextIndice = currentstate_latestThoughtKey == :NA ? 1 : currentstate_latestThoughtIndice + 1 currentstate_nextIndice =
currentstate_latestThoughtKey == :NA ? 1 : currentstate_latestThoughtIndice + 1
currentstate_latestThoughtKey = Symbol("thought_$currentstate_nextIndice") currentstate_latestThoughtKey = Symbol("thought_$currentstate_nextIndice")
latestActionKey = Symbol("action_$currentstate_nextIndice") latestActionKey = Symbol("action_$currentstate_nextIndice")