This commit is contained in:
2023-11-02 23:13:21 +00:00
parent 8deda19a6d
commit 6fc539c41c

View File

@@ -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