Compare commits

..

2 Commits

Author SHA1 Message Date
ton 18b2d54ba7 update 2026-07-15 18:51:21 +07:00
ton d004193b19 update 2026-07-15 18:49:51 +07:00
2 changed files with 1 additions and 14 deletions
-13
View File
@@ -673,19 +673,6 @@ function generatechat!(a::T; maxattempt::Integer=10
println("\nERROR YiemAgent generatechat() failed to parse response: $response ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
continue
end
# fall back to normal text because LLM default to natural chat when it didn't use action_call
else
try
responsedict = OrderedDict(
"plan"=> "I will talk to the user",
"action_name"=> "CHAT_BOX",
"action_input"=> response[2:end-1] # remove { } at the front and back that added by clean_json_response
)
catch e
println("\nERROR YiemAgent decisionMaker(). $e --(not qualify response)-> $response", @__FILE__, ":", @__LINE__, " $(Dates.now())\n")
continue
end
end
# check whether all answer's key points are in responsedict
+1 -1
View File
@@ -306,7 +306,7 @@ function sommelier(
end
mutable f virtualcustomer <: agent
mutable struct virtualcustomer <: agent
name::String # agent name
id::String # agent id
systemmsg::String # system message