update
This commit is contained in:
@@ -455,6 +455,7 @@ function getdata_decisionMaker(state::Dict, context::Dict, text2textInstructLLM:
|
||||
Let's begin!
|
||||
"""
|
||||
|
||||
noise = ""
|
||||
note_flag = ""
|
||||
for attempt in 1:10
|
||||
usermsg =
|
||||
@@ -464,6 +465,7 @@ function getdata_decisionMaker(state::Dict, context::Dict, text2textInstructLLM:
|
||||
User intention: $(context[:userintention])
|
||||
Code executed from the last round: $(state[:code])
|
||||
Execution error: $(state[:errormsg])
|
||||
$noise
|
||||
$note_flag
|
||||
"""
|
||||
|
||||
@@ -517,6 +519,7 @@ function getdata_decisionMaker(state::Dict, context::Dict, text2textInstructLLM:
|
||||
st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace()))
|
||||
print("Attempt $attempt. Error occurred: $errorMsg\n$st")
|
||||
println("")
|
||||
noise = GeneralUtils.randstrings(3, 5)
|
||||
end
|
||||
end
|
||||
return (thought=nothing, code=nothing, success=false,
|
||||
|
||||
Reference in New Issue
Block a user