diff --git a/src/interface.jl b/src/interface.jl index 0d02c21..42c063b 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -362,15 +362,15 @@ function selfAwareness(a::agentReflex) $aboutYourself $(a.roleSpecificInstruction[a.role]) - + $work - $(a.memory[:shortterm]["Plan 1:"]) Use the following format strictly: - What do I know: based on observed results, repeat all the details of what you have been gathered. + What do I know: based on observed results, repeat all the information you are gathering. 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 @@ -450,7 +450,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) # aware = "Self-awareness: Based on action's input and observed results, check your progress against the plan. Then, repeat all the details of what you have been gathered. Finally, describe in detail what you are missing." thought = "Self-awareness: $selfaware - Thought: based on self-awareness, you should always prioritize what you are missing first. Then think about what to do next. (P.S. 1) let's think a single step. 2) pay attention to correct numeral calculation and commonsense.) + Thought: based on self-awareness, You should always plan your next steps and focus on what you missed first. (P.S. 1) let's think a single step. 2) pay attention to correct numeral calculation and commonsense.) " end @@ -930,7 +930,7 @@ function work(a::agentReflex) latestTask = shortMemLatestTask(a.memory[:shortterm]) if haskey(a.memory[:shortterm], "Act $latestTask:") if occursin("askbox", a.memory[:shortterm]["Act $latestTask:"]) - a.memory[:shortterm]["Obs $latestTask:"] = "(user response) " * a.messages[end][:content] + a.memory[:shortterm]["Obs $latestTask:"] = "user response: " * a.messages[end][:content] end end end diff --git a/src/llmfunction.jl b/src/llmfunction.jl index dc4028a..d059ea5 100644 --- a/src/llmfunction.jl +++ b/src/llmfunction.jl @@ -174,6 +174,7 @@ function winestock(a::agentReflex, query::Dict) while true _sql = sendReceivePrompt(a, prompt, max_tokens=256, temperature=0.2, stopword=["/n/n", "END", "End", "Obs", "<|", """) @@ -194,9 +196,9 @@ function winestock(a::agentReflex, query::Dict) break end end - sql = split(newsql, ";")[1] * ";" - body = sql + + body = newsql uri = URI(scheme="http", host="192.168.88.12", port="9010", path="/sql", userinfo="root:root") r = HTTP.request("POST", uri, ["Accept" => "application/json", "NS"=>"yiem", "DB"=>"Blossom_wines"], body) println("")