v1.4.1

huggingface/smolagentsv1.4.1Jan 17, 2025by aymeric-roucher

AI Summary

This release adds support for Model Context Protocol (MCP) servers, allows passing additional keyword arguments to models, and includes security fixes for subpackage imports.

Key Highlights

  • MCP Servers support
  • Kwargs for models
  • Security fixes
  • Chinese translations

New Features

  • MCP integration
  • Model kwargs
  • Security patch

Full Release Notes

## What's Changed

### New features 🚀 
* Add support for MCP Servers tools as `ToolCollection` by @grll in https://github.com/huggingface/smolagents/pull/232
    - This enables using Model Context Protocol (MCP) servers, thus makes many, many tools compatible with `smolagents`: find a list on [glama.ai](https://glama.ai/mcp/servers?attributes=) or [smithery.ai](https://smithery.ai/) ✨ 
* Allow passing kwargs to all models by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/222
* Add Chinese translations for multi-agent example by @FanwangM in https://github.com/huggingface/smolagents/pull/246

### Fixes 🐛 
* Fix subpackage import vulnerability by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/238
* Fix typo in building_good_agents.md by @rug in https://github.com/huggingface/smolagents/pull/193
* Align data types in example benchmark by @albertvillanova in https://github.com/huggingface/smolagents/pull/205
* Rename the split of the benchmark dataset from train to test by @albertvillanova in https://github.com/huggingface/smolagents/pull/216
* Fix vanilla model answer in example benchmark by @albertvillanova in https://github.com/huggingface/smolagents/pull/219
* Fix additional args in stream_to_gradio by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/221
* Return textboxes on Gradio file upload errors by @stackviolator in https://github.com/huggingface/smolagents/pull/214
* Docs Bug - fix tool example with additional args by @RolandJAAI in https://github.com/huggingface/smolagents/pull/228
* Dead Link to Duck Duck Go search tool by @matterattetatte in https://github.com/huggingface/smolagents/pull/233
* Fix missing python modules in CodeAgent system prompt by @edbeeching in https://github.com/huggingface/smolagents/pull/226

## Adjustments 🔧 
* Clean makefile, pyproject.toml and CI by @Wauplin in https://github.com/huggingface/smolagents/pull/229
* Add resizeable option to Gradio UI component for better usabilty by @jank in https://github.com/huggingface/smolagents/pull/234
* Add trust_remote_code arg to TransformersModel by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/240
* Make openai dependency optional by @albertvillanova in https://github.com/huggingface/smolagents/pull/236
* Remove dependency on _is_package_available from transformers by @albertvillanova in https://github.com/huggingface/smolagents/pull/247
* Update README.md by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/208
* Set ollama context length in example to 8192 to make it work by @RolandJAAI in https://github.com/huggingface/smolagents/pull/252
* chore: unset console width, utilize auto detect feature by @simpletrontdip in https://github.com/huggingface/smolagents/pull/196
* Max length of "print" outputs as a parameter of an agent by @IlyaGusev in https://github.com/huggingface/smolagents/pull/209
* Small fixes in docs by @MoritzLaurer in https://github.com/huggingface/smolagents/pull/245
* Fixes before release by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/254

## New Contributors
* @rug made their first contribution in https://github.com/huggingface/smolagents/pull/193
* @RolandJAAI made their first contribution in https://github.com/huggingface/smolagents/pull/228
* @matterattetatte made their first contribution in https://github.com/huggingface/smolagents/pull/233
* @jank made their first contribution in https://github.com/huggingface/smolagents/pull/234
* @edbeeching made their first contribution in https://github.com/huggingface/smolagents/pull/226
* @Wauplin made their first contribution in https://github.com/huggingface/smolagents/pull/229
* @FanwangM made their first contribution in https://github.com/huggingface/smolagents/pull/246
* @simpletrontdip made their first contribution in https://github.com/huggingface/smolagents/pull/196
* @MoritzLaurer made their first contribution in https://github.com/huggingface/smolagents/pull/245
* @grll made their first contribution in https://github.com/huggingface/smolagents/pull/232

**Full Changelog**: https://github.com/huggingface/smolagents/compare/v1.3.0...v1.4.1