This commit is contained in:
Your Name
2024-02-10 08:16:31 +07:00
parent 9de820808c
commit 78594b8046
2 changed files with 6 additions and 6 deletions

View File

@@ -904,9 +904,9 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
keywordmemory = ""
for (k, v) in a.memory[:keyword]
if v === nothing
keywordmemory *= "- I have no info on $k \n"
keywordmemory *= "- I have no info on $k yet.\n"
else
keywordmemory *= "- $k is $v \n"
keywordmemory *= "- The user preferred $k is $v \n"
end
end
@@ -933,7 +933,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
</You have access to the following tools>
<Your job>
Use the following format:
Thought: based on your user info, think about what to do to next according to the plan. (PS. 1. let's think only one thing at a time. 2. pay attention to correct numeral calculation and commonsense.)
Thought: based on what you know about user, you should pay attention on what you don't know first then check out your plan. (PS. 1. let's think only one thing at a time. 2. pay attention to correct numeral calculation and commonsense.)
Act: based on your thought what action to choose?, must be one of [{toolnames}].
Actinput: your input to the action using JSON format (pay attention to the tool's input)
Obs: observed result of the action
@@ -961,7 +961,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
while true # while Thought or Act is empty, run actor again
response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.0, timeout=300,
response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.5, timeout=300,
stopword=["Thought:", "Obs:", "<|system|>", "</s>", "<|end|>"],
seed=rand(1000000:2000000))
println("")