update
This commit is contained in:
@@ -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)
|
||||
|
||||
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
|
||||
#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
|
||||
else
|
||||
#planning with MCTS() -> best plan
|
||||
|
||||
# # actor loop(best plan)
|
||||
#actor loop(best plan)
|
||||
|
||||
# # end
|
||||
end
|
||||
end
|
||||
sleep(1)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user