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