This commit is contained in:
2023-11-16 12:01:39 +00:00
parent cb5c9efa4d
commit 079aa2cbc2

View File

@@ -358,6 +358,8 @@ function conversation(a::T, usermsg::String) where {T<:agent}
userintend = identifyUserIntention(a, usermsg)
respond = nothing
# AI thinking mode
if userintend == "chat"
summary = conversationSummary(a)
_ = addNewMessage(a, "user", usermsg)
@@ -366,7 +368,7 @@ function conversation(a::T, usermsg::String) where {T<:agent}
respond = replace(respond, "\n<|im_end|>" => "")
_ = addNewMessage(a, "assistant", respond)
elseif userintend == "wine" #WORKING
error("wine done")
elseif userintend == "thought"