v1.9.0

huggingface/smolagentsv1.9.0Feb 14, 2025by albertvillanova

AI Summary

Added MLX model support, improved LiteLLM message flattening detection, enhanced documentation, and various improvements to tools and prompts.

Key Highlights

  • Added MLX model support
  • Improved LiteLLM message flattening detection
  • Enhanced documentation with various improvements
  • Better prompt templates and management
  • Various bug fixes and improvements

New Features

  • MLX model support
  • Improved LiteLLM message flattening detection
  • Enhanced documentation
  • Better prompt templates
  • Various bug fixes

Full Release Notes

## What's Changed
* Bump dev version: v1.9.0.dev0 by @albertvillanova in https://github.com/huggingface/smolagents/pull/544
* Small update to 'Introduction to Agents' docs format by @sergiopaniego in https://github.com/huggingface/smolagents/pull/548
* Doc grammar fix by @juanqui in https://github.com/huggingface/smolagents/pull/556
* Minor grammar correction by @doomspork in https://github.com/huggingface/smolagents/pull/528
* Fix multiagents docs by @derekalia in https://github.com/huggingface/smolagents/pull/549
* Fix managed agent example by @keetrap in https://github.com/huggingface/smolagents/pull/562
* Add authorized_imports in importFrom errors by @CalOmnie in https://github.com/huggingface/smolagents/pull/506
* chore: fix some typos by @zoupingshi in https://github.com/huggingface/smolagents/pull/557
* Minor fix in the guilded_tour docs by @touseefahmed96 in https://github.com/huggingface/smolagents/pull/578
* Add small readme to open Deep Research by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/581
* Fixed Readme that is missing run.py call by @jsmidt in https://github.com/huggingface/smolagents/pull/585
* Fix 429 Client Error: Too Many Requests in CI test by @albertvillanova in https://github.com/huggingface/smolagents/pull/599
* Remove unused import in guided_tour docs by @albertvillanova in https://github.com/huggingface/smolagents/pull/600
* Test evaluate_delete by @albertvillanova in https://github.com/huggingface/smolagents/pull/519
* Move check_module_authorized out of import_module for use in get_safe_module by @CalOmnie in https://github.com/huggingface/smolagents/pull/507
* Test agent call with provide_run_summary by @albertvillanova in https://github.com/huggingface/smolagents/pull/513
* Create PromptTemplates typed dict by @albertvillanova in https://github.com/huggingface/smolagents/pull/547
* Refactor and test final answer prompts by @albertvillanova in https://github.com/huggingface/smolagents/pull/595
* Make question arg required in Open DeepResearch example by @albertvillanova in https://github.com/huggingface/smolagents/pull/617
* Remove unused api-base arg from Open DeepResearch example by @albertvillanova in https://github.com/huggingface/smolagents/pull/616
* corrected typo in README.md by @blakkd in https://github.com/huggingface/smolagents/pull/609
* MLX model support by @g-eoj in https://github.com/huggingface/smolagents/pull/300
* Add support for non-bool comparison operators. by @kc9zyz in https://github.com/huggingface/smolagents/pull/612
* docs: add Langfuse OpenTelemetry guide by @jannikmaierhoefer in https://github.com/huggingface/smolagents/pull/601
* Remove --prompt argument of instance instruction in README.md by @leeivan1007 in https://github.com/huggingface/smolagents/pull/632
* Fix CI quality check by removing trailing whitespace by @albertvillanova in https://github.com/huggingface/smolagents/pull/628
* Change math.pow -> pow by @Bilokin in https://github.com/huggingface/smolagents/pull/624
* Move plan user prompt to YAML and test text of plan prompts by @albertvillanova in https://github.com/huggingface/smolagents/pull/591
* Fix installation instructions in Open-DeepResearch README by @albertvillanova in https://github.com/huggingface/smolagents/pull/633
* Remove ManagedAgent from doc by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/563
* Refactor operations count state setting by @albertvillanova in https://github.com/huggingface/smolagents/pull/631
* LiteLLMModel - detect message flatenning based on model information by @sysradium in https://github.com/huggingface/smolagents/pull/553
* Contribute to the documentation by @seanxuu in https://github.com/huggingface/smolagents/pull/630
* Adding default parameter for max_new_tokens in TransformersModel by @matfrei in https://github.com/huggingface/smolagents/pull/604
* Test evaluate_condition by @albertvillanova in https://github.com/huggingface/smolagents/pull/634
* Allow Gradio share parameter passthrough by @sysradium in https://github.com/huggingface/smolagents/pull/490
* Fix issue #635. Corrected installation instructions for open_deep_research by @nishaddeokar in https://github.com/huggingface/smolagents/pull/636
* Share full agents by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/533
* Fix PlanningPromptTemplate and its docstring by @albertvillanova in https://github.com/huggingface/smolagents/pull/648
* Fix evaluate_condition for non-bool result by @albertvillanova in https://github.com/huggingface/smolagents/pull/638
* Removed reference to deprecated single_step in documentation by @crumbly-blue-cheese in https://github.com/huggingface/smolagents/pull/608
* Update README.md by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/642
* Fix reference to Transformers in docs by @sergiopaniego in https://github.com/huggingface/smolagents/pull/643
* Fix for MLX Model when stop sequence is followed by any chars by @g-eoj in https://github.com/huggingface/smolagents/pull/623
* Allow for last_input_token_count=None by @Strings-RH in https://github.com/huggingface/smolagents/pull/644

## New Contributors
* @juanqui made their first contribution in https://github.com/huggingface/smolagents/pull/556
* @doomspork made their first contribution in https://github.com/huggingface/smolagents/pull/528
* @CalOmnie made their first contribution in https://github.com/huggingface/smolagents/pull/506
* @zoupingshi made their first contribution in https://github.com/huggingface/smolagents/pull/557
* @NeuroWhAI made their first contribution in https://github.com/huggingface/smolagents/pull/576
* @jsmidt made their first contribution in https://github.com/huggingface/smolagents/pull/585
* @blakkd made their first contribution in https://github.com/huggingface/smolagents/pull/609
* @g-eoj made their first contribution in https://github.com/huggingface/smolagents/pull/300
* @kc9zyz made their first contribution in https://github.com/huggingface/smolagents/pull/612
* @jannikmaierhoefer made their first contribution in https://github.com/huggingface/smolagents/pull/601
* @leeivan1007 made their first contribution in https://github.com/huggingface/smolagents/pull/632
* @Bilokin made their first contribution in https://github.com/huggingface/smolagents/pull/624
* @seanxuu made their first contribution in https://github.com/huggingface/smolagents/pull/630
* @matfrei made their first contribution in https://github.com/huggingface/smolagents/pull/604
* @nishaddeokar made their first contribution in https://github.com/huggingface/smolagents/pull/636
* @crumbly-blue-cheese made their first contribution in https://github.com/huggingface/smolagents/pull/608
* @Strings-RH made their first contribution in https://github.com/huggingface/smolagents/pull/644

**Full Changelog**: https://github.com/huggingface/smolagents/compare/v1.8.1...v1.9.0