v1.12.0
huggingface/smolagentsv1.12.0Mar 20, 2025by albertvillanova
AI Summary
Fixed JSON parsing issues, improved tool call parsing from APIs, added support for MCP SSE servers, and enhanced tool and agent serialization.
Key Highlights
- Fixed JSON parsing and tool call parsing from APIs
- Added support for MCP SSE servers
- Enhanced tool and agent serialization (to_dict/from_dict)
- Improved VLM support with torch_dtype and trust_remote_code
- Various bug fixes and improvements
New Features
- MCP SSE server support
- Enhanced tool and agent serialization
- Improved VLM support
- JSON string arguments in tool calls
- Better error handling for tool calls
Full Release Notes
## What's Changed * Bump dev version: v1.12.0.dev0 by @albertvillanova in https://github.com/huggingface/smolagents/pull/982 * Fix json parsing by @sysradium in https://github.com/huggingface/smolagents/pull/987 * Fix Agent.from_hub for older smolagents exports by @albertvillanova in https://github.com/huggingface/smolagents/pull/989 * Regression fix: ChatMessageToolCall id must be a string by @sysradium in https://github.com/huggingface/smolagents/pull/990 * Always parse tool calls from APIs by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/991 * Sort additional authorized imports by @keetrap in https://github.com/huggingface/smolagents/pull/998 * Fix custom prompt templates in Agent.from_hub by @albertvillanova in https://github.com/huggingface/smolagents/pull/1001 * Always parse arguments from API tool calls by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/1000 * Fix TransformersModel: torch_dtype and trust_remote_code not passed to VLM by @Louis-Gv in https://github.com/huggingface/smolagents/pull/1012 * Fix double space in toolcalling_agent.yaml by @louisbrulenaudet in https://github.com/huggingface/smolagents/pull/1021 * Update images type and docstring by @keetrap in https://github.com/huggingface/smolagents/pull/1018 * Support JSON string arguments in tool calls by @albertvillanova in https://github.com/huggingface/smolagents/pull/1003 * Pass trust_remote_code to transformers tokenizer/processor by @albertvillanova in https://github.com/huggingface/smolagents/pull/1013 * Fix code using pillow required dependency by @albertvillanova in https://github.com/huggingface/smolagents/pull/1019 * Fix tests of Agent.save and Tool.save by @albertvillanova in https://github.com/huggingface/smolagents/pull/1029 * Remove dependency on transformers get_tests_dir by @albertvillanova in https://github.com/huggingface/smolagents/pull/1026 * Reduce model calls in planning_step from 2 to 1 by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/985 * Bugfix: adding <end_code> to prevent imaginary tool calls in CodeAgent by @IlyaGusev in https://github.com/huggingface/smolagents/pull/918 * Use pytest-datadir for shared data files by @albertvillanova in https://github.com/huggingface/smolagents/pull/1031 * Refactor Agent.to_dict by @albertvillanova in https://github.com/huggingface/smolagents/pull/1004 * Add support for MCP SSE servers by @grll in https://github.com/huggingface/smolagents/pull/931 ## New Contributors * @Louis-Gv made their first contribution in https://github.com/huggingface/smolagents/pull/1012 * @louisbrulenaudet made their first contribution in https://github.com/huggingface/smolagents/pull/1021 **Full Changelog**: https://github.com/huggingface/smolagents/compare/v1.11.0...v1.12.0