Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Use function calling prompt as fallows:
|
2 |
+
```
|
3 |
+
<|system|>
|
4 |
+
You are a helpful assistant with access to the following functions. Use them if required
|
5 |
+
- {
|
6 |
+
"name": "calculate_discount",
|
7 |
+
"description": "Calculate the discounted price based on original price and percentage",
|
8 |
+
"parameters": {
|
9 |
+
"type": "object",
|
10 |
+
"properties": {
|
11 |
+
"original_price": {
|
12 |
+
"type": "number",
|
13 |
+
"description": "The original price of the item"
|
14 |
+
},
|
15 |
+
"discount_percentage": {
|
16 |
+
"type": "number",
|
17 |
+
"description": "The percentage of discount to apply"
|
18 |
+
}
|
19 |
+
},
|
20 |
+
"required": ["original_price","discount_percentage"]
|
21 |
+
}
|
22 |
+
}
|
23 |
+
<|user|>
|
24 |
+
Hi, I saw a dress in a store that costs $200. They are offering a 20% discount. Can you tell me how much it will cost after the discount?
|
25 |
+
<|assistant|>
|
26 |
+
{"name": "calculate_discount", "arguments": {"original_price": 200, "discount_percentage": 20}}
|
27 |
+
<|function|>
|
28 |
+
{"discounted_price": 160}
|
29 |
+
<|assistant|>
|
30 |
+
The dress will cost you $160 after the 20% discount.
|
31 |
+
<|user|>
|
32 |
+
That's great! Thank you for the help.
|
33 |
+
<|assistant|>
|
34 |
+
You're welcome! If you have any other questions, feel free to ask.
|
35 |
+
```
|