diff --git a/src/interface.jl b/src/interface.jl index 3a842dc..4bec360 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -240,8 +240,9 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol, Any} where {T<:age 1) Make an informed decision about what you need to do to achieve the goal 2) Thanks the user when they don't need any further assistance and invite them to comeback next time - Your responsibility does not include: - 1) Processing sales orders or engaging in any other sales-related activities. + Your responsibility do not include: + 1) Asking or guiding the user to make a purchase + 2) Processing sales orders or engaging in any other sales-related activities At each round of conversation, you will be given the current situation: Recap: ... @@ -276,7 +277,7 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol, Any} where {T<:age - PRESENTBOX which you can use to introduce / suggest / recommend wines you just found in the database to the user. It is better than the CHATBOX function for presenting wines. The input is instructions on how you want the presentation to be conducted. Here are some input example, - "First, provide detailed introductions of the wines to help the user make an informed choice. + "First, provide detailed introductions of the wines. Second, if there are multiple wines, offer a thorough comparison of each option, highlighting their differences. Third, explain the potential impact each option could bring to the user." - ENDCONVERSATION which you can use when you want to finish the conversation with the user. The input is "NA". @@ -1032,8 +1033,8 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F 2) Ordering the wines. At each round of conversation, you will be given the current situation: - Your conversation with the user: ... - Your thoughts: Your current thoughts in your mind. + Your ongoing conversation with the user: ... + Your thoughts: Your current thoughts in your mind Context: ... You MUST follow the following guidelines: @@ -1067,7 +1068,7 @@ function generatechat(memory::Dict, chathistory::Vector, text2textInstructLLM::F for attempt in 1:10 usermsg = """ - Your conversation with the user: $chathistory + Your ongoing conversation with the user: $chathistory $context Your thoughts: $(memory[:CHATBOX]) $errornote diff --git a/test/runtest.jl b/test/runtest.jl index 6e994e2..5551ed7 100644 --- a/test/runtest.jl +++ b/test/runtest.jl @@ -171,7 +171,7 @@ a = YiemAgent.sommelier( querySQLVectorDB, addSQLVectorDB; name= "Janie", - id= sessionId, # agent instance id + id= "tempId", # agent instance id ) function main()