Update README.md
Browse files
README.md
CHANGED
|
@@ -236,26 +236,26 @@ For each function call, return a json object with function name and arguments wi
|
|
| 236 |
- User message:
|
| 237 |
|
| 238 |
```bash
|
| 239 |
-
<|im_start|>user
|
| 240 |
-
What's the weather like in Tokyo right now?<|im_end|>
|
| 241 |
```
|
| 242 |
|
| 243 |
- Assistant message (model emits the tool call instead of a normal answer):
|
| 244 |
|
| 245 |
```bash
|
| 246 |
<|im_start|>assistant
|
| 247 |
-
<tool_call>
|
| 248 |
-
{"name": "get_weather", "arguments": {"location": "Tokyo", "unit": "celsius"}}
|
| 249 |
-
</tool_call>
|
|
|
|
| 250 |
```
|
| 251 |
|
| 252 |
- Tool result message (your agent code executes the function and feeds the result back):
|
| 253 |
|
| 254 |
```bash
|
| 255 |
<|im_start|>tool
|
| 256 |
-
<tool_response>
|
| 257 |
-
{"temperature": 22, "condition": "clear sky", "humidity": 48}
|
| 258 |
-
</tool_response>
|
| 259 |
<|im_end|>
|
| 260 |
```
|
| 261 |
|
|
|
|
| 236 |
- User message:
|
| 237 |
|
| 238 |
```bash
|
| 239 |
+
<|im_start|>user What's the weather like in Tokyo right now?<|im_end|>
|
|
|
|
| 240 |
```
|
| 241 |
|
| 242 |
- Assistant message (model emits the tool call instead of a normal answer):
|
| 243 |
|
| 244 |
```bash
|
| 245 |
<|im_start|>assistant
|
| 246 |
+
<tool_call>
|
| 247 |
+
{"name": "get_weather", "arguments": {"location": "Tokyo", "unit": "celsius"}}
|
| 248 |
+
</tool_call>
|
| 249 |
+
<|im_end|>
|
| 250 |
```
|
| 251 |
|
| 252 |
- Tool result message (your agent code executes the function and feeds the result back):
|
| 253 |
|
| 254 |
```bash
|
| 255 |
<|im_start|>tool
|
| 256 |
+
<tool_response>
|
| 257 |
+
{"temperature": 22, "condition": "clear sky", "humidity": 48}
|
| 258 |
+
</tool_response>
|
| 259 |
<|im_end|>
|
| 260 |
```
|
| 261 |
|