input
stringlengths 11k
11.2k
| output_str
stringlengths 3
288
| openai_answer_str
stringlengths 2
287
| reason
stringlengths 19
314
|
---|---|---|---|
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋ง๋ฏธ์ธํธ๋ ๋๋์ธํธ ํ๋์ฉ ์ค
Assistant: ๋ง๋ฏธ์ธํธ๋ ๋๋์ธํธ ํ๋์ฉ! ์๋ฒฝํ ์กฐํฉ์ด๋ค์~ ๋ ํ์ํ ๊ฑด ์์ผ์ธ์?
User: ๊ทธ๊ฒ ๋ค ๋นผ์ฃผ๊ณ ํ
๋ธ๋ฌ ์ธํธ๋ก ํ๋ ์ถ๊ฐํ ๊ฒ
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'remove_product', 'arguments': {'product': '๋ง๋ฏธ ์ธํธ', 'quantity': 'ALL', 'options': []}}, {'name': 'remove_product', 'arguments': {'product': '๋๋ ์ธํธ', 'quantity': 'ALL', 'options': []}}, {'name': 'add_product', 'arguments': {'product': 'ํ
๋ธ๋ฌ ์ธํธ', 'quantity': '1', 'options': []}}]
| [{'name': 'replace_product', 'arguments': {'current_product': '๋ง๋ฏธ ์ธํธ', 'current_options': [], 'quantity': '1', 'new_product': 'ํ
๋ธ๋ฌ ์ธํธ', 'new_options': []}}, {'name': 'remove_product', 'arguments': {'product': '๋๋ ์ธํธ', 'quantity': 'ALL', 'options': []}}] | The user wants to replace ๋ง๋ฏธ์ธํธ with ํ
๋ธ๋ฌ ์ธํธ and remove ๋๋์ธํธ. Therefore, replace_product and remove_product should be called. Model output is incorrect since it removes both ๋ง๋ฏธ์ธํธ and ๋๋์ธํธ and adds ํ
๋ธ๋ฌ ์ธํธ. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋ง๋ฏธ์ธํธ ๋นผ์ฃผ๊ณ ๊ณ ๋ฌด์ฅ๊ฐ ํ๋๋ง ๋ฃ์ด์ค
Assistant: ๋ง๋ฏธ ์ธํธ ํ๋ ๋นผ๋๋ ธ์ต๋๋ค! ๋์ , ๊ณ ๋ฌด์ฅ๊ฐ ํ ๊ฐ๋ก ์
๊ทธ๋ ์ด๋ ์๋ฃ! ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User: ์๋์ผ ๊ฒฐ์ ํ ๊ฒ
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': 'ํํฌ ๋ ๋๋ ํค๋ง', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๊ณ ๋ฌด์ฅ๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'remove_product', 'arguments': {'product': '๋ง๋ฏธ ์ธํธ', 'quantity': 'ALL', 'options': []}}, {'name': 'add_product', 'arguments': {'product': '๊ณ ๋ฌด์ฅ๊ฐ', 'quantity': '1', 'options': []}}, {'name': 'done', 'arguments': {'is_ok_to_pay': True}}]
| [{'name': 'done', 'arguments': {'is_ok_to_pay': True}}] | The user's last message is '์๋์ผ ๊ฒฐ์ ํ ๊ฒ', which means they want to proceed to payment. Thus, the correct action is to call the 'done' tool with 'is_ok_to_pay': True. There's no need to remove or add products again since the assistant already handled the previous request in the previous turn. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ํจ๋ฐ๋ฆฌ ์ธํธ๋ ๋ญ์ผ?
Assistant: ํจ๋ฐ๋ฆฌ ์ธํธ๋ 10๊ฐ์ง๋ฆฌ ํ์ผํํฌ ๋ผ์ง ์ฌ์ด์ฆ ๊ณ ๋ฌด์ฅ๊ฐ์ด์! ๊ฐ์กฑ ๋ชจ๋๋ฅผ ์ํ ๋ ๋ ํ ๋ณดํธ๋ง์ด์ฃ . 16,900์์
๋๋ค. ๊ตฌ๋งคํ์๋ฉด ํ ์์ ์ ๋ค์ด๊ฐ๋ ์ ์ฉ ํจํค์ง์ ๋ด์๋๋ฆด๊ฒ์~
User: ์ด๋ฏธ์ง๋ ์ด๋ฏธ์ง ๊ณต์ฉ์ฌ๋ ํ๋๋ง ์๋ ๊ฒ์
๋๋ค ๋จ์งํ ์๊ธฐ์์ ์ด๋ฏธ์ง๋ง
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ธ๋ ๋ ๋๋ ํค๋ง', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'inquire_product_info', 'arguments': {'product': 'ํจ๋ฐ๋ฆฌ ์ธํธ'}}]
| [] | The user's last message is unclear and doesn't directly relate to a specific product or store inquiry. Therefore, the correct action is to return an empty list. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
Assistant: ์ด์์ค์ธ์! GGLS์ ์ค์ ๊ฑธ ํ์ํด์!
Assistant: ๋ญ๊ฐ ํ์ํ์ ๊ฐ์?
User: ํด๋ ์ธํธ ํ๋ ์ค
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : None[/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': 'ํด๋ ์ธํธ', 'quantity': '1', 'options': []}}]
| [{'name': 'add_product', 'arguments': {'product': '๋๋์ธํธ', 'quantity': '1', 'options': []}}] | The user said ํด๋ ์ธํธ which seems like a typo of ๋๋์ธํธ. Therefore, the product should be ๋๋์ธํธ and not ํด๋ ์ธํธ |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋๋ ์ธํธ
Assistant: ๋๋ ์ธํธ ํ๋ ์ถ๊ฐ ์๋ฃ! ์ด์ ๋ ํ์ํ ๊ฑฐ ์์ผ์ ๊ฐ์?
User: ๋๋ฏธ ํ๋ ์ค
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': '๋๋ฏธ', 'quantity': '1', 'options': []}}]
| [{'name': 'add_product', 'arguments': {'product': '๊ณ ๋ฌด์ฅ๊ฐ', 'quantity': '1', 'options': []}}] | User asks for ๋๋ฏธ which is ๊ณ ๋ฌด์ฅ๊ฐ(๋ง๋ฏธ์), so it should be ๊ณ ๋ฌด์ฅ๊ฐ not ๋๋ฏธ |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋๋ฏธ ํ๋ ์ค
Assistant: ๋๋ฏธ? ๋ง๋ฏธ ์ธํธ๋ ๊ณ ๋ฌด์ฅ๊ฐ ์์ด์! ์ด๋ค ๊ฑธ ์ํ์๋์?
User: ์๋ฏธ ์ธํธ
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': '์๋ฏธ ์ธํธ', 'quantity': '1', 'options': []}}]
| [] | The user asked for "์๋ฏธ ์ธํธ", but there is no such product. The assistant provided "๋ง๋ฏธ ์ธํธ๋ ๊ณ ๋ฌด์ฅ๊ฐ" as options. Therefore, no tool should be called. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ์ด ๋ฐ์ดํธ ์ธํธ๋ ์๋ฏธ ์ธํธ ๋นผ์ค
Assistant: ์๋ฏธ ์ธํธ ํ๋ ๋นผ๋๋ ธ์ต๋๋ค! ๋ค๋ฅธ ๊ฑฐ ํ์ํ์ ๊ฐ์?
User: ๋ฐ๋ ์ธํธ๋ ๋ง๋ฏธ ์ธํธ ๋นผ์ค
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'remove_product', 'arguments': {'product': '๋๋ ์ธํธ', 'quantity': 'ALL', 'options': []}}, {'name': 'remove_product', 'arguments': {'product': '๋ง๋ฏธ ์ธํธ', 'quantity': 'ALL', 'options': []}}]
| [{'name': 'remove_product', 'arguments': {'product': '๋๋ ์ธํธ', 'quantity': 'ALL', 'options': []}}] | The current cart contains only '๋๋ ์ธํธ'. The user asked to remove '๋ฐ๋ ์ธํธ' and '๋ง๋ฏธ ์ธํธ'. so only ๋๋ ์ธํธ should be removed. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋ง๋ฏธ์ธํธ๋ ๋๋์ธํธ ์ถ๊ฐํด์ค
Assistant: ๋ง๋ฏธ ์ธํธ๋ ๋๋ ์ธํธ, ์๋ฒฝํ ์กฐํฉ์ด๋ค์! ๊ฐ 1๊ฐ์ฉ ๋ ์ถ๊ฐํด๋๋ ธ์ต๋๋ค. ์ด์ ๋ถ๋ชจ๋๊ป๋, ์์ด์๊ฒ๋ ์ฌ๋๋ฐ์ ์ค๋น๊ฐ ๋๋ฌ์ด์~ ๋ค๋ฅธ ๊ฒ๋ ํ์ํ์ ๊ฐ์?
User: ํ
๋ธ๋ฌ ์ธํธ ํ๋ ์ถ๊ฐํด์ค
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': 'ํ
๋ธ๋ฌ ์ธํธ', 'quantity': '1', 'options': []}}]
| [{'name': 'add_product', 'arguments': {'product': 'ํ
๋ธ๋ฌ', 'quantity': '1', 'options': []}}] | ํ
๋ธ๋ฌ ์ธํธ is not in available product. it should be ํ
๋ธ๋ฌ |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ํ
๋ธ๋ฌ ์ธํธ ํ๋ ์ถ๊ฐํด์ค
Assistant: ํ
๋ธ๋ฌ ์ธํธ์? ๋๋ ์ธํธ๋ฅผ ๋ง์ํ์ ๊ฑด๊ฐ์? ๋ฐ๋ก ์ถ๊ฐํด๋๋ฆด๊ฒ์!
User: ๋ธ๋ ์ผ์ th
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': '๋ธ๋ ์ผ์ ', 'quantity': '1', 'options': []}}]
| [] | The user is likely trying to correct the previous ambiguous request (ํ
๋ธ๋ฌ ์ธํธ) and saying they want a "๋ธ๋ ์ผ์ ". However, "๋ธ๋ ์ผ์ " is not a recognized product. Therefore, based on the instructions, the output should be an empty list due to the ambiguity. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋ธ๋ ์ผ์ th
Assistant: ์ผ์ ? ๋ ๋๋ ํค๋ง ๋ธ๋์ผ๋ก ์๊ณ ์๋๋ฐ, ๋ง์ผ์ ๊ฐ์? ๋ฐ๋ก ์ค๋นํด๋๋ฆด๊ฒ์!
User: ๋ค ์ธํธ ๋ฌ๋ผ ์ค
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': 'ํจ๋ฐ๋ฆฌ ์ธํธ', 'quantity': '1', 'options': []}}]
| [{'name': 'add_product', 'arguments': {'product': 'ํจ๋ฐ๋ฆฌ์ธํธ', 'quantity': '1', 'options': []}}] | The user asks for ์ธํธ after the assistant confirms ๋ ๋๋ ํค๋ง ๋ธ๋. Therefore, the correct tool is add_product with product=ํจ๋ฐ๋ฆฌ์ธํธ, not ๋ง๋ฏธ์ธํธ |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ๋ค ์ธํธ ๋ฌ๋ผ ์ค
Assistant: ํจ๋ฐ๋ฆฌ ์ธํธ ํ๋ ๋ํ์
จ๋ค์! ์ด์ ๊ฐ์กฑ ๋ชจ์์ด ๋ ์ฆ๊ฑฐ์์ง๊ฒ ์ด์~ ๊ฒฐ์ ๋์๋๋ฆด๊น์?
User: ๋ ๊ฒฐ์ ํด์ค
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': 'ํจ๋ฐ๋ฆฌ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': '๋ ๋๋ ํค๋ง ๋ธ๋', 'quantity': '2', 'options': []}}, {'name': 'done', 'arguments': {'is_ok_to_pay': True}}]
| [{'name': 'done', 'arguments': {'is_ok_to_pay': True}}] | The user said "๋ ๊ฒฐ์ ํด์ค" which means "๊ฒฐ์ ํด์ค" in this context, thus we should call done tool, not add_product tool. Also the current cart status is not empty so we do not need to add product. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
Assistant: ์์ฐ, ๋ธ๋ ๋ ๋๋ ํค๋ง์ ๋ฌด๋ ค ๋ ๊ฐ๋! ์ด 9๋ง ์์ด์์~
Assistant: ๊ฒฐ์ ๊ฐ ์ทจ์๋์ด์. ์ฃผ๋ฌธ์ ์์ ํ๊ฑฐ๋ ์๋ก ์์ํ ์ ์์ด์!
User: ๋ ๋ฒ์งธ ๋ง์ฝ์ด์ผ?
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': 'ํจ๋ฐ๋ฆฌ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋ธ๋ ๋ ๋๋ ํค๋ง', '์ต์
์ ๋ณด': {}, '์๋': 2}][/INST][TOOL_CALLS]
| [{'name': 'inquire_product_info', 'arguments': {'product': '๋ง์ฝ'}}]
| [{'name': 'inquire_store_info', 'arguments': {'topic': '์ ํ ๋ชฉ๋ก'}}] | The user is asking about the product list. Therefore, it should be inquire_store_info with topic as ์ ํ ๋ชฉ๋ก. Also, ๋ง์ฝ is not a product name. |
[AVAILABLE_TOOLS][{"type": "function", "function": {"name": "add_product", "description": "Add a new product requested by the user to the cart. If the user requests 'I want to have {product name}' or just '{product name}', 'Can I have three {product name}?' it will be called with product='product name'. If quantity of product is specified, such as 'Can I have two white tumbler?', it will be called with quantity='2'. If quantity is not specified, it will be called with quantity='1'. If user specified options for the product, such as 'I'd like to have gray pouch in a larger size', it will be called with options = ['large size']. If options is not specified, it will be called with options=[].", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product the user wants to add", "type": "string"}, "quantity": {"description": "The quantity of the product item the user wants to add", "type": "string"}, "options": {"description": "list of option details the user wants to add to the product such as 'extra shot', 'large size', 'dark beans', 'decaf'.", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "remove_product", "description": "Removes the specified quantity of an item already in the cart. This is called when the user requests, 'Please remove N quantity of {product name}', with quantity='N' or 'Remove all {product name}, please', with quantity='ALL'.", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item to be removed from the cart. If user want to remove all product, product is set by 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item to be removed from the cart. If user want to remove all, quantity is set to 'ALL' value.", "type": "string"}, "options": {"description": "The current list of options for the product item to be removed from the shopping cart", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "change_product_quantity", "description": "This is used to change the quantity of a product item in the cart. It is called when the user requests, 'Change the quantity of {product name} to N' with quantity='N'. It is NOT called when adding a new product item to the shopping cart", "parameters": {"type": "object", "properties": {"product": {"description": "The name of the product item for which the quantity is to be change. If user want to change all, product is set to 'ALL' value.", "type": "string"}, "quantity": {"description": "The quantity of the product item", "type": "string"}, "options": {"description": "The current list of options for the product item in cart that the user wants to change the quantity for", "type": "array", "items": {"type": "string"}}}, "required": ["product", "quantity", "options"]}}}, {"type": "function", "function": {"name": "replace_product", "description": "It is called when the user wants to change the product in the cart, such as in the following cases. 1) If the user wants to change the option of a product, such as 'Change the beans of iced Americano to dark', 'I'll change the iced Americano to a large size', 2) If the user wants to change the temperature of a product, such as 'I'll change the iced Americano to hot', 3) If the user wants to replace the existing menu with a new product, such as 'Please give me a strawberry juice instead of a strawberry latte'.", "parameters": {"type": "object", "properties": {"current_product": {"description": "The name of the product item in cart to be changed", "type": "string"}, "current_options": {"description": "Current option values for product in cart to be changed", "type": "array", "items": {"type": "string"}}, "quantity": {"description": "The quantity of product item to be changed", "type": "string"}, "new_product": {"description": "The name of the product item user wants to add", "type": "string"}, "new_options": {"description": "The list of options for new product requested by the user", "type": "array", "items": {"type": "string"}}}, "required": ["current_product", "current_options", "quantity", "new_product", "new_options"]}}}, {"type": "function", "function": {"name": "done", "description": "Called with `is_ok_to_pay` set to true when the user indicates they need nothing more or agrees to proceed with payment. If the user wants to stop the order without making a payment, it is called with `is_ok_to_pay` set to false.", "parameters": {"type": "object", "properties": {"is_ok_to_pay": {"description": "Whether to proceed to payment or not", "type": "boolean"}}, "required": ["is_ok_to_pay"]}}}, {"type": "function", "function": {"name": "inquire_product_info", "description": "Answer user's question about the product information such as product, option. It is called when user says 'what's nalnani key ring?', 'What color do you have for keyring?', 'How large is the large size of pouch?', 'What is the price of the key ring?'. It is not triggered for inquiries unrelated to product items.", "parameters": {"type": "object", "properties": {"product": {"description": "The product item which user inquired about", "type": "string"}}, "required": ["product"]}}}, {"type": "function", "function": {"name": "inquire_store_info", "description": "Respond to user questions about the store (e.g., 'Restroom', 'Operating Hours'), product purchasing, pickup, product lists, exchanges, and refunds. Example) ์ด๋ค ๋ฉ๋ด๊ฐ ์์ด์? : topic='product lists' If asked about the store (topic='GGLS'), company (topic='Good Gang Labs', '๊ตณ๊ฐฑ๋ฉ์ค'), assistant (topic='๋ ๋๋'), or applied technology (topic='AI Avatar Agent'), provide relevant details. Classify assistant-related inquiries (e.g., 'who are you?', 'whats your name?', '๋ ์ด๋ฆ์ด ๋ญ์ผ?', '๋ ๋๋๊ฐ ๋ญ์ผ?', 'what's nalnani?') under topic='Assistant'. possible topics: [\"GGLS\", \"Assistant\", \"๊ตฌ๋งค ๋ฐฉ๋ฒ\", \"ํฝ์
\", \"์ ํ ๋ชฉ๋ก\", \"ํ๋ถ\", \"๊ตณ๊ฐฑ๋ฉ์ค\", \"AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
\", \"ํ์ฅ์ค\", \"ํ์ฌ ๊ฐ๊ฒฉ\", \"Best Seller\", \"Samsung Pay\", \"์ผ์ฑ ํ์ด\", \"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด\", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ๊ฐ ๊ตฌ๋งค์\", \"์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\" \"product lists\", \"product purchasing\", \"Refund\", \"Discount\", \"AI Avatar Solution\", \"AI Avatar Agent\", \"Restroom\", [\"์ ๋ฌผ ํฌ์ฅ\", \"๋ ๋๋ ํ ์ธ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ\", \"๋ง๋ฏธ์\", \"๋ํผ ๋ง๋ฏธ์\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ด ์ด์ \", \"์ผํ๋ฐฑ\", \"๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ\", \"์ฌ๋ฌ ์ํ ๊ตฌ๋งค\", \"๊ณ ๋ฌด์ฅ๊ฐ ์ฌ์ด์ฆ\", \"์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ \", \"Event Period\", \"Why Rubber Glove Collaboration\", \"๋ ๋๋ ํค๋ง ์์ฌ\"]]", "parameters": {"type": "object", "properties": {"topic": {"description": "The topic of user question about store such as Wi-Fi, Restroom, 'Operating hours', 'product purchasing', 'pickup', 'product lists', 'exchanges', 'refunds', 'Assistant', 'GGLS', 'Good Gang Labs', 'AI Avatar Agent'", "type": "string"}}, "required": ["topic"]}}}][/AVAILABLE_TOOLS][INST]You are an AI Assistant that selects the appropriate tools based on user requests, leveraging current cart status and conversation history.
Example #1)
Assistant: ๋ ํ์ํ ๊ฑฐ ์์ผ์ธ์?
User : ์๋์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #2)
User : ๋ ๋๋ ํค๋ง ํ๋ ์ฃผ์ธ์
Assistant : ๋ ๋๋ ํค๋ง์ ์ฐ๋ฆฌ ๊ฐ๊ฒ์ ์์ด์ฝ์ด์์! ์ด๋ค ์์ผ๋ก ๋๋ฆด๊น์? ๊ฒ์ ์๊ณผ ํํฌ์์ด ์์ด์.
User : ๊ฒ์ ์์ผ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '๊ฒ์ ์ ๋ ๋๋ ํค๋ง', "quantity":'1', "options":[]}}]
Example #3)
User : ํ
๋ธ๋ฌ ํ๋ ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํ
๋ธ๋ฌ', "quantity":'1', "options":[]}}]
Example #4)
User: ์คํฌ๋ฐ์น ํ๋
Assistant: ์คํฌ๋ฐ์น ์ธํธ๋ฅผ ํ๋ ๋ํ์
จ๋ค์! ๋จธ๋ฆฌ ๋ฌถ๊ธฐ ๋ฑ ์ข์ ์์ดํ
์ด์ฃ ~ ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์๋
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ค๋ชฐ ์ฌ์ด์ฆ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": '์ค๋ชฐ ์ฌ์ด์ฆ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #5)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํฐ๊ฑฐ๋ก ์ฃผ์ธ์
[TOOL_CALLS][{"name": "add_product", "arguments": {"product": 'ํฐ ์ผํ๋ฐฑ', "quantity"='1', "options"=[]}}]
Example #6)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ฅ์ค ์ด๋์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Restroom'}}]
Example #7)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ๋ ์ด๋ฆ ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'Assistant'}}]
Example #8)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์ฌ๊ธฐ๋ ๋ญํ๋ ๊ณณ์ด์ผ?
[TOOL_CALLS][{"name": "inquire_store_info", "arguments": {"topic": 'GGLS'}}]
Example #9) When user asks for menu recommendation, output is empty list
User : ๋ฉ๋ด ์ถ์ฒํด์ค
[TOOL_CALLS][]
Example #10)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํค๋ง์ด ๋ญ์ผ?
[TOOL_CALLS][{"name": "inquire_product_info", "arguments": {"product": 'ํค๋ง'}}]
Example #11)
Assistant : ๋ ํ์ํ์ ๊ฑฐ ์์ผ์ธ์?
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ์๋
[TOOL_CALLS][]
Example #12)
User : ๋ชจ๋ ๋ฉ๋ด ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "remove_product", "arguments": {"product": 'ALL', 'quantity': 'ALL', 'options': []}}]
Example #13)
User : ์ฃผ๋ฌธ ์ทจ์ํด์ค
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": False}}]
Example #14)
User : ์์ด์
Assistant : ์ผํ๋ฐฑ ํ์ํ์ ๊ฐ์? ์ค๋ชฐ๊ณผ ๋ผ์ง ์ฌ์ด์ฆ ์์ด์! ์ํ์๋ฉด ๋ง์ํด์ฃผ์ธ์~
User : ํ์ ์์ด์
[TOOL_CALLS][{"name": "done", "arguments": {"is_ok_to_pay": True}}]
Example #15)
User : ํํฌ ํค๋ง ๋ง๊ณ ๋ธ๋์ผ๋ก ๋ฐ๊ฟ์ค
Cart : [{'๋ฉ๋ด': '๋ ๋๋ ํค๋ง ํํฌ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "replace_product", "arguments": {"quantity": 'ALL', 'current_product': "๋ ๋๋ ํค๋ง ํํฌ", 'current_options': [], 'new_product': "๋ ๋๋ ํค๋ง ๋ธ๋", 'new_options': []}}]
Example #16)
User : ์น์ฝ ์ง๊ฐ ์ทจ์ํด์ค
Cart : [{'๋ฉ๋ด': '์น์ฝ ์ง๊ฐ', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "remove_product", "arguments": {"quantity": 'ALL', 'product': "์น์ฝ ์ง๊ฐ", 'options': []}}]
Example #17)
User : ์นด๋ ํ๋๋ ์ธ๊ฐ๋ก ๋ฐ๊ฟ๋
Cart : [{'๋ฉ๋ด': '์นด๋ ํ๋', '์ต์
์ ๋ณด': {}, '์๋': 1}]
[TOOL_CALLS][{"name": "change_product_quantity", "arguments": {"quantity": '3', 'product': "์นด๋ ํ๋", 'options': []}}]
classify as inquire_store_info related questions for topics= ["GGLS", "Assistant", "๊ตฌ๋งค ๋ฐฉ๋ฒ", "ํฝ์
", "์ ํ ๋ชฉ๋ก", "ํ๋ถ", "๊ตณ๊ฐฑ๋ฉ์ค", "AI ์๋ฐํ ์ฃผ๋ฌธ ์๋ฃจ์
", "ํ์ฅ์ค", "ํ์ฌ ๊ฐ๊ฒฉ", "Best Seller", "Samsung Pay", "์ ๋ฌผ ํฌ์ฅ", "๋ ๋๋ ํ ์ธ", "๊ณ ๋ฌด์ฅ๊ฐ ํ ์ธ", "๋ง๋ฏธ์", "๋ํผ ๋ง๋ฏธ์", "๋ ๋๋๋ ์ ๊ณ ๋ฌด์ฅ๊ฐ์ ์ผ์ด", "์ผํ๋ฐฑ", "๊ณ ๋ฌด์ฅ๊ฐ ํฌ์ฅ", "์ฌ์ด์ฆ", "์ผ๋ฐ ๋ง๋ฏธ์ ๊ณ ๋ฌด์ฅ๊ฐ์ด๋ ๋ค๋ฅธ์ ", "Event Period", "Why Rubber Glove Collaboration", "๋ ๋๋ ํค๋ง ์์ฌ"]
Available Products:
ํํฌ ๋ ๋๋ ํค๋ง
๋ธ๋ ๋ ๋๋ ํค๋ง
๊ณ ๋ฌด์ฅ๊ฐ
๋ง๋ฏธ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 3๊ฐ ์ธํธ, ์๋ง ์ธํธ)
๋๋์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 5๊ฐ ์ธํธ, ์๋น ์ธํธ)
ํจ๋ฐ๋ฆฌ์ธํธ(๊ณ ๋ฌด์ฅ๊ฐ 10๊ฐ ์ธํธ, ๊ฐ์กฑ ์ธํธ)
## Actual Conversation:
User: ์ผํ๋ฐฑ ํ๋ ์ค
Assistant: ์ผํ๋ฐฑ? ๋ ๋๋ ํค๋ง๊ณผ ํจ๊ป๋ผ๋ฉด ๋ฌด๋ฃ๋ก ๋๋ฆด๊ฒ์! ํค๋ง ํ๋ ์ถ๊ฐํ๋ฉด ๋ฐ๋ก ์ค๋นํด๋๋ฆด๊ฒ์~
User: ๊ทธ๊ฑฐ ์์ดํ ์์ดํ ์ฌ์ค ๊ธฐ์กด ๊ฐ์ด๋๋ผ๊ตฌ์
Focus on last message of user. Use previous conversation context if needed.
Current Cart Status : [{'๋ฉ๋ด': '๋ง๋ฏธ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}, {'๋ฉ๋ด': '๋๋ ์ธํธ', '์ต์
์ ๋ณด': {}, '์๋': 1}][/INST][TOOL_CALLS]
| [{'name': 'add_product', 'arguments': {'product': '์ผํ๋ฐฑ', 'quantity': '1', 'options': []}}]
| [] | The user's last message '๊ทธ๊ฑฐ ์์ดํ ์์ดํ ์ฌ์ค ๊ธฐ์กด ๊ฐ์ด๋๋ผ๊ตฌ์' is unclear and doesn't express a clear intent to add, remove, or modify any product in the cart. Therefore, the correct response should be an empty list. |
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 12