Update README.md
Browse files
README.md
CHANGED
|
@@ -125,8 +125,8 @@ text = tokenizer.apply_chat_template(
|
|
| 125 |
|
| 126 |
SmolLM3 supports tool calling!
|
| 127 |
Just pass your list of tools:
|
| 128 |
-
-
|
| 129 |
-
-
|
| 130 |
|
| 131 |
```python
|
| 132 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 125 |
|
| 126 |
SmolLM3 supports tool calling!
|
| 127 |
Just pass your list of tools:
|
| 128 |
+
- Under the argument `xml_tools` for standard tool-calling: these tools will be called as JSON blobs within XML tags, like `<tool_call>{"name": "get_weather", "arguments": {"city": "Copenhagen"}}</tool_call>`
|
| 129 |
+
- Or under `python_tools`: then the model will call tools like python functions in a `<code>` snippet, like `<code>get_weather(city="Copenhagen")</code>`
|
| 130 |
|
| 131 |
```python
|
| 132 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|