update
This commit is contained in:
@@ -986,7 +986,7 @@ function think(a::T)::NamedTuple{(:actionname, :result), Tuple{String, String}}
|
|||||||
# map action and input() to llm function
|
# map action and input() to llm function
|
||||||
response =
|
response =
|
||||||
if actionname == "CHATBOX"
|
if actionname == "CHATBOX"
|
||||||
input = "My plan: $(thoughtDict[:plan])"
|
input = thoughtDict[:plan]
|
||||||
(result=input, errormsg=nothing, success=true)
|
(result=input, errormsg=nothing, success=true)
|
||||||
elseif actionname == "CHECKINVENTORY"
|
elseif actionname == "CHECKINVENTORY"
|
||||||
checkinventory(a, actioninput)
|
checkinventory(a, actioninput)
|
||||||
@@ -1250,10 +1250,10 @@ function generatechat(a::companion)
|
|||||||
showerror(io, e)
|
showerror(io, e)
|
||||||
errorMsg = String(take!(io))
|
errorMsg = String(take!(io))
|
||||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||||
noise = noises(3, 5)
|
|
||||||
println("")
|
println("")
|
||||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
||||||
println("")
|
println("")
|
||||||
|
noise = noises(3, 5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
error("generatechat failed to generate an evaluation")
|
error("generatechat failed to generate an evaluation")
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ a = YiemAgent.sommelier(
|
|||||||
executeSQL,
|
executeSQL,
|
||||||
querySQLVectorDB,
|
querySQLVectorDB,
|
||||||
addSQLVectorDB;
|
addSQLVectorDB;
|
||||||
name= "Janie",
|
name= "Jene",
|
||||||
id= "tempId", # agent instance id
|
id= "tempId", # agent instance id
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ end
|
|||||||
main()
|
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.
|
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 open to suggestion since I have no specific idea.
|
||||||
I'm ok with any region.
|
I'm ok with any region.
|
||||||
|
|||||||
Reference in New Issue
Block a user