You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,9 +178,20 @@ You can run agents from CLI using two commands: `smolagent` and `webagent`.
178
178
`smolagent` is a generalist command to run a multi-step `CodeAgent` that can be equipped with various tools.
179
179
180
180
```bash
181
+
# Run with direct prompt and options
181
182
smolagent "Plan a trip to Tokyo, Kyoto and Osaka between Mar 28 and Apr 7." --model-type "InferenceClientModel" --model-id "Qwen/Qwen3-Next-80B-A3B-Thinking" --imports pandas numpy --tools web_search
183
+
184
+
# Run in interactive mode (launches setup wizard when no prompt provided)
185
+
smolagent
182
186
```
183
187
188
+
Interactive mode guides you through:
189
+
- Agent type selection (CodeAgent vs ToolCallingAgent)
190
+
- Tool selection from available toolbox
191
+
- Model configuration (type, ID, API settings)
192
+
- Advanced options like additional imports
193
+
- Task prompt input
194
+
184
195
Meanwhile `webagent` is a specific web-browsing agent using [helium](https://github.com/mherrmann/helium) (read more [here](https://github.com/huggingface/smolagents/blob/main/src/smolagents/vision_web_browser.py)).
agent.run("Could you get me the title of the page at url 'https://huggingface.co/blog'?")
105
105
```
106
106
107
+
## Using the CLI
108
+
109
+
You can quickly get started with smolagents using the command line interface:
110
+
111
+
```bash
112
+
# Run with direct prompt and options
113
+
smolagent "Plan a trip to Tokyo, Kyoto and Osaka between Mar 28 and Apr 7."--model-type"InferenceClientModel"--model-id"Qwen/Qwen2.5-Coder-32B-Instruct"--imports "pandas numpy"--tools "web_search"
114
+
115
+
# Run in interactive mode: launches when no prompt is provided, will guide you through argument selection
116
+
smolagent
117
+
```
118
+
107
119
## Building your agent
108
120
109
121
To initialize a minimal agent, you need at least these two arguments:
0 commit comments