diff --git a/src/interface.jl b/src/interface.jl index 4237026..f7da86c 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -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