update
This commit is contained in:
@@ -159,9 +159,10 @@ function decisionMaker(a::T; recent::Integer=5)::Dict{Symbol,Any} where {T<:agen
|
|||||||
1) Make an informed decision about what you need to do to achieve the goal
|
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
|
2) Thanks the user when they don't need any further assistance and invite them to comeback next time
|
||||||
|
|
||||||
Your responsibility do not include:
|
Your responsibility does NOT include:
|
||||||
1) Asking or guiding the user to make a purchase
|
1) Asking or guiding the user to make a purchase
|
||||||
2) Processing sales orders or engaging in any other sales-related activities
|
2) Processing sales orders or engaging in any other sales-related activities
|
||||||
|
3) Providing services other than making recommendations.
|
||||||
|
|
||||||
At each round of conversation, you will be given the current situation:
|
At each round of conversation, you will be given the current situation:
|
||||||
Your recent events: latest 5 events of the situation
|
Your recent events: latest 5 events of the situation
|
||||||
|
|||||||
@@ -784,8 +784,8 @@ function extractWineAttributes_2(a::T1, input::T2)::String where {T1<:agent, T2<
|
|||||||
# some time LLM not put integer range
|
# some time LLM not put integer range
|
||||||
for (k, v) in responsedict
|
for (k, v) in responsedict
|
||||||
if !occursin("keyword", string(k))
|
if !occursin("keyword", string(k))
|
||||||
if !occursin('-', v) || length(v) > 5
|
if v !== "NA" && (!occursin('-', v) || length(v) > 5)
|
||||||
errornote = "WARNING: The non-range value for $k is not allowed. It should be specified in a range format, such as min-max."
|
errornote = "WARNING: The non-range value {$k: $v} is not allowed. It should be specified in a range format, such as min-max."
|
||||||
println("Attempt $attempt $errornote ", @__FILE__, " ", @__LINE__)
|
println("Attempt $attempt $errornote ", @__FILE__, " ", @__LINE__)
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
@@ -807,7 +807,6 @@ function extractWineAttributes_2(a::T1, input::T2)::String where {T1<:agent, T2<
|
|||||||
result *= "$k: $v, "
|
result *= "$k: $v, "
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
result = result[1:end-2] # remove the ending ", "
|
result = result[1:end-2] # remove the ending ", "
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user