update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user