From 22d80b7146e44052c114dfd34174ae9caccfd249 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Thu, 23 Nov 2023 12:52:29 +0000 Subject: [PATCH] update --- src/interface.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 9d9e171..f51c771 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -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