Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8898226825 | |||
| 5c7caf0b49 | |||
| edeef4ed2a | |||
| 4610137f04 | |||
| aedc53bf86 | |||
| 7fa988313d | |||
| 0df4159261 | |||
| 9167ece0c0 | |||
| a6a9395ecc | |||
| f45a036971 | |||
| 24b85be58b |
@@ -673,6 +673,19 @@ function generatechat!(a::T; maxattempt::Integer=10
|
|||||||
println("\nERROR YiemAgent generatechat() failed to parse response: $response ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
|
println("\nERROR YiemAgent generatechat() failed to parse response: $response ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
|
||||||
continue
|
continue
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
# check whether all answer's key points are in responsedict
|
# check whether all answer's key points are in responsedict
|
||||||
|
|||||||
+1
-1
@@ -306,7 +306,7 @@ function sommelier(
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
mutable struct virtualcustomer <: agent
|
mutable f virtualcustomer <: agent
|
||||||
name::String # agent name
|
name::String # agent name
|
||||||
id::String # agent id
|
id::String # agent id
|
||||||
systemmsg::String # system message
|
systemmsg::String # system message
|
||||||
|
|||||||
Reference in New Issue
Block a user