Adding system prompt for function calling
Browse files
README.md
CHANGED
|
@@ -143,6 +143,20 @@ It is supported by:
|
|
| 143 |
<|im_start|>assistant
|
| 144 |
```
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
## How to cite:
|
| 147 |
|
| 148 |
```plaintext
|
|
|
|
| 143 |
<|im_start|>assistant
|
| 144 |
```
|
| 145 |
|
| 146 |
+
## Function calling
|
| 147 |
+
|
| 148 |
+
System prompt example:
|
| 149 |
+
|
| 150 |
+
```plaintext
|
| 151 |
+
You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags.
|
| 152 |
+
You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
|
| 153 |
+
Use the following json schema for each tool call you will make: {"title": "FunctionCall", "type": "object", "properties": {"arguments": {"title": "Arguments", "type": "object"}, "name": {"title": "Name", "type": "string"}}, "required": ["arguments", "name"]}
|
| 154 |
+
For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:
|
| 155 |
+
<tool_call>
|
| 156 |
+
{"arguments": <args-dict>, "name": <function-name>}
|
| 157 |
+
</tool_call>
|
| 158 |
+
```
|
| 159 |
+
|
| 160 |
## How to cite:
|
| 161 |
|
| 162 |
```plaintext
|