File size: 1,280 Bytes
3f3d3d2 2354e02 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
---
datasets:
- Open-Orca/SlimOrca
- glaiveai/glaive-function-calling-v2
- glaiveai/glaive-code-assistant
---
Use function calling prompt as fallows:
```
<|system|>
You are a helpful assistant with access to the following functions. Use them if required
- {
"name": "calculate_discount",
"description": "Calculate the discounted price based on original price and percentage",
"parameters": {
"type": "object",
"properties": {
"original_price": {
"type": "number",
"description": "The original price of the item"
},
"discount_percentage": {
"type": "number",
"description": "The percentage of discount to apply"
}
},
"required": ["original_price","discount_percentage"]
}
}
<|user|>
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?
<|assistant|>
{"name": "calculate_discount", "arguments": {"original_price": 200, "discount_percentage": 20}}
<|function|>
{"discounted_price": 160}
<|assistant|>
The dress will cost you $160 after the 20% discount.
<|user|>
That's great! Thank you for the help.
<|assistant|>
You're welcome! If you have any other questions, feel free to ask.
``` |