From 1c829ad8543ea1ab3cc202b94ec0797af0af9c51 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 17 Jul 2026 10:14:13 +0700 Subject: [PATCH] update --- src/interface.jl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 9b8ce55..25eb349 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -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"