update
This commit is contained in:
@@ -392,7 +392,7 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol, Any} where {T<:age
|
||||
errorMsg = String(take!(io))
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
println("")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, " ", @__LINE__)
|
||||
println("")
|
||||
end
|
||||
end
|
||||
@@ -547,7 +547,7 @@ function evaluator(config::T1, state::T2
|
||||
errorMsg = String(take!(io))
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
println("")
|
||||
@warn "Attempt $attempt. Error occurred: $errorMsg\n$st"
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, " ", @__LINE__)
|
||||
println("")
|
||||
end
|
||||
end
|
||||
@@ -680,7 +680,7 @@ function reflector(config::T1, state::T2)::String where {T1<:AbstractDict, T2<:A
|
||||
errorMsg = String(take!(io))
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
println("")
|
||||
@warn "Attempt $attempt. Error occurred: $errorMsg\n$st"
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, " ", @__LINE__)
|
||||
println("")
|
||||
end
|
||||
end
|
||||
@@ -897,7 +897,7 @@ function conversation(a::sommelier, userinput::Dict)
|
||||
)
|
||||
)
|
||||
|
||||
# use dummy memory to check generatechat() for halucination (checking inventory)
|
||||
# thinking loop until AI wants to communicate with the user
|
||||
for i in 1:3
|
||||
actionname, result = think(a)
|
||||
if actionname == "CHATBOX" || actionname == "PRESENTBOX" || actionname == "ENDCONVERSATION"
|
||||
@@ -1178,7 +1178,7 @@ function generatechat(a::sommelier)
|
||||
errorMsg = String(take!(io))
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
println("")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, " ", @__LINE__)
|
||||
println("")
|
||||
end
|
||||
end
|
||||
@@ -1251,7 +1251,7 @@ function generatechat(a::companion)
|
||||
errorMsg = String(take!(io))
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
println("")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, " ", @__LINE__)
|
||||
println("")
|
||||
noise = GeneralUtils.randstrings(3, 5)
|
||||
end
|
||||
@@ -1437,7 +1437,7 @@ function generatequestion(a, text2textInstructLLM::Function; recent=nothing)::St
|
||||
errorMsg = String(take!(io))
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
println("")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
||||
println("Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, " ", @__LINE__)
|
||||
println("")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user