This commit is contained in:
narawat lamaiin
2024-05-02 17:07:00 +07:00
parent 0caadfd3ee
commit 8262423317
2 changed files with 25 additions and 14 deletions

View File

@@ -97,6 +97,18 @@ function decisionMaker(a::T1, state::T2)::Dict{Symbol, Any} where {T1<:agent, T2
# (trajectories)
# """
"""
{
"Question": "I would like to buy a sedan.",
"Thought_1": "I have many cars in my inventory suitable for several usage scenarios.",
"Thought_2": "It would be better if I knew what the user intends to do with his car.",
"Thought_3": "I will ask the user what is the intended usecase",
"Action_1": {"name": "chatbox", "input": "What will you use it for?"}
}
"""
_prompt =
"""
You are a helpful sommelier working for a wine store.
@@ -131,19 +143,19 @@ function decisionMaker(a::T1, state::T2)::Dict{Symbol, Any} where {T1<:agent, T2
}
Here are some examples:
{
"Question": "I would like to buy a sedan.",
"Thought_1": "I have many cars in my inventory suitable for several usage scenarios.",
"Thought_2": "It would be better if I knew what the user intends to do with his car.",
"Thought_3": "I will ask the user what is the intended usecase",
"Action_1": {"name": "chatbox", "input": "What will you use it for?"}
}
{
"Question": "I'm looking for a sedan with an automatic driving feature.",
"Thought_1": "I have many types of sedans in my inventory, each with diverse features.",
"Thought_2": "But there is only 1 car that has the feature customer wanted.",
"Action_1": {"name": "finish", "input": "I recommend a Tesla model Y. It has your requested feature and much more."}
}
{
"Question": "I would like to buy a sedan with 8 seats.",
"Thought_1": "I have one model that fits the user demand",
"Thought_2": "But I'm not sure that we have it in stock.",
"Thought_3": "I need to check out inventory first.",
"Action_1": {"name": "inventory", "input": "Yiem model A"}
}
$reflect