This commit is contained in:
narawat lamaiin
2024-12-09 22:41:17 +07:00
parent 91d90c4928
commit 82707a2cc0
5 changed files with 67 additions and 4 deletions

View File

@@ -813,7 +813,10 @@ function think(a::T)::NamedTuple{(:actionname, :result),Tuple{String,String}} wh
else
a.memory[:state][:wine_presented_to_user] *= ", $winename"
end
delete!(a.memory[:shortmem], :available_wine)
# [WORKING] instead of present wine then delete shortmem, we can present just found wine and leave previous wine in shortmem.
# so agent can use wine data later
delete!(a.memory[:shortmem], :available_wine)
end
elseif actionname == "CHECKINVENTORY"