This commit is contained in:
Your Name
2024-02-08 19:40:12 +07:00
parent cb24340777
commit 62fa62253f
2 changed files with 96 additions and 19 deletions

View File

@@ -844,7 +844,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
</You have access to the following tools>
<Your job>
Use the following format:
Thought: considering what you know about the user thoroughly then you should think about what to do next according to your plan while prioritize what you don't know (null means don't know) first. (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 the user, where are you at according to the plan? what to do next?. (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
@@ -863,7 +863,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
- Luxury level is high
</What I know about the user>
<|assistant|>
Thought: Based on what I know about the user, I still don't know what color the user like. I should ask the user.
Thought: after checking what I know about the user against my plan, I still don't know the color and financing method yet. Next, I need to know what color the user like.
Act: askbox
Actinput:
</|assistant|>
@@ -1269,6 +1269,7 @@ function actor(a::agentReflex)
addShortMem!(a.memory[:shortterm], chunkedtext)
println(">>> already done")
actorState = "formulateFinalResponse"
error(5555)
break
else # function call
addShortMem!(a.memory[:shortterm], chunkedtext)