update
This commit is contained in:
@@ -84,9 +84,31 @@ using ..type, ..util, ..llmfunction
|
||||
|
||||
Signature\n
|
||||
-----
|
||||
"""
|
||||
function conversation(a::agentReflex, usermsg::String; attemptlimit::Int=3)
|
||||
a.attemptlimit = attemptlimit
|
||||
""" #TODO update document
|
||||
function conversation(a::T, usermsg::String) where {T<:agent}
|
||||
#TODO add "newtopic" command to delete history
|
||||
|
||||
# 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
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
workstate = nothing
|
||||
response = nothing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user