From 6fc539c41c3c34fe5b6fc9100ec111bf26a4474a Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Thu, 2 Nov 2023 23:13:21 +0000 Subject: [PATCH] update --- src/interface.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 123309b..a9fd74b 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -202,15 +202,16 @@ function generatePrompt_tokenPrefix(a::agent; return prompt end -#WORKING + function conversation(a::agent, usermsg::String) userIntent = identifyUserIntention(a, usermsg) @show userIntent + #WORKING 1) add if-else user intention logic. 2) add recursive thinking end -#WORKING +#TESTING function identifyUserIntention(a::agent, usermsg::String) identify_usermsg = """ @@ -301,7 +302,7 @@ function identifyUserIntention(a::agent, usermsg::String) end end answer = result === nothing ? nothing : getStringBetweenCharacters(result, "{", "}") - @show answer + return answer end