This commit is contained in:
2023-11-23 12:52:29 +00:00
parent d659202c05
commit 22d80b7146

View File

@@ -1134,11 +1134,8 @@ function extractStepFromPlan(a::agent, plan::T) where {T<:AbstractString}
isStep = nothing
step = nothing
for i in 1:3
@show prompt
respond = sendReceivePrompt(a, prompt)
@show respond
isStep = GeneralUtils.getStringBetweenCharacters(respond, "{", "}")
@show isStep
if isStep == "no"
isStep = false
step = "nothing"
@@ -1154,7 +1151,7 @@ function extractStepFromPlan(a::agent, plan::T) where {T<:AbstractString}
end
end
if isStep === nothing && step === nothing
if isStep === nothing || step === nothing
error("undefined condition. step $(a.step) isStep=$isStep $(@__LINE__)")
end