This commit is contained in:
2024-01-15 20:03:45 +00:00
parent 00cee37b76
commit d8d522677c

View File

@@ -351,7 +351,8 @@ function selfAwareness(a::agentReflex)
aboutYourself =
"""
Your name is $(a.agentName)
$(a.roles[a.role])
$(a.roles[a.role])
"""
prompt =
@@ -359,6 +360,7 @@ function selfAwareness(a::agentReflex)
<|system|>
<About yourself>
$aboutYourself
$(a.roleSpecificInstruction[a.role])
</About yourself>
<Your work>
$work
@@ -370,6 +372,7 @@ function selfAwareness(a::agentReflex)
Use the following format strictly:
What do I know: based on observed results, repeat all the details of what you have been gathered.
What am I missing: based on observed results, describe in detail what you are still missing compared to your plan.
P.S. do not mention any toolnames
</Your job>
</s>
<|assistant|>
@@ -501,7 +504,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing)
while true # while Thought or Act is empty, run actor again
# tempcounter += 0.2
@show tempcounter
response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.4, timeout=180,
response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.4, timeout=300,
stopword=["Thought:", "Obs:", "<|system|>", "</s>", "<|end|>"],
seed=seed)
response = splittext(response, ["/n/n", "END", "End", "Obs", "<|im_end|>"])
@@ -1209,7 +1212,7 @@ function grading(a, guideline::T, text::T) where {T<:AbstractString}
prompt_grading = prompt
@show prompt_grading
println("")
response = sendReceivePrompt(a, prompt, timeout=180)
response = sendReceivePrompt(a, prompt, timeout=180a)
response = "{" * split(response, "}")[1] * "}"
@show response
@show jsonresponse = JSON3.read(response)