update
This commit is contained in:
@@ -120,28 +120,21 @@ function conversation(a::T) where {T<:agent}
|
|||||||
disconnect(client)
|
disconnect(client)
|
||||||
|
|
||||||
else # a new thinking
|
else # a new thinking
|
||||||
|
# add usermsg to a.chathistory
|
||||||
|
addNewMessage(a, "user", usermsg)
|
||||||
|
|
||||||
end
|
#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
|
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)
|
sleep(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user