m-ric commited on
Commit
78ed62d
·
verified ·
1 Parent(s): ae6225b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -123,7 +123,10 @@ text = tokenizer.apply_chat_template(
123
 
124
  ### Agentic Usage
125
 
126
- SmolLM3 supports tool calling! Just pass your list of tools under the argument `xml_tools` (for standard tool-calling), or `python_tools` (for calling tools like python functions in a `<code>` snippet).
 
 
 
127
 
128
  ```python
129
  from transformers import AutoModelForCausalLM, AutoTokenizer
 
123
 
124
  ### Agentic Usage
125
 
126
+ SmolLM3 supports tool calling!
127
+ Just pass your list of tools:
128
+ - either 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 these tools like python functions in a `<code>` snippet, like `<code>get_weather(city="Copenhagen")</code>`
130
 
131
  ```python
132
  from transformers import AutoModelForCausalLM, AutoTokenizer