diff --git a/src/interface.jl b/src/interface.jl index f4a0809..13a7c36 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -629,7 +629,7 @@ function work(a::agentReflex, usermsg::String) a.step = 0 while true # execute step by step a.step += 1 - isstep, task = extractStepFromPlan(a, plan) + isstep, task = extractStepFromPlan(a, plan) @show isstep @show task if isstep @@ -812,7 +812,7 @@ function chooseThinkingMode(a::agentReflex, usermsg::String) {systemMsg} You have access to the following tools: {tools} - Your job is to determine whether you will use tools or actions to respond the stimulus. + Your job is to determine whether you will use tools or actions to respond. Choose one of the following choices: If you don't need tools or actions to respond to the stimulus say, "{no}". @@ -1118,8 +1118,8 @@ function extractStepFromPlan(a::agent, plan::T) where {T<:AbstractString} Your job is to determine whether step {$(a.step)} is in the user plan. Choose one of the following choices: - If there isn't say, {no}. - If there is say, {yes}. {copy the step and put it here} + If there isn't say, {no} + If there is say, {yes} {copy the step and put it here} <|im_end|> <|im_start|>user diff --git a/src/type.jl b/src/type.jl index 9ce43b1..ff06335 100644 --- a/src/type.jl +++ b/src/type.jl @@ -54,6 +54,7 @@ function agentReflex( :assistant => """ You are a helpful assistant who respond to a stimulus as best you can. + You always use tools if there is a chance to impove your respond. """, :sommelier => """