update
This commit is contained in:
@@ -426,7 +426,7 @@ function main()
|
||||
# event_description="the assistant talks to the user.",
|
||||
# timestamp=Dates.now(),
|
||||
# subject="assistant",
|
||||
# actionname="CHATBOX",
|
||||
# action_name="CHATBOX",
|
||||
# action_input=customer_chat,
|
||||
# )
|
||||
# )
|
||||
@@ -453,8 +453,8 @@ function main()
|
||||
println("\nagent respond:\n $agent_response")
|
||||
|
||||
if haskey(agent.memory[:events][end], :thought)
|
||||
lastAssistantAction = agent.memory[:events][end][:thought][:actionname]
|
||||
if lastAssistantAction == "ENDCONVERSATION" # store thoughtDict
|
||||
lastAssistantAction = agent.memory[:events][end][:thought][:action_name]
|
||||
if lastAssistantAction == "ENDCONVERGUIDELINE" # store thoughtDict
|
||||
|
||||
# save a.memory[:shortmem][:decisionlog] to disk using JSON
|
||||
println("\nsaving agent.memory[:shortmem][:decisionlog] to disk")
|
||||
|
||||
Reference in New Issue
Block a user