This commit is contained in:
Your Name
2023-12-28 10:16:33 +00:00
parent cefb6c166b
commit 0f62a0d96b
2 changed files with 21 additions and 17 deletions

View File

@@ -343,8 +343,8 @@ function actor_mistral_openorca(a::agentReflex, taskrecap="")
start = "Self-awareness"
# aware = "Self-awareness: based on the recap, assess your progress against the plan then identify areas where you need to address."
# aware = "Self-awareness: based on the recap and the plan, state your current understanding of the matter in details then identify areas where you need to address."
aware = "Self-awareness: based on earlier conversation with the user, check your progress against the plan then assess the current situation to identify incomplete tasks. (focus on your actions and their results)"
thought = "Thought: you should always think about what to do according to self-awareness (1. let's think a single step. 2. pay attention to correct numeral calculation and commonsense.)"
aware = "Self-awareness: based on earlier conversation with the user, check your progress against the plan then state incomplete tasks and what you already have. (focus on your actions and their results)"
thought = "Thought: you should always think about what to do according to self-awareness (1. let's think a single step. 2. focus on incomplete task 3. pay attention to correct numeral calculation and commonsense.)"
end
winestockResult = ""
@@ -718,7 +718,9 @@ function conversation(a::agentReflex, usermsg::String; attemptlimit::Int=3)
@show isuseplan
if isuseplan # use plan before responding
a.memory[:shortterm]["User:"] = usermsg
if haskey(a.memory[:shortterm], "User:") == false
a.memory[:shortterm]["User:"] = usermsg
end
workstate, response = work(a)
end