diff --git a/src/interface.jl b/src/interface.jl index c35b04b..31bce6f 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -986,7 +986,7 @@ function think(a::T)::NamedTuple{(:actionname, :result), Tuple{String, String}} # map action and input() to llm function response = if actionname == "CHATBOX" - input = "My plan: $(thoughtDict[:plan])" + input = thoughtDict[:plan] (result=input, errormsg=nothing, success=true) elseif actionname == "CHECKINVENTORY" checkinventory(a, actioninput) @@ -1250,10 +1250,10 @@ function generatechat(a::companion) showerror(io, e) errorMsg = String(take!(io)) st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace())) - noise = noises(3, 5) println("") println("Attempt $attempt. Error occurred: $errorMsg\n$st") println("") + noise = noises(3, 5) end end error("generatechat failed to generate an evaluation") diff --git a/test/runtest.jl b/test/runtest.jl index d4780a3..c2e1631 100644 --- a/test/runtest.jl +++ b/test/runtest.jl @@ -170,7 +170,7 @@ a = YiemAgent.sommelier( executeSQL, querySQLVectorDB, addSQLVectorDB; - name= "Janie", + name= "Jene", id= "tempId", # agent instance id ) @@ -195,7 +195,7 @@ end main() """ - I'm joining a graduation party this evening. I want to get a bottle of white wine from the US. I'm ok with any price range. + I'm joining a graduation party this evening. I want to get a bottle of white wine from the US to celebrate. I'm ok with any price range. Well, the party is small casual with close friends and no food serving. I'm open to suggestion since I have no specific idea. I'm ok with any region.