From d8d522677c37b432da8db292fdf5fad3bcb32ebb Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Mon, 15 Jan 2024 20:03:45 +0000 Subject: [PATCH] update --- src/interface.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 989538a..0d02c21 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -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|> $aboutYourself + $(a.roleSpecificInstruction[a.role]) $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 <|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|>", "", "<|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)