This commit is contained in:
2026-07-17 10:14:13 +07:00
parent da98baddb6
commit 1c829ad854
+8 -3
View File
@@ -539,9 +539,14 @@ function think(a::T)::NamedTuple{(:thoughtdict, :result_raw), Tuple{OrderedDict,
result_raw = nothing
if thoughtdict["action_name"] ["CHAT_BOX"]
#WORKING sometime CHAT_BOX input is only a few word. if thoughtdict["action_input] <20
# use generatechat!()
thoughtdict, result_raw = generatechat!(a)
# sometime CHAT_BOX input is too short.
# if thoughtdict["action_input] < 20 character, use generatechat!()
if length(thoughtdict["action_input"]) < 20
thoughtdict, result_raw = generatechat!(a)
else
thoughtdict["action_result"] = "Action result is the next user dialogue."
result_raw = thoughtdict["action_input"]
end
elseif thoughtdict["action_name"] == "END_CONVER_GUIDELINE"