diff --git a/src/interface.jl b/src/interface.jl index a0f7f2f..f5ed661 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -345,7 +345,8 @@ function actor_mistral_openorca(a::agentReflex, taskrecap="") # 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 Obs, review your progress against the plan. Then, describe in detail the results you have achieved so far. Finally, describe in detail what you are missing. (focus on your actions and their results)" - aware = "Self-awareness: Based on action's input and observed results, check your progress against the plan. Then, repeat all the details of what you have been gathered. Finally,describe in detail what you are missing." + # aware = "Self-awareness: Based on action's input and observed results, check your progress against the plan. Then, repeat all the details of what you have been gathered. Finally, describe in detail what you are missing." + aware = "Self-awareness: Based on action's input and observed results, repeat all the details of what you have been gathered. Then, check your progress against the plan. Finally, describe in detail what you are missing." 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 @@ -376,6 +377,7 @@ function actor_mistral_openorca(a::agentReflex, taskrecap="") Act: an action you intend to do according to your thought, must be one of [{toolnames}]. Actinput: your input to the action (pay attention to the tool's input) Obs: observed result of the action + END: end of session <|assistant|> @@ -396,7 +398,7 @@ function actor_mistral_openorca(a::agentReflex, taskrecap="") tempcounter += 0.2 @show tempcounter response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=tempcounter, timeout=180) - response = splittext(response, ["Obs", "<|im_end|>"]) + response = splittext(response, ["END", "Obs", "<|im_end|>"]) latestTask = shortMemLatestTask(a.memory[:shortterm]) +1