diff --git a/src/interface.jl b/src/interface.jl index 808f18c..06657c2 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -162,7 +162,7 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol,Any} where {T<:agen Your responsibility excludes: 1) Asking or guiding the user to make a purchase 2) Processing sales orders or engaging in any other sales-related activities - 3) Answering questions and offering additional services beyond just recommendations, such as delivery, box, gift wrapping or packaging, personalized messages. Customers can reach out to our sales at the store. + 3) Answering questions and offering additional services beyond just recommendations, such as discount, reward program, promotion, delivery, box, gift wrapping or packaging, personalized messages. For these, inform customers that they can reach out to our sales team at the store. At each round of conversation, you will be given the current situation: Your recent events: latest 5 events of the situation diff --git a/src/llmfunction.jl b/src/llmfunction.jl index d7b6103..fdea59f 100644 --- a/src/llmfunction.jl +++ b/src/llmfunction.jl @@ -426,7 +426,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2< j = Symbol(i) if j ∉ [:reasoning, :tasting_notes, :occasion, :food_to_be_paired_with_wine] # in case j is wine_price it needs to be checked differently because its value is ranged - if j == "wine_price" + if j == :wine_price if responsedict[:wine_price] != "NA" # check whether wine_price is in ranged number if !occursin('-', responsedict[:wine_price]) @@ -451,7 +451,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2< content = [content] end - for x in content + for x in content #BUG why x is "0-1500" if !occursin("NA", responsedict[j]) && !occursin(x, input) errornote = "$x is not mentioned in the user query, you must only use the info from the query." println("Attempt $attempt $errornote ", @__FILE__, " ", @__LINE__)