This commit is contained in:
2024-12-23 14:05:16 +07:00
parent 178750db9a
commit 9768f22019
2 changed files with 198 additions and 59 deletions

View File

@@ -318,14 +318,14 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol,Any} where {T<:agen
delete!(responsedict, :mentioned_winery)
# cache decision dict into vectorDB, this should be after new message is added to a.memory[:events]
println("\n~~~ Do you want to cache decision dict? (y/n)")
user_answer = readline()
if user_answer == "y"
timeline = timeline
decisiondict = responsedict
a.func[:insertSommelierDecision](timeline, decisiondict)
end
# #CHANGE cache decision dict into vectorDB, this should be after new message is added to a.memory[:events]
# println("\n~~~ Do you want to cache decision dict? (y/n)")
# user_answer = readline()
# if user_answer == "y"
# timeline = timeline
# decisiondict = responsedict
# a.func[:insertSommelierDecision](timeline, decisiondict)
# end
return responsedict
catch e