update
This commit is contained in:
@@ -682,6 +682,10 @@ function work(a::agentReflex, usermsg::String)
|
||||
println("all steps done")
|
||||
|
||||
respond = formulateUserRespond(a)
|
||||
|
||||
println("")
|
||||
formulatedRedpond = respond
|
||||
@show formulateUserRespond
|
||||
|
||||
a.memory[:shortterm]["Respond $(a.attempt):"] = respond
|
||||
a.memory[:log]["Respond $mark:"] = respond
|
||||
@@ -1108,10 +1112,6 @@ function formulateUserRespond(a)
|
||||
prompt =
|
||||
"""
|
||||
<|im_start|>system
|
||||
You have access to the following tools:
|
||||
chatbox: Useful for when you need to ask a customer for more context. Input should be a conversation to customer.
|
||||
wikisearch: Useful for when you need to search an encyclopedia Input is keywords and not a question.
|
||||
|
||||
Symbol:
|
||||
Stimulus: the input user gives to you and you must respond
|
||||
Plan: a plan
|
||||
@@ -1161,7 +1161,7 @@ julia> shorttermMemory = OrderedDict{String, Any}(
|
||||
julia> decision = goNogo(agent)
|
||||
"Yes"
|
||||
```
|
||||
"""
|
||||
""" #BUG sometime AI ready to formulate respond before all step are completed
|
||||
function goNogo(a)
|
||||
stimulus = a.memory[:shortterm]["user:"]
|
||||
work = shortMemoryToString(a.memory[:shortterm], ["user:"])
|
||||
|
||||
Reference in New Issue
Block a user