diff --git a/src/interface.jl b/src/interface.jl index 8a66e04..c59c106 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -718,7 +718,7 @@ function actor(a::agentReflex) a.memory[:shortterm]["Obs $(a.step):"] = toolresult a.memory[:log]["Obs $(a.step):"] = toolresult end - else # already done + else #WORKING already done a.step +=1 # if not add to memory yet. Add @@ -1163,13 +1163,13 @@ function checkStepCompletion(a) Your job is to check whether step $(a.step) of your work is completed according to the plan. So for instance the following: - Step 2 of the plan: Ask user about their preferred taste in white wine. - Your interpretation of step 2 of the plan: My understanding of this step is that I need info about their preferred taste in white wine e.g. dryness, sweetness and etc. But I can't find any relevant info that the user tell me their preferred taste in white wine according to Obs. - assistant: Thus, step 2 isn't done yet. Answer: {Not done} + Step 2 of the plan: Ask user about their preferred taste of a pizza. + Obs: I love Malvasia. + assistant: I can't find any relevant info that the user tell me their preferred taste in pizza wine according to Obs. Thus, step 2 isn't done yet. {answer: not done} - Step 5 of the plan: Ask user if they have any preferred type of wine. - Your interpretation of step 5 of the plan: My understanding of this step is that I need info about user preferred wine type. And I found relevant info such as the user like full-bodied wine according to Obs. - assistant: Step 5 is done. Answer: {done} + Step 5 of the plan: Ask user if they have any preferred type of car. + Obs: I like a semi truck. + assistant: I found relevant info such as the user like a semi truck according to Obs. Thus, step 5 is done. {answer: done} Let's think step by step. <|assistant|> @@ -1179,7 +1179,7 @@ function checkStepCompletion(a) @show checkStepCompletion_response = response decision = nothing - if occursin("Not done", response) + if occursin("not done", response) decision = false elseif occursin("done", response) decision = true diff --git a/src/type.jl b/src/type.jl index 92ad69c..bb938ac 100644 --- a/src/type.jl +++ b/src/type.jl @@ -170,7 +170,7 @@ function agentReflex( Thought: you should always think about what to do to achieve step {step} of the plan (pay attention to correct numeral calculation and commonsense). Act: the action to take that align with your thought, should be one of [{toolnames}] Actinput: your input to the action you chose (pay attention to the tool's input) - Obs: the result of the action + Obs: observed result of the action """, :actorOriginal=> """