Releases: huggingface/smolagents
Releases · huggingface/smolagents
v1.4.1
What's Changed
New features 🚀
- Add support for MCP Servers tools as
ToolCollection
by @grll in #232- This enables using Model Context Protocol (MCP) servers, thus makes many, many tools compatible with
smolagents
: find a list on glama.ai or smithery.ai ✨
- This enables using Model Context Protocol (MCP) servers, thus makes many, many tools compatible with
- Allow passing kwargs to all models by @aymeric-roucher in #222
- Add Chinese translations for multi-agent example by @FanwangM in #246
Fixes 🐛
- Fix subpackage import vulnerability by @aymeric-roucher in #238
- Fix typo in building_good_agents.md by @rug in #193
- Align data types in example benchmark by @albertvillanova in #205
- Rename the split of the benchmark dataset from train to test by @albertvillanova in #216
- Fix vanilla model answer in example benchmark by @albertvillanova in #219
- Fix additional args in stream_to_gradio by @aymeric-roucher in #221
- Return textboxes on Gradio file upload errors by @stackviolator in #214
- Docs Bug - fix tool example with additional args by @RolandJAAI in #228
- Dead Link to Duck Duck Go search tool by @matterattetatte in #233
- Fix missing python modules in CodeAgent system prompt by @edbeeching in #226
Adjustments 🔧
- Clean makefile, pyproject.toml and CI by @Wauplin in #229
- Add resizeable option to Gradio UI component for better usabilty by @jank in #234
- Add trust_remote_code arg to TransformersModel by @aymeric-roucher in #240
- Make openai dependency optional by @albertvillanova in #236
- Remove dependency on _is_package_available from transformers by @albertvillanova in #247
- Update README.md by @aymeric-roucher in #208
- Set ollama context length in example to 8192 to make it work by @RolandJAAI in #252
- chore: unset console width, utilize auto detect feature by @simpletrontdip in #196
- Max length of "print" outputs as a parameter of an agent by @IlyaGusev in #209
- Small fixes in docs by @MoritzLaurer in #245
- Fixes before release by @aymeric-roucher in #254
New Contributors
- @rug made their first contribution in #193
- @RolandJAAI made their first contribution in #228
- @matterattetatte made their first contribution in #233
- @jank made their first contribution in #234
- @edbeeching made their first contribution in #226
- @Wauplin made their first contribution in #229
- @FanwangM made their first contribution in #246
- @simpletrontdip made their first contribution in #196
- @MoritzLaurer made their first contribution in #245
- @grll made their first contribution in #232
Full Changelog: v1.3.0...v1.4.1
v1.3.0
What's Changed
New features 🚀
- We now support OpenTelemetry instrumentation! Find a detailed tutorial here 📊 by @aymeric-roucher in #200
-
We now have a Chinese (mandarin) version of the doc for
smolagents
! by @Ayuilos in #156 -
Add option to upload files to GradioUI by @stackviolator in #138
-
feat: Add multi-GPU support for TransformersModel by @6643789wsx in #139
-
More flexible verbosity level: now use
verbosity_level=0/1/2
instead ofverbose=True/False
upon agent initialization by @aymeric-roucher in #150. This gives you more fine-grained control over verbosity! -
Agents can now import anything using
additional_authorized_imports=['*']
! Contributed by @joaopauloschuler in #129
Fixes and smol improvements 🔧
- Add top level docs link to README by @robtaylor in #121
- Added the right link for website button by @AngeloKiriakoulis in #159
- Tools from Spaces: Fix bug preventing use of long prompts. by @jkingston in #134
- Fix typo in dosctrings by @chloefeal in #155
- Log list of tool calls in ActionStep by @aymeric-roucher in #172
- Bug fixes on TransformersModel by @AngeloKiriakoulis in #165
- Fix wrong return value in agents.md doc by @sidtuladhar in #164
- Fix minor issues in docs by @duydl in #173
- Fix quality issues by @albertvillanova in #171
- Clean local python interpreter: propagate imports by @aymeric-roucher in #175
- Fix tool_calls parsing error in
ToolCallingAgent
when usingOpenAIServerModel
by @tanhuajie in #160 - Fix minor issues in building_good_agents docs by @albertvillanova in #170
- bugfix: Fix plan_update message display by @IlyaGusev in #179
- Make default tools more robust by @aymeric-roucher in #186
- Implemented support for ast.Pass in the interpeter. by @AngeloKiriakoulis in #189
- Support pandas' iloc indexer by @aymeric-roucher in #191
- The call.func parameter type of the local_python_executor.evaluate_call function might be ast.Subscript by @nvrxq in #194
- bug fix: fix string concatenation bug in GradioUI.log_user_message by @kingdomad in #199
- Fix import from ChatMessage in test_monitoring by @aymeric-roucher in #202
- Fix quality in gradio_ui by @albertvillanova in #206
- Pre-release fixes by @aymeric-roucher in #207
- Document OpenTelemetry usage by @aymeric-roucher in #204
New Contributors
- @robtaylor made their first contribution in #121
- @AngeloKiriakoulis made their first contribution in #159
- @jkingston made their first contribution in #134
- @chloefeal made their first contribution in #155
- @sidtuladhar made their first contribution in #164
- @Ayuilos made their first contribution in #156
- @duydl made their first contribution in #173
- @stackviolator made their first contribution in #138
- @albertvillanova made their first contribution in #171
- @tanhuajie made their first contribution in #160
- @IlyaGusev made their first contribution in #179
- @6643789wsx made their first contribution in #139
- @nvrxq made their first contribution in #194
- @kingdomad made their first contribution in #199
Full Changelog: v1.2.2...v1.3.0
v1.2.0
What's Changed
Big features:
- Add an OpenAIServerModel by @Zetaphor in #109
- This unlocks using any OpenAI-format-compatible server like TGI or vLLM.
- Enable
smolagent
tools in Hugging Chat! 🚀 in #132- Demo incoming!
- Vastly simplify Model class ✨ in #146
- Now
Model
subclasses have only one__call__
method: if argtools_to_call_from
is passed, this method will return a tool call instead of just a string.
- Now
- Halve import time by removing torch dependency in #147
- Support OpenTelemetry in #136
- This is still cooking, more stuff needs to be done, but we'll have observability!
Other important features
- Include missing pip install library in RAG example by @DarwinAnim8or in #92
- Update rag.md with missing verb by @derekalia in #95
- Small tweaks to Gradio demo by @freddyaboulton in #93
- Fixing spelling and grammar for query by @omarirfa in #98
- Fix Spelling Errors in Documentation by @ScientistIzaak in #99
- Change DuckDuckGoSearchTool output_type to string by @aymeric-roucher in #116
- Auto correct wrong assignments to final_answer by @aymeric-roucher in #123
- Adding "complex" to local_python_executor.py #78 by @joaopauloschuler in #79
- Remove dependency on LiteLLM by @aymeric-roucher in #126
- Support multiple code blobs by @aymeric-roucher in #128
- Fix several typos in docs. by @Symbolk in #140
Great thanks for everyone who participated!
v1.1.0
What's Changed
New features: 🥳
- !Breaking change: Agent initialization argument
max_iterations
changed tomax_steps
for consistency. - Add a warning towards the user when imports are missing in CodeAgent 3f79bae.
- Add code of conduct and contributing guide by @LysandreJik in #50
- feat: Add max_results kwarg to DDGS tool by @Stillerman in #40
- Add support for additional keyword arguments in LiteLLMModel by @chakib-belgaid in #29
- Add device parameter for TransformerModel in models.py by @ScientistIzaak in #49
Fixes: 🔧
- Don't pass sanitize_inputs_outputs=True to managed agents by @grrowl in #85
- Include missing pip install library in RAG example by @DarwinAnim8or in #92
- Fix issue with forward signature validation in space tool wrapper by @lelayf in #75
- fix ToolCollection usage by @Brunwo in #53
Typos: 🪶
- Update building_good_agents.md by @SHUBH4M-KUMAR in #43
- Fix example usage in HfApiModel by @balikasg in #37
- Fixing minor spelling errors in building_good_agents.md by @ScientistIzaak in #33
- chore: update local_python_executor.py by @eltociear in #64
- Add missing end of sentence to building_good_agents by @elroy-bot in #68
- Fix typos by @oliveredget in #74
- Update README.md: add link to blog post by @gary149 in #22
- e2b details by @CakeCrusher in #72
- Fixed typos and grammatical errors in building_good_agents.md tutorial by @alxfgh in #89
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Bump release number for 1.0.0
v0.1.0: First ever release!
Nits in readme