This commit is contained in:
narawat lamaiin
2024-04-18 18:17:51 +07:00
parent 819517e62b
commit 9024eb60a4

View File

@@ -120,28 +120,21 @@ function conversation(a::T) where {T<:agent}
disconnect(client)
else # a new thinking
# add usermsg to a.chathistory
addNewMessage(a, "user", usermsg)
#WORKING if the last used tool is a chatbox
if a.plan[:currenttrajectory][end][:action] == "chatbox"
#usermsg -> observation and continue actor loop as planned
else
#planning with MCTS() -> best plan
#actor loop(best plan)
end
end
# # else
# # add usermsg to a.chathistory
# addNewMessage(a, "user", usermsg)
# #WORKING if the last used tool is a chatbox
# # if a.plan[:currenttrajectory][end][:action] == "chatbox"
# # usermsg -> observation and continue actor loop as planned
# # else # a new thinking
# # planning with MCTS() -> best plan
# # actor loop(best plan)
# # end
sleep(1)
end