This commit is contained in:
2023-11-23 12:10:29 +00:00
parent 3975d14a70
commit 18d4c62f40
2 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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 =>
"""