update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user