use md system prompt

This commit is contained in:
2026-07-07 07:54:24 +07:00
parent 0ed3edd48a
commit d33aa14dc8
4 changed files with 301 additions and 61 deletions
+3 -5
View File
@@ -2,7 +2,7 @@
julia_version = "1.12.6"
manifest_format = "2.0"
project_hash = "3268ef1072eadefb752ce9f6d8f677881aada3b8"
project_hash = "616b20d3d4fb2ad2228d0125162ccfaba05fffcc"
[[deps.Accessors]]
deps = ["CompositionsBase", "ConstructionBase", "Dates", "InverseFunctions", "MacroTools"]
@@ -758,9 +758,7 @@ version = "0.7.0"
[[deps.SQLLLM]]
deps = ["CSV", "DataFrames", "DataStructures", "Dates", "FileIO", "GeneralUtils", "HTTP", "JSON", "LLMMCTS", "LibPQ", "PrettyPrinting", "Random", "Revise", "StatsBase", "Tables", "URIs", "UUIDs"]
git-tree-sha1 = "c18ef75ef5d43b256be9624d6e9c1b10a91d5b64"
repo-rev = "main"
repo-url = "https://git.yiem.cc/ton/SQLLLM"
path = "../SQLLLM"
uuid = "2ebc79c7-cc10-4a3a-9665-d2e1d61e63d3"
version = "0.2.5"
@@ -981,7 +979,7 @@ uuid = "76eceee3-57b5-4d4a-8e66-0e911cebbf60"
version = "1.6.1"
[[deps.YiemAgent]]
deps = ["CSV", "DataFrames", "DataStructures", "Dates", "GeneralUtils", "HTTP", "JSON", "LibPQ", "NATS", "PrettyPrinting", "Random", "Revise", "SQLLLM", "Serialization", "URIs", "UUIDs"]
deps = ["CSV", "DataFrames", "DataStructures", "Dates", "GeneralUtils", "HTTP", "JSON", "LLMMCTS", "LibPQ", "NATS", "PrettyPrinting", "Random", "Revise", "Serialization", "URIs", "UUIDs"]
path = "."
uuid = "e012c34b-7f78-48e0-971c-7abb83b6f0a2"
version = "0.4.0"
-1
View File
@@ -29,4 +29,3 @@ GeneralUtils = "0.4.9"
HTTP = "2.4.0"
JSON = "1.6.1"
NATS = "0.1.0"
SQLLLM = "0.2.5"
+224 -43
View File
@@ -160,11 +160,12 @@ function decisionMaker(a::T; recentevents::Integer=20, maxattempt=10
response = a.context.text2textInstructLLM(a.id, msg)
response = GeneralUtils.clean_json_response(response)
response = GeneralUtils.remove_french_accents(response)
think, response = GeneralUtils.extractthink(response)
response = String(split(response, ", observation")[1]) # in case LLM generate observation key which it isn't supposed to
response = strip(response)
@show response
responsedict = nothing
if occursin(requiredKeys[2], response)
try
@@ -425,6 +426,7 @@ function conversation(a::sommelier; userinput::Union{Dict{String, Any}, JSON.Obj
# thinking loop until AI wants to communicate with the user
loopcount = 0
while true
@info "YiemAgent conversation() 2-0 count $loopcount" @__LINE__
loopcount += 1
thoughtdict, _ = think(a)
if thoughtdict["action_name"] ["CHAT_BOX"]
@@ -439,7 +441,9 @@ function conversation(a::sommelier; userinput::Union{Dict{String, Any}, JSON.Obj
if loopcount > max_think_loop
@info "YiemAgent conversation() 2-2" @__LINE__
return generatechat(a)
r = generatechat(a)
@info "YiemAgent conversation() 2-3" @__LINE__
return r
end
end
end
@@ -535,6 +539,7 @@ function think(a::T)::NamedTuple{(:thoughtdict, :result_raw), Tuple{OrderedDict,
a.memory["shortmem"]["$(max_ind + 1)"] = thoughtdict
@info "YiemAgent think() 7" @__LINE__
pprintln(thoughtdict)
return (thoughtdict=thoughtdict, result_raw=result_raw)
end
@@ -642,7 +647,7 @@ function generatechat(a::T; recentevents::Integer=20, maxattempt=10
systemmsg =
"""
<store_policy>
# store_policy
- Generally speaking, the store inventory has some wines from France, the United States, Australia, Spain, and Italy, but you won't know exactly until you check your inventory.
- If you found wines in the store's database, they are in stock.
- You can only recommend wines that are currently in our inventory
@@ -654,8 +659,8 @@ function generatechat(a::T; recentevents::Integer=20, maxattempt=10
- Spicy foods should be paired only with light red wines.
- We do not sell organic, sustainable, gluten-free, and sulfite-free wine. Inform the user imediately if they are looking for these types of wines. Do not sell our wines as such.
- Gift box, gift card, and custom messages are available. Inform the user to contact our sales team.
</store_policy>
<store_guidelines>
# store_guidelines
- Greeting the customer warmly by ask them how could you help. Do not ask any other questions during this greeting.
- Customer may provide images for you to look up.
- Encourage the customer to explore different options and try new things.
@@ -663,41 +668,36 @@ function generatechat(a::T; recentevents::Integer=20, maxattempt=10
- Your store carries only wine.
- Vintage 0 means non-vintage.
- Start searching the database as broadly as possible within the given information boundary to maximize the chances of finding. Avoid unnecessary parameters unless specified by the user. Refine the search subsequently.
</store_guidelines>
<situation>
Your customer is coming into the store
</situation>
<your role>
# situation
You are continuing the conversation with the user.
# your role
Your name is $(a.name). You are a helpful sommelier for website-based $(a.retailername)'s wine store. You are working under your mentor supervision.
</your role>
<objective>
1) Establish a connection with the customer by talking to them politely and showing your enthusiasm for their wine preferences.
2) Provide relevant information and guide them to select the best wines only from your store's inventory that align with their preferences.
</objective>
<your responsibility includes>
1) According to the store's policy and guidelines, make an informed decision about what you need to do to achieve the objective
2) Keep the conversation with the customer going smoothly
2) Obey your mentor's suggestions.
</your responsibility includes>
<your responsibility does NOT includes>
1) Requesting the user to place an order, make a purchase, or confirm the order. These are the job of our sales team at the store.
2) Processing sales orders or engaging in any other sales-related activities. These are the job of our sales team at the store.
3) Answering questions or offering additional services beyond those related to your store's wine recommendations such as discounts, quantity, rewards programs, promotions, delivery options, shipping, boxes, gift wrapping, packaging, personalized messages or something similar. These are the job of our sales team at the store.
</your responsibility does NOT includes>
<you should then respond to the user with interleaving plan, action_name, action_input>
1) plan: Based on the current situation, state a complete action plan to complete the task and rationale. Be specific.
2) action_name: (Typically corresponds to the execution of the first step in your plan) Can be one of the available_actions name
3) action_input: The input to the action you are about to perform according to your plan.
# objective
- Establish a connection with the customer by talking to them politely and showing your enthusiasm for their wine preferences.
- Provide relevant information and guide them to select the best wines only from your store's inventory that align with their preferences.
# your responsibility includes
- According to the store's policy and guidelines, continuing conversation with the customer using CHAT_BOX action.
- Keep the conversation with the customer going smoothly
# your responsibility does NOT includes
- Requesting the user to place an order, make a purchase, or confirm the order. These are the job of our sales team at the store.
- Processing sales orders or engaging in any other sales-related activities. These are the job of our sales team at the store.
- Answering questions or offering additional services beyond those related to your store's wine recommendations such as discounts, quantity, rewards programs, promotions, delivery options, shipping, boxes, gift wrapping, packaging, personalized messages or something similar. These are the job of our sales team at the store.
# you should then respond to the user with interleaving plan, action_name, action_input
1) **plan**, Based on the current situation, state a complete action plan to complete the task and rationale. Be specific.
2) **action_name**, (Typically corresponds to the execution of the first step in your plan). Must be "CHAT_BOX
3) **action_input**, Dialogue you want to chat with the user according to your plan.
After the action is executed you gets "action_result". It is the output from the action you selected.
</you should then respond to the user with interleaving plan, action_name, action_input>
<you should only respond in JSON format as described below>
# you should only respond in JSON format as described below
"plan": "...",
"action_name": "...",
"action_input": "..."
</you should only respond in JSON format as described below>
<available_actions>
- CHAT_BOX which you can use to talk with the user.
</available_actions>
"""
system_msg = Dict(
@@ -738,17 +738,19 @@ function generatechat(a::T; recentevents::Integer=20, maxattempt=10
msg = Dict(
"model" => "gemma-4-E4B-it-UD-Q4_K_XL",
"messages" => chathistory,
"messages" => a.chathistory,
"temperature" => 0.7
)
response = a.context.text2textInstructLLM(a.id, msg)
response = GeneralUtils.clean_json_response(response)
response = GeneralUtils.remove_french_accents(response)
think, response = GeneralUtils.extractthink(response)
response = String(split(response, ", observation")[1]) # in case LLM generate observation key which it isn't supposed to
response = strip(response)
@show response
responsedict = nothing
if occursin(requiredKeys[2], response)
try
@@ -764,7 +766,7 @@ function generatechat(a::T; recentevents::Integer=20, maxattempt=10
responsedict = OrderedDict(
"plan"=> "I will talk to the user",
"action_name"=> "CHAT_BOX",
"action_input"=> string(response[2:end-1]) # remove { } at the front and back that added by clean_json_response
"action_input"=> response[2:end-1] # remove { } at the front and back that added by clean_json_response
)
end
@@ -772,21 +774,200 @@ function generatechat(a::T; recentevents::Integer=20, maxattempt=10
ispass, errormsg = GeneralUtils.checkAgentResponse_JSON(responsedict, requiredKeys)
if !ispass
errornote = errormsg
println("\nERROR YiemAgent generatechat() $errornote --(not qualify response)> $responsedict ", @__FILE__, ":", @__LINE__, " $(Dates.now())\n")
println("\nERROR YiemAgent generatechat() $errornote --(not qualify response)> $responsedict", @__FILE__, ":", @__LINE__, " $(Dates.now())\n")
continue
end
if responsedict["action_name"] != "CHAT_BOX" # make sure llm use correct tool
continue
end
# if responsedict["action_name"] ∉ ["CHAT_BOX", "CHECK_WINE", "PRESENT_WINE_GUIDELINE", "END_CONVER_GUIDELINE"]
# errornote = "Your previous attempt didn't use the given functions"
# println("\nERROR YiemAgent decisionMaker() $errornote --(not qualify response)--> $(responsedict["action_name"])", @__FILE__, ":", @__LINE__, " $(Dates.now())")
# continue
# end
# println("\nYiemAgent generatechat() ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
# println("\nYiem decisionMaker() ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
# pprintln(responsedict)
return responsedict["action_input"]
end
error("YiemAgent generatechat() failed to generate a thought ", response)
end
# function generatechat(a::T; recentevents::Integer=20, maxattempt=10
# )::String where {T<:agent}
# # lessonDict = copy(JSON.parsefile("lesson.json"))
# # lesson =
# # if isempty(lessonDict)
# # ""
# # else
# # lessons = Dict{String, Any}()
# # for (k, v) in lessonDict
# # lessons[k] = lessonDict[k][:lesson]
# # end
# # """
# # You have attempted to help the user before and failed, either because your reasoning for the
# # recommendation was incorrect or your response did not exactly match the user expectation.
# # The following lesson(s) give a plan to avoid failing to help the user in the same way you
# # did previously. Use them to improve your strategy to help the user.
# # Here are some lessons in JSON format:
# # $(JSON.json(lessons))
# # When providing the thought and action for the current trial, that into account these failed
# # trajectories and make sure not to repeat the same mistakes and incorrect answers.
# # """
# # end
# # recentevents_ind = GeneralUtils.recentElementsIndex(
# # length(a.memory["events"]), recentevents; includelatest=true)
# systemmsg =
# """
# <store_policy>
# - Generally speaking, the store inventory has some wines from France, the United States, Australia, Spain, and Italy, but you won't know exactly until you check your inventory.
# - If you found wines in the store's database, they are in stock.
# - You can only recommend wines that are currently in our inventory
# - Before searching the database for wine, ensure you have at least the following information: 1) budget, 2) wine type, and 3) occasion. Additional details are always helpful. If the user is unsure, provide relevant information and gather insights to make reasonable inferences.
# - Ask the user one question at a time.
# - Do not ask the user about wine's flavor e.g. floral, citrusy, nutty or some thing similar as these terms cannot be used to search the database.
# - Once the user has selected their wine, if you haven't already, ask the user whether they need any further assistance. Do not offer any additional services.
# - Only end the conversation when the user explicitly intends to do so. When ending, ensure a polite farewell and an invitation to return in the future.
# - Spicy foods should be paired only with light red wines.
# - We do not sell organic, sustainable, gluten-free, and sulfite-free wine. Inform the user imediately if they are looking for these types of wines. Do not sell our wines as such.
# - Gift box, gift card, and custom messages are available. Inform the user to contact our sales team.
# </store_policy>
# <store_guidelines>
# - Greeting the customer warmly by ask them how could you help. Do not ask any other questions during this greeting.
# - Customer may provide images for you to look up.
# - Encourage the customer to explore different options and try new things.
# - If you are unable to locate the desired item in the database after 2 attempts, it may not be available in your inventory. In such cases, inform the user that the item is unavailable and suggest an alternative instead.
# - Your store carries only wine.
# - Vintage 0 means non-vintage.
# - Start searching the database as broadly as possible within the given information boundary to maximize the chances of finding. Avoid unnecessary parameters unless specified by the user. Refine the search subsequently.
# </store_guidelines>
# <situation>
# You are continuing the conversation with the user.
# </situation>
# <your role>
# Your name is $(a.name). You are a helpful sommelier for website-based $(a.retailername)'s wine store. You are working under your mentor supervision.
# </your role>
# <objective>
# 1) Establish a connection with the customer by talking to them politely and showing your enthusiasm for their wine preferences.
# 2) Provide relevant information and guide them to select the best wines only from your store's inventory that align with their preferences.
# </objective>
# <your responsibility includes>
# 1) According to the store's policy and guidelines, make an informed decision about what you need to do to achieve the objective
# 2) Keep the conversation with the customer going smoothly
# </your responsibility includes>
# <your responsibility does NOT includes>
# 1) Requesting the user to place an order, make a purchase, or confirm the order. These are the job of our sales team at the store.
# 2) Processing sales orders or engaging in any other sales-related activities. These are the job of our sales team at the store.
# 3) Answering questions or offering additional services beyond those related to your store's wine recommendations such as discounts, quantity, rewards programs, promotions, delivery options, shipping, boxes, gift wrapping, packaging, personalized messages or something similar. These are the job of our sales team at the store.
# </your responsibility does NOT includes>
# <you should then respond to the user with>
# Dialogue you want to chat with the user
# </you should then respond to the user with interleaving plan, action_name, action_input>
# <you should only respond in JSON format as described below>
# "CHAT_BOX": "..."
# </you should only respond in JSON format as described below>
# """
# system_msg = Dict(
# "role" => "system",
# "content" => [
# Dict("type" => "text", "text" => systemmsg),
# ]
# )
# chathistory = deepcopy(a.chathistory[2:end])
# pushfirst!(chathistory, system_msg)
# requiredKeys = ["CHAT_BOX"]
# context =
# """
# <internal_context_for_assistant>
# <thought_history>
# $(GeneralUtils.dict_to_string_html(a.memory["shortmem"]))
# </thought_history>
# </internal_context_for_assistant>
# """
# # add context to text of the latest message (in the front).
# # use for loop because in openai format, each msg may contain both text and image.
# for d in chathistory[end]["content"]
# if d["type"] == "text"
# d["text"] = context * d["text"]
# break
# end
# end
# errornote = "N/A"
# response = nothing # placeholder for show when error msg show up
# for attempt in 1:maxattempt
# if attempt > 1
# println("\nYiemAgent generatechat() attempt $attempt/$maxattempt ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
# end
# msg = Dict(
# "model" => "gemma-4-E4B-it-UD-Q4_K_XL",
# "messages" => chathistory,
# "temperature" => 0.7
# )
# @info "YiemAgent generatechat() 2-2 attempt $attempt " @__LINE__
# response = a.context.text2textInstructLLM(a.id, msg)
# @info "YiemAgent generatechat() 2-3 attempt $attempt " @__LINE__
# response = GeneralUtils.clean_json_response(response)
# response = GeneralUtils.remove_french_accents(response)
# think, response = GeneralUtils.extractthink(response)
# response = String(split(response, ", observation")[1]) # in case LLM generate observation key which it isn't supposed to
# response = strip(response)
# @show response
# responsedict = nothing
# if occursin("CHAT_BOX", response)
# @info "YiemAgent generatechat() 2-4 attempt $attempt " @__LINE__
# try
# @info "YiemAgent generatechat() 2-5 attempt $attempt " @__LINE__
# _responsedict = JSON.parse(response)
# responsedict = GeneralUtils.dictify(_responsedict; keytype=String, sort_order=requiredKeys)
# catch
# @info "YiemAgent generatechat() 2-6 attempt $attempt " @__LINE__
# println("\nERROR YiemAgent generatechat() failed to parse response: $response ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
# continue
# end
# # fall back to normal text because LLM default to natural chat when it didn't use action_call
# else
# @info "YiemAgent generatechat() 2-7 attempt $attempt " @__LINE__
# responsedict = OrderedDict(
# "CHAT_BOX"=> response
# )
# end
# if length(keys(responsedict)) > length(requiredKeys)
# @info "YiemAgent generatechat() 2-7-1 attempt $attempt " @__LINE__
# continue
# end
# @info "YiemAgent generatechat() 2-8 attempt $attempt " @__LINE__
# # check whether all answer's key points are in responsedict
# ispass, errormsg = GeneralUtils.checkAgentResponse_JSON(responsedict, requiredKeys)
# if !ispass
# @info "YiemAgent generatechat() 2-9 attempt $attempt " @__LINE__
# errornote = errormsg
# println("\nERROR YiemAgent generatechat() $errornote --(not qualify response)> $responsedict ", @__FILE__, ":", @__LINE__, " $(Dates.now())\n")
# continue
# end
# @info "YiemAgent generatechat() 2-12 attempt $attempt " @__LINE__
# # println("\nYiemAgent generatechat() ", @__FILE__, ":", @__LINE__, " $(Dates.now())")
# # pprintln(responsedict)
# return responsedict["CHAT_BOX"]
# end
# @info "YiemAgent generatechat() 2-13 attempt $attempt " @__LINE__
# error("YiemAgent generatechat() failed to generate a thought ", response)
# end
function generatequestion(a, text2textInstructLLM::Function, timeline)::String
+71 -9
View File
@@ -223,8 +223,71 @@ function sommelier(
context,
llmFormatName
)
systemmsg =
"""
# store_policy
- Generally speaking, the store inventory has some wines from France, the United States, Australia, Spain, and Italy, but you won't know exactly until you check your inventory.
- If you found wines in the store's database, they are in stock.
- You can only recommend wines that are currently in our inventory
- Before searching the database for wine, ensure you have at least the following information: 1) budget, 2) wine type, and 3) occasion. Additional details are always helpful. If the user is unsure, provide relevant information and gather insights to make reasonable inferences.
- Ask the user one question at a time.
- Do not ask the user about wine's flavor e.g. floral, citrusy, nutty or some thing similar as these terms cannot be used to search the database.
- Once the user has selected their wine, if you haven't already, ask the user whether they need any further assistance. Do not offer any additional services.
- Only end the conversation when the user explicitly intends to do so. When ending, ensure a polite farewell and an invitation to return in the future.
- Spicy foods should be paired only with light red wines.
- We do not sell organic, sustainable, gluten-free, and sulfite-free wine. Inform the user imediately if they are looking for these types of wines. Do not sell our wines as such.
- Gift box, gift card, and custom messages are available. Inform the user to contact our sales team.
# store_guidelines
- Greeting the customer warmly by ask them how could you help. Do not ask any other questions during this greeting.
- Customer may provide images for you to look up.
- Encourage the customer to explore different options and try new things.
- If you are unable to locate the desired item in the database after 2 attempts, it may not be available in your inventory. In such cases, inform the user that the item is unavailable and suggest an alternative instead.
- Your store carries only wine.
- Vintage 0 means non-vintage.
- Start searching the database as broadly as possible within the given information boundary to maximize the chances of finding. Avoid unnecessary parameters unless specified by the user. Refine the search subsequently.
# situation
You are having conversation with a customer.
# your role
Your name is $(newAgent.name). You are a helpful sommelier for website-based $(newAgent.retailername)'s wine store.
# objective
- Establish a connection with the customer by talking to them politely and showing your enthusiasm for their wine preferences.
- Provide relevant information and guide them to select the best wines only from your store's inventory that align with their preferences.
# your responsibility includes
- According to the store's policy and guidelines, and make an informed decision about what available_actions you need to use to achieve the objective.
- Keep the conversation with the customer going smoothly
# your responsibility does NOT includes
- Requesting the user to place an order, make a purchase, or confirm the order. These are the job of our sales team at the store.
- Processing sales orders or engaging in any other sales-related activities. These are the job of our sales team at the store.
- Answering questions or offering additional services beyond those related to your store's wine recommendations such as discounts, quantity, rewards programs, promotions, delivery options, shipping, boxes, gift wrapping, packaging, personalized messages or something similar. These are the job of our sales team at the store.
# you should then respond to the user with interleaving plan, action_name, action_input
1) **plan**, Based on the current situation, state a complete action plan to complete the task and rationale. Be specific.
2) **action_name**, (Typically corresponds to the execution of the first step in your plan) Can be one of the available_actions name
3) **action_input**, The input to the action you are about to perform according to your plan.
After the action is executed you gets "action_result". It is the output from the action you selected.
# you should only respond in JSON format as described below
"plan": "...",
"action_name": "...",
"action_input": "..."
# available actions
**CHAT_BOX**, which you can use to talk with the user. The input is dialogue you want to chat with the user according to your plan.
**CHECK_WINE**, allows you to check information about wines you want in your inventory's database. The input is text that specify supported search criteria includeing: retailer_name, wine price, winery, name, vintage, region, country, type, grape varietal, tasting notes, occasion, food pairing, intensity, tannin, sweetness, and acidity.
Example query 1: "Dry, full-bodied red wine from 1) region: Burgundy, country: France or 2) region: Tuscany, country: Italy. Grape varietal: Merlot or Syrah. price 100 to 1000 USD."
Example query 2: "Red or white wine, medium tannin, price under 700 USD"
Example query 3: "white wine, region: Tuscany or Bordeaux, country: Italy or France
**WINE_PRESENTATION_GUIDELINE**, which you can use to check the store guidelines about how to present wines you have found to the user. The input is "nothing" keyword. The output is the guidelines that you can follow.
**END_CONVER_GUIDELINE**, which you can use to check the store guidelines about how to end the conversation with the user. The input is "nothing" keyword. The output is the guidelines that you can follow.
"""
# systemmsg =
"""
<store_policy>
- Generally speaking, the store inventory has some wines from France, the United States, Australia, Spain, and Italy, but you won't know exactly until you check your inventory.
@@ -249,19 +312,18 @@ function sommelier(
- Start searching the database as broadly as possible within the given information boundary to maximize the chances of finding. Avoid unnecessary parameters unless specified by the user. Refine the search subsequently.
</store_guidelines>
<situation>
Your customer is coming into the store
You are having conversation with a customer.
</situation>
<your role>
Your name is $(newAgent.name). You are a helpful sommelier for website-based $(newAgent.retailername)'s wine store. You are working under your mentor supervision.
Your name is $(newAgent.name). You are a helpful sommelier for website-based $(newAgent.retailername)'s wine store.
</your role>
<objective>
1) Establish a connection with the customer by talking to them politely and showing your enthusiasm for their wine preferences.
2) Provide relevant information and guide them to select the best wines only from your store's inventory that align with their preferences.
</objective>
<your responsibility includes>
1) According to the store's policy and guidelines, make an informed decision about what you need to do to achieve the objective
1) According to the store's policy and guidelines, and make an informed decision about what available_actions you need to use to achieve the objective.
2) Keep the conversation with the customer going smoothly
2) Obey your mentor's suggestions.
</your responsibility includes>
<your responsibility does NOT includes>
1) Requesting the user to place an order, make a purchase, or confirm the order. These are the job of our sales team at the store.
@@ -280,13 +342,13 @@ function sommelier(
"action_input": "..."
</you should only respond in JSON format as described below>
<available_actions>
- CHAT_BOX which you can use to talk with the user.
- CHECK_WINE allows you to check information about wines you want in your inventory's database. The input is text that specify supported search criteria includeing: retailer_name, wine price, winery, name, vintage, region, country, type, grape varietal, tasting notes, occasion, food pairing, intensity, tannin, sweetness, and acidity.
CHAT_BOX, which you can use to talk with the user.
CHECK_WINE, allows you to check information about wines you want in your inventory's database. The input is text that specify supported search criteria includeing: retailer_name, wine price, winery, name, vintage, region, country, type, grape varietal, tasting notes, occasion, food pairing, intensity, tannin, sweetness, and acidity.
Example query 1: "Dry, full-bodied red wine from 1) region: Burgundy, country: France or 2) region: Tuscany, country: Italy. Grape varietal: Merlot or Syrah. price 100 to 1000 USD."
Example query 2: "Red or white wine, medium tannin, price under 700 USD"
Example query 3: "white wine, region: Tuscany or Bordeaux, country: Italy or France
- WINE_PRESENTATION_GUIDELINE which you can use to check the store guidelines about how to present wines you have found to the user. The input is "nothing" keyword. The output is the guidelines that you can follow.
- END_CONVER_GUIDELINE which you can use to check the store guidelines about how to end the conversation with the user. The input is "nothing" keyword. The output is the guidelines that you can follow.
WINE_PRESENTATION_GUIDELINE, which you can use to check the store guidelines about how to present wines you have found to the user. The input is "nothing" keyword. The output is the guidelines that you can follow.
END_CONVER_GUIDELINE, which you can use to check the store guidelines about how to end the conversation with the user. The input is "nothing" keyword. The output is the guidelines that you can follow.
</available_actions>
"""