update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user