v1.3.0

huggingface/smolagentsv1.3.0Jan 15, 2025by aymeric-roucher

AI Summary

The release introduces OpenTelemetry observability, multi-GPU support for Transformers, and enhanced documentation in Chinese, alongside new import capabilities.

Key Highlights

  • OpenTelemetry instrumentation
  • Multi-GPU support
  • Chinese documentation
  • Flexible verbosity levels

New Features

  • Observability with OpenTelemetry
  • Multi-GPU support
  • Documentation updates

Full Release Notes

## What's Changed

### New features 🚀 
* We now support OpenTelemetry instrumentation! Find a [detailed tutorial here](https://huggingface.co/docs/smolagents/tutorials/inspect_runs) 📊 by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/200
<img width="1577" alt="inspect_run_phoenix" src="https://github.com/user-attachments/assets/851b610b-c661-4abe-b6ee-aa11d22bb811" />

* We now have a Chinese (mandarin) version of the doc for `smolagents`! by @Ayuilos in https://github.com/huggingface/smolagents/pull/156

* Add option to upload files to GradioUI by @stackviolator in https://github.com/huggingface/smolagents/pull/138
* feat: Add multi-GPU support for TransformersModel by @6643789wsx in https://github.com/huggingface/smolagents/pull/139
* More flexible verbosity level: now use `verbosity_level=0/1/2` instead of `verbose=True/False` upon agent initialization by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/150. This gives you more fine-grained control over verbosity!
* Agents can now import anything using` additional_authorized_imports=['*']`! Contributed by @joaopauloschuler in https://github.com/huggingface/smolagents/pull/129

### Fixes and smol improvements 🔧 
* Add top level docs link to README by @robtaylor in https://github.com/huggingface/smolagents/pull/121
* Added the right link for website button by @AngeloKiriakoulis in https://github.com/huggingface/smolagents/pull/159
* Tools from Spaces: Fix bug preventing use of long prompts. by @jkingston in https://github.com/huggingface/smolagents/pull/134
* Fix typo in dosctrings by @chloefeal in https://github.com/huggingface/smolagents/pull/155
* Log list of tool calls in ActionStep by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/172
* Bug fixes on TransformersModel by @AngeloKiriakoulis in https://github.com/huggingface/smolagents/pull/165
* Fix wrong return value in agents.md doc by @sidtuladhar in https://github.com/huggingface/smolagents/pull/164
* Fix minor issues in docs by @duydl in https://github.com/huggingface/smolagents/pull/173
* Fix quality issues by @albertvillanova in https://github.com/huggingface/smolagents/pull/171
* Clean local python interpreter: propagate imports by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/175
* Fix tool_calls parsing error in `ToolCallingAgent` when using `OpenAIServerModel` by @tanhuajie in https://github.com/huggingface/smolagents/pull/160
* Fix minor issues in building_good_agents docs by @albertvillanova in https://github.com/huggingface/smolagents/pull/170
* bugfix: Fix plan_update message display by @IlyaGusev in https://github.com/huggingface/smolagents/pull/179
* Make default tools more robust by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/186
* Implemented support for ast.Pass in the interpeter. by @AngeloKiriakoulis in https://github.com/huggingface/smolagents/pull/189
* Support pandas' iloc indexer by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/191
* The call.func parameter type of the local_python_executor.evaluate_call function might be ast.Subscript  by @nvrxq in https://github.com/huggingface/smolagents/pull/194
* bug fix: fix string concatenation bug in GradioUI.log_user_message by @kingdomad in https://github.com/huggingface/smolagents/pull/199
* Fix import from ChatMessage in test_monitoring by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/202
* Fix quality in gradio_ui by @albertvillanova in https://github.com/huggingface/smolagents/pull/206
* Pre-release fixes by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/207
* Document OpenTelemetry usage by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/204

## New Contributors
* @robtaylor made their first contribution in https://github.com/huggingface/smolagents/pull/121
* @AngeloKiriakoulis made their first contribution in https://github.com/huggingface/smolagents/pull/159
* @jkingston made their first contribution in https://github.com/huggingface/smolagents/pull/134
* @chloefeal made their first contribution in https://github.com/huggingface/smolagents/pull/155
* @sidtuladhar made their first contribution in https://github.com/huggingface/smolagents/pull/164
* @Ayuilos made their first contribution in https://github.com/huggingface/smolagents/pull/156
* @duydl made their first contribution in https://github.com/huggingface/smolagents/pull/173
* @stackviolator made their first contribution in https://github.com/huggingface/smolagents/pull/138
* @albertvillanova made their first contribution in https://github.com/huggingface/smolagents/pull/171
* @tanhuajie made their first contribution in https://github.com/huggingface/smolagents/pull/160
* @IlyaGusev made their first contribution in https://github.com/huggingface/smolagents/pull/179
* @6643789wsx made their first contribution in https://github.com/huggingface/smolagents/pull/139
* @nvrxq made their first contribution in https://github.com/huggingface/smolagents/pull/194
* @kingdomad made their first contribution in https://github.com/huggingface/smolagents/pull/199

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