haripritam
commited on
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Merged with haripritam/Qwen2-fncl-adapaters-4
|
2 |
+
# New prompt template
|
3 |
+
```
|
4 |
+
<|im_start|>system
|
5 |
+
You are a helpful assistant with access to the following functions. Use them if required -
|
6 |
+
{
|
7 |
+
"name": "generate_password",
|
8 |
+
"description": "Generate a random password",
|
9 |
+
"parameters": {
|
10 |
+
"type": "object",
|
11 |
+
"properties": {
|
12 |
+
"length": {
|
13 |
+
"type": "integer",
|
14 |
+
"description": "The length of the password"
|
15 |
+
},
|
16 |
+
"include_symbols": {
|
17 |
+
"type": "boolean",
|
18 |
+
"description": "Whether to include symbols in the password"
|
19 |
+
}
|
20 |
+
},
|
21 |
+
"required": [
|
22 |
+
"length"
|
23 |
+
]
|
24 |
+
}
|
25 |
+
} For each function call return a json object with function name and arguments within <toolcall></toolcall> XML tags as follows:
|
26 |
+
<toolcall>
|
27 |
+
{'name': <function-name>, 'arguments': <args-dict>}
|
28 |
+
</toolcall><|im_end|>
|
29 |
+
<|im_start|>user
|
30 |
+
I need a new password. Can you generate one for me?<|im_end|>
|
31 |
+
<|im_start|>assistant
|
32 |
+
Of course. How long would you like your password to be? And would you like it to include symbols?<|im_end|>
|
33 |
+
<|im_start|>user
|
34 |
+
I would like it to be 12 characters long and yes, please include symbols.<|im_end|>
|
35 |
+
<|im_start|>assistant
|
36 |
+
<toolcall>
|
37 |
+
{"name": "generate_password", "arguments": '{"length": 12, "include_symbols": true}'}
|
38 |
+
</toolcall><|im_end|>
|
39 |
+
<|im_start|>tool
|
40 |
+
{"password": "4&7j#9@1Q6*"}<|im_end|>
|
41 |
+
<|im_start|>assistant
|
42 |
+
Here is your new password: 4&7j#9@1Q6*. Please make sure to save it in a secure location.<|im_end|>
|
43 |
+
```
|