File size: 1,927 Bytes
2abeb9f fdff570 2abeb9f 8dac8b4 2abeb9f fdff570 8dac8b4 |
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
---
library_name: transformers
license: apache-2.0
datasets:
- glaiveai/glaive-function-calling-v2
- LDJnr/Capybara
---
# NaturalFunctions-7B
Mistral-7B finetuned for Function Calling
# Examples
## **System Prompt**
You are a helpful assistant with access to the following functions.
Use them if required -
```json
{
"name": "create_event",
"description": "Create a new event in the calendar",
"parameters": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the event"
},
"date": {
"type": "string",
"format": "date",
"description": "The date of the event"
},
"time": {
"type": "string",
"format": "time",
"description": "The time of the event"
},
"location": {
"type": "string",
"description": "The location of the event (optional)"
}
},
"required": [
"title",
"date",
"time"
]
}
}
```
![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a374f00f7a3374ee64b99/A0d_hsWpnSoynXcpZoupm.png)
## **System Prompt**
You are a helpful assistant with access to the following functions. Use them if required
```json
{
"name": "calculate_shipping_cost",
"description": "Calculate the shipping cost for a package",
"parameters": {
"type": "object",
"properties": {
"weight": {
"type": "number",
"description": "The weight of the package in kilograms"
},
"destination": {
"type": "string",
"description": "The destination address"
}
},
"required": [
"weight",
"destination"
]
}
}
```
![image/png](https://cdn-uploads.huggingface.co/production/uploads/648a374f00f7a3374ee64b99/3_tPYiGFrBAYG_uOQKvn1.png)
|