update
This commit is contained in:
@@ -161,7 +161,7 @@ function generatePrompt_mistral_openorca(a::T, usermsg::String,
|
||||
{tools}
|
||||
{thinkingMode}
|
||||
<|im_end|>
|
||||
Here are the context for the assignment:
|
||||
Here are the context for the stimulus:
|
||||
{context}
|
||||
"""
|
||||
prompt = replace(prompt, "{systemMsg}" => a.roles[a.role])
|
||||
@@ -177,7 +177,7 @@ function generatePrompt_mistral_openorca(a::T, usermsg::String,
|
||||
|
||||
prompt = replace(prompt, "{context}" => a.context)
|
||||
|
||||
prompt *= "<|im_start|>user\nAssignment: " * usermsg * "\n<|im_end|>\n"
|
||||
prompt *= "<|im_start|>user\nStimulus: " * usermsg * "\n<|im_end|>\n"
|
||||
prompt *= "<|im_start|>assistant\n"
|
||||
|
||||
return prompt
|
||||
@@ -240,7 +240,7 @@ function chat_mistral_openorca(a::agentReflex, usermsg::String)
|
||||
|
||||
prompt = replace(prompt, "{context}" => context)
|
||||
|
||||
prompt = replace(prompt, "{usermsg}" => "Assignment: $usermsg")
|
||||
prompt = replace(prompt, "{usermsg}" => "Stimulus: $usermsg")
|
||||
|
||||
return prompt
|
||||
end
|
||||
@@ -312,7 +312,7 @@ function planner_mistral_openorca(a::agentReflex, usermsg::String)
|
||||
|
||||
prompt = replace(prompt, "{context}" => context)
|
||||
|
||||
prompt = replace(prompt, "{usermsg}" => "Assignment: $usermsg")
|
||||
prompt = replace(prompt, "{usermsg}" => "Stimulus: $usermsg")
|
||||
|
||||
return prompt
|
||||
end
|
||||
@@ -384,7 +384,7 @@ function actor_mistral_openorca(a::agentReflex, usermsg::T) where {T<:AbstractSt
|
||||
|
||||
prompt = replace(prompt, "{context}" => context)
|
||||
|
||||
prompt = replace(prompt, "{usermsg}" => "Assignment: $usermsg")
|
||||
prompt = replace(prompt, "{usermsg}" => "Stimulus: $usermsg")
|
||||
|
||||
return prompt
|
||||
end
|
||||
@@ -617,6 +617,8 @@ function work(a::agentReflex, usermsg::String)
|
||||
# plan
|
||||
a.attempt += 1
|
||||
@show a.attempt
|
||||
@show usermsg
|
||||
# a.thoughtlog *=
|
||||
toolname = nothing
|
||||
toolinput = nothing
|
||||
prompt = planner_mistral_openorca(a, usermsg)
|
||||
@@ -810,11 +812,11 @@ 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 finish the assignment.
|
||||
Your job is to determine whether you will use tools or actions to respond the stimulus.
|
||||
|
||||
Choose one of the following choices:
|
||||
If you don't need tools or actions to fininsh the assignment say, "{no}".
|
||||
If you need tools or actions to finish the assignment say, "{yes}".
|
||||
If you don't need tools or actions to respond to the stimulus say, "{no}".
|
||||
If you need tools or actions to respond to the stimulus say, "{yes}".
|
||||
<|im_end|>
|
||||
|
||||
<|im_start|>user
|
||||
|
||||
Reference in New Issue
Block a user